- Mon Sep 30, 2019 8:14 pm
#38147
Hi All
I fixed the flash as EEPROM and also now everything compiles with the 1.7.0 of the ST STM32duino core. It only works on the arduino IDE for now. PIO does not have the new version of the arduino core (yet).
This is the manual to compile/test the code on a Black stm32F407VE6T board from eBay.
Install tool chain
1. Install the arduino IDE (1.8.10)
2. Install the stm32duino core from: https://github.com/stm32duino/Arduino_Core_STM32 (version 1.7.0)
3. install https://www.st.com/content/st_com/en/pr ... eprog.html
Build code
1. Download the speeduino master code from my fork (https://github.com/Tjeerdie/speeduino)
2. Open the code in de arduino IDE.
3. In arduino IDE select Tools->Board: GENERIC STM32F4 series
4. In Arduino IDE select Tools->Board part number: "BLACK F407VE"
5. In Arduino IDE select Tools->USART support: Enabled (generic serial)
6. In Arduino IDE select Tools->USB support: CDC (generic serial)
7. Edit the board.txt file located in
--------Windows: C:\Users\%USER%\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.7.0\
--------Linux: ~/.arduino15/packages/STM32/hardware/stm32/1.7.0/boards.txt
8. Replace line 895 with the following: GenF4.build.extra_flags= -DSPIFLASH_AS_EEPROM -DCORE_STM32_OFFICIAL -D{build.product_line} {build.enable_usb} {build.xSerial} {build.bootloader_flags}
10. Build the speeduino project.
Hardware modifications
1. Remove the R21 resistor from the board (close to USB port)
2. Put the jumper close to the CPU (BT0) to connect to the 3.3 volt instead of GND (one step up)
3. Reset the board.
Upload
1. In Arduino IDE select Programmer: "STM32CubeProgrammer DFU"
2. Upload the code
3. Put the Jumper back in its original position.
After these steps you should be able to connect to the board using the USB cable and use tuner studio. Tested the compilation in Linux Ubuntu 18.04.3 LTS. The board will lockup during boot when there is no SPI flash module available.
I fixed the flash as EEPROM and also now everything compiles with the 1.7.0 of the ST STM32duino core. It only works on the arduino IDE for now. PIO does not have the new version of the arduino core (yet).
This is the manual to compile/test the code on a Black stm32F407VE6T board from eBay.
Install tool chain
1. Install the arduino IDE (1.8.10)
2. Install the stm32duino core from: https://github.com/stm32duino/Arduino_Core_STM32 (version 1.7.0)
3. install https://www.st.com/content/st_com/en/pr ... eprog.html
Build code
1. Download the speeduino master code from my fork (https://github.com/Tjeerdie/speeduino)
2. Open the code in de arduino IDE.
3. In arduino IDE select Tools->Board: GENERIC STM32F4 series
4. In Arduino IDE select Tools->Board part number: "BLACK F407VE"
5. In Arduino IDE select Tools->USART support: Enabled (generic serial)
6. In Arduino IDE select Tools->USB support: CDC (generic serial)
7. Edit the board.txt file located in
--------Windows: C:\Users\%USER%\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.7.0\
--------Linux: ~/.arduino15/packages/STM32/hardware/stm32/1.7.0/boards.txt
8. Replace line 895 with the following: GenF4.build.extra_flags= -DSPIFLASH_AS_EEPROM -DCORE_STM32_OFFICIAL -D{build.product_line} {build.enable_usb} {build.xSerial} {build.bootloader_flags}
10. Build the speeduino project.
Hardware modifications
1. Remove the R21 resistor from the board (close to USB port)
2. Put the jumper close to the CPU (BT0) to connect to the 3.3 volt instead of GND (one step up)
3. Reset the board.
Upload
1. In Arduino IDE select Programmer: "STM32CubeProgrammer DFU"
2. Upload the code
3. Put the Jumper back in its original position.
After these steps you should be able to connect to the board using the USB cable and use tuner studio. Tested the compilation in Linux Ubuntu 18.04.3 LTS. The board will lockup during boot when there is no SPI flash module available.