Page 1 of 1

[Help] stm32f103 TFBGA bootloader flashing

Posted: Thu Dec 19, 2019 10:08 pm
by Jye
Hi Everyone,

Its been a little while since play with an stm32 but Ive got a new project... repurposing some hardware :)

Below is a pic of a LoRa transceiver with an stm32f103 TFBGA (frsky r9mm/mini). I have been able to hook it up to st link and connect no worries. When I attempt to flash the generic_boot20_pc13.bin everything appears to be successful. But after a reset the bootloader appears to be erased. I can also appear to successfully upload a script from platformio, but once again looks like its erased after rst. So obviously Im doing something wrong :cry:

https://i.ibb.co/TMR7hBK/80437622-45492 ... 8272-n.png

Is anyone able to help with some pointers on flashing the bootloader correctly (am I using the correct BL???) and uploading a basic script that would make all GPOIO alternate high/low (Im hoping an LED will flash on the board indicating life).

Cheers
Jye

Re: [Help] stm32f103 TFBGA bootloader flashing

Posted: Fri Dec 20, 2019 6:06 pm
by ag123
check if you are accidentally installing something in ram? flash address normally is 0x8000000

Re: [Help] stm32f103 TFBGA bootloader flashing

Posted: Sun Dec 22, 2019 8:43 pm
by Jye
ag123 wrote: Fri Dec 20, 2019 6:06 pm check if you are accidentally installing something in ram? flash address normally is 0x8000000
Yep, Im using 0x80000000.

After a heap more reading amd checking the data sheet I should have been using genericSTM32F103RB. I also dont need to install the bootloader since Im only using SWD :?

St-link is currently having trouble writing the other byte and disabling RDP. NFI why but Im getting there slowly.