rogerclarkmelbourne / STM32duino-bootloader

Bootloader for STM32F103 boards, for use with the Arduino_STM32 repo and the Arduino IDE
962 stars 497 forks source link

Support for board "Olimexino STM32 (rev F)" ? #109

Closed EvF closed 2 years ago

EvF commented 3 years ago

Olimexino STM32 is a Maple-R5 clone but with extra connectivity on-board. Was working fine with old Maple IDE before I re-flashed it but does not work with the bootloader binaries/maple_rev5_boot20.bin

Programmed using a STM ST-Link V2 over SWD on Windows 10 x64 21H1 The board appears to start up OK but the USB COM device never appears.

I checked the board schematic and whilst it is slightly different (eg. DISC drives a PNP transistor rather than the 2x NPN) it all looks pretty much equivalent (LED1 is A5, BUT is C9, DISC is C12). MCU is ST32F103RBT6 same as the Maple board.

Schematic is here https://www.olimex.com/Products/Duino/STM32/OLIMEXINO-STM32/resources/OLIMEXINO-STM32_Rev_F.pdf

Main board page is here https://www.olimex.com/Products/Duino/STM32/OLIMEXINO-STM32

Any idea why this does not work? If anyone wants to point me at how to build the bootloader on Windows I'll give it a go with some tweaks or extra debug code. TIA.

EvF commented 3 years ago

It looks like the binary fails because it ends up in the middle of nowhere executing an illegal opcode. I would like to debug this but when I try to build it under PlatformIO+vscode (which I figured was the way to go because there is a platformio.ini file in the repo) the build fails after several compiler warnings (including a warning of insufficient runtime stack space) and an unhelpful linker error1 (collect2)... it does not give any indication what symbols have failed to link.

Is there another build environment more likely to work?

rogerclarkmelbourne commented 2 years ago

See you other issue