cancel
Showing results for 
Search instead for 
Did you mean: 

bootloader programming problem

Posted on August 23, 2011 at 21:09

I have a project with STM32F107.

I have a custom bootloader at address 0x08000000 and an application at the address 0x0809000.

I can perfectly program an application from a bootloader, and an application works fine after that (vector table is relocated to the application address).

Nevertheless when I am trying to program a bootloader from an application, it hangs at erasing pages. Pages are not protected. And I am using exactly the same functions (with different addresses) that I am using for programming from the bootloader.

Please, if someone has a clue on what it could be, point me in a right direction.

Gennady
1 REPLY 1
mcuisp2
Associate II
Posted on August 25, 2011 at 11:09

I think you had enable the RDP.

And the first 4KB of flash will be write-protected default when RDP is enabled.

You should change the BootLoader to start from 0x08001000, to skip the first 4KB.

And put a tiny bootloader at 0x08000000~0x08000fff, to jump to your bootloader.

Cheers!

James Peng

www.mcuisp.com

World's first!  Versatile Handy Programmer, EP968, STM32 STM8 supportted!