Closed PabloPL closed 6 years ago
Hi,
with regards to this error:
include
^ compilation terminated. *** [.pioenvs/xmc1100_xmc2go/FrameworkArduino/HardwareSerial.cpp.o] Error 1 In file included from /home/pablo/.platformio/packages/framework-arduinoxmc/cores/IPAddress.cpp:22:0: /home/pablo/.platformio/packages/framework-arduinoxmc/cores/Arduino.h:248:26: fatal error: pins_arduino.h: No such file or directory
board_variant
shouldn't be turned upper case, as it is defined here:
https://github.com/Infineon/platformio-infineonxmc/blob/a5be9d5ceefac332b8a799494bae353b94c8f526/boards/xmc1100_boot_kit.json#L8
However does this change fix the errors you had under ubuntu?
Yes, with those two commits I was able to build and flash my xmc2go board with sample blink sketch.
Processing xmc1100_xmc2go (platform: infineonxmc; board: xmc1100_xmc2go; framework: arduino)
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Infineon XMC > XMC1100 XMC2Go
SYSTEM: 32MHz 64KB RAM (64KB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 8 compatible libraries
Scanning dependencies...
No dependencies
`.pioenvs/xmc1100_xmc2go/firmware.hex' is up to date.
Checking size .pioenvs/xmc1100_xmc2go/program.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [ ] 2.6% (used 1696 bytes from 65536 bytes)
PROGRAM: [= ] 7.8% (used 5116 bytes from 65536 bytes)
Ok, so to fix this we should rename variants/XMC1100/config/XMC1100_XMC2GO/ to variants/XMC1100/config/XMC1100_XMC2Go/ or change board_variant to "board_variant":"XMC1100_XMC2GO"
Edit 1: Tested change of board_variant and it also works fine.
Edit 2: All other boards are fine, beside XMC4200_Distance2Go - There is no config directory for it in framework-arduinoxmc/variants/XMC4700/config.
@sherylll I've reverted second patch and made different fix. Can You look at this?
Thanks for the fix. Unfortunately XMC4200_Distance2Go is not supported yet (might be in the future).
First commit fixes following issue (observed on ubuntu)
Second commit fixes following build error