Any general discussion around the firmware, what is does, how it does it etc.
User avatar
By R42BUG
#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:
Code: Select all
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
This is the error on STM32F429ZG:
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
User avatar
By R42BUG
#50914
pazi88 wrote: Fri Apr 24, 2020 6:54 am
joey120373 wrote: Thu Apr 23, 2020 11:52 pm
That adapter board looks great, what ICs are U7,8&9 ? Are they just level shifters ?
It's not adapter board actually :D There is no need for separate STM32 board with that. it's all built in. And those ICs are more like buffers, but those act like level shifters. The 3.3v out of stm32 isn't really high enough voltage to safely drive many of the fets that are in Speeduino. So those convert the outputs on 0-5v
Wich IC you use for this? can you share schematic (just for this) to know how to connect this chips.
Thanks.
By moonie223
#50917
From the slack chat it appears that the official STM32 arduino core changed the timer access pretty radically, as well as a bunch of other stuff. I'm no expert, but I think for the time being staying with 1.9 is probably the best bet.
By JHolland
#50949
I'm sure this has been resolved by now but in the first piece of code you have an errant comma after 'ALT2', the second piece of code is maybe a problem with a missing header.
User avatar
By pazi88
#50981
R42BUG wrote: Wed Jun 09, 2021 7:36 pm I can't find schematic only BOM, P&P and gerber files.
Thanks.
Sorry, I forgot those. Now added.
JHolland wrote: Wed Jun 09, 2021 9:14 am I'm sure this has been resolved by now but in the first piece of code you have an errant comma after 'ALT2', the second piece of code is maybe a problem with a missing header.
Already taken care of. But the 2.0.0 stm32 core still has some other issues, thought it's now building on master.
User avatar
By R42BUG
#51014
pazi88 wrote: Thu Jun 10, 2021 5:50 am
R42BUG wrote: Wed Jun 09, 2021 7:36 pm I can't find schematic only BOM, P&P and gerber files.
Thanks.
Sorry, I forgot those. Now added.
Thanks.
By Griletos
#51015
Trinom wrote: Sun Sep 06, 2020 10:43 am Well, reselecting STM32 board didn't change anything, so I selected Speeduino v0.1 (the original configuration it showed me after the flash) and it stopped communicating. Apparently it wrote that settings to the external flash and now it tries to use a different UART or something. After some some datasheet check I managed to write a quick flash erase tool, that brought the board back to life. And to my surprise, it's not all INVALID, but mainly BOARD DEFAULT. That means the flash didn't arrive clear, but with some data stored inside. There are still some INVALID I/Os, but I guess they should be user assignable.
Image

EDIT: After manual setting programmable output pins to some port and back to disabled state, all the warnings went out. So it looks like, it will need a default tune to come with the speeduino library.
Image
Unfortunately I managed to do that same mistake, by selecting the wrong board settings and now I can't communicate with the flash as well.
Would you mind sharing the code you wrote to erase the flash?
  • 1
  • 17
  • 18
  • 19
  • 20
  • 21
  • 30

Hi, I am trying to assign Signed values to the x-a[…]

Vr Conditioner Noise when cranking

New version 202305 don't fix the issue. Now after[…]

blitzbox

I've finally figured out why MAP and Lambda weren'[…]

Hello, I bring news!! Let me tell you that after […]

Still can't find what you're looking for?