- Fri Apr 23, 2021 2:38 pm
#49757
HI, I'm doing some test with STM32F407VET6 board and I update the STM32 core to 2.0 to test the STM32F429ZG but with the update BLACK F407VE don't compile anymore (STM32F429ZG either). I downgrade to 1.9 and BLACK F407VE compile fine again. Someone know whats wrong?
This is the error on BLACK F407VE:
This is the error on BLACK F407VE:
Code: Select all
This is the error on STM32F429ZG:In file included from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/pinmap.h:22,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/PeripheralPins.h:34,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/analog.h:44,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/board.h:8,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:41,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36,
from sketch\speeduino.ino.cpp:1:
C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/PinNames.h:14:37: error: expected identifier before numeric constant
14 | #define ALT2 0x200
| ^~~~~
C:\Users\hugov\Desktop\speeduino-202103\speeduino/src/STM32_CAN/STM32_CAN.h:51:34: note: in expansion of macro 'ALT2'
51 | typedef enum CAN_PINS {DEF, ALT, ALT2,} CAN_PINS;
| ^~~~
C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/PinNames.h:14:37: error: expected '}' before numeric constant
14 | #define ALT2 0x200
| ^~~~~
C:\Users\hugov\Desktop\speeduino-202103\speeduino/src/STM32_CAN/STM32_CAN.h:51:34: note: in expansion of macro 'ALT2'
51 | typedef enum CAN_PINS {DEF, ALT, ALT2,} CAN_PINS;
| ^~~~
In file included from sketch\board_stm32_official.h:307,
from sketch\globals.h:112,
from C:\Users\hugov\Desktop\speeduino-202103\speeduino\speeduino.ino:22:
C:\Users\hugov\Desktop\speeduino-202103\speeduino/src/STM32_CAN/STM32_CAN.h:51:23: note: to match this '{'
51 | typedef enum CAN_PINS {DEF, ALT, ALT2,} CAN_PINS;
| ^
In file included from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/pinmap.h:22,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/PeripheralPins.h:34,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/analog.h:44,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/board.h:8,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/wiring.h:41,
from C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/Arduino.h:36,
from sketch\speeduino.ino.cpp:1:
C:\Users\hugov\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/PinNames.h:14:37: error: expected unqualified-id before numeric constant
14 | #define ALT2 0x200
| ^~~~~
C:\Users\hugov\Desktop\speeduino-202103\speeduino/src/STM32_CAN/STM32_CAN.h:51:34: note: in expansion of macro 'ALT2'
51 | typedef enum CAN_PINS {DEF, ALT, ALT2,} CAN_PINS;
| ^~~~
In file included from sketch\board_stm32_official.h:307,
from sketch\globals.h:112,
from C:\Users\hugov\Desktop\speeduino-202103\speeduino\speeduino.ino:22:
C:\Users\hugov\Desktop\speeduino-202103\speeduino/src/STM32_CAN/STM32_CAN.h:51:39: error: expected declaration before '}' token
51 | typedef enum CAN_PINS {DEF, ALT, ALT2,} CAN_PINS;
| ^
C:\Users\hugov\Desktop\speeduino-202103\speeduino/src/STM32_CAN/STM32_CAN.h:51:41: error: declaration does not declare anything [-fpermissive]
51 | typedef enum CAN_PINS {DEF, ALT, ALT2,} CAN_PINS;
| ^~~~~~~~
exit status 1
Code: Select all
c:/users/hugov/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: sketch\speeduino.ino.cpp.o: in function `initialiseAll()':
speeduino.ino.cpp:(.text._Z13initialiseAllv+0x388): undefined reference to `Serial1'
c:/users/hugov/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: sketch\speeduino.ino.cpp.o: in function `sendcanValues(unsigned short, unsigned short, unsigned char, unsigned char)':
speeduino.ino.cpp:(.text._Z13sendcanValuestthh+0x2bc): undefined reference to `Serial1'
c:/users/hugov/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: sketch\speeduino.ino.cpp.o: in function `secondserial_Command()':
speeduino.ino.cpp:(.text._Z20secondserial_Commandv+0x1bc): undefined reference to `Serial1'
c:/users/hugov/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: sketch\speeduino.ino.cpp.o: in function `sendCancommand(unsigned char, unsigned short, unsigned char, unsigned char, unsigned short) [clone .part.0]':
speeduino.ino.cpp:(.text._Z14sendCancommandhthht.part.0+0x2c): undefined reference to `Serial1'
c:/users/hugov/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: sketch\speeduino.ino.cpp.o: in function `sendValues(unsigned short, unsigned short, unsigned char, unsigned char)':
speeduino.ino.cpp:(.text._Z10sendValuestthh+0xe4): undefined reference to `Serial1'
c:/users/hugov/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: sketch\speeduino.ino.cpp.o:speeduino.ino.cpp:(.text.loop+0x224): more undefined references to `Serial1' follow
collect2.exe: error: ld returned 1 exit status
exit status 1