| Author | beginning argument ( Replies received: 1 ) |
| m.solazzi |
Posted 09-06-2008 at 15:45   |

Registered on : 06-09-2008
Messages : 1
OFF-Line
|
Hi,
I'm testing the DFU USB bootloader provided by ST with compiler arm-elf-gcc (GCC) 4.2.2. I'm using the REVa board equipped with STR711FR2.
I managed to upload the file with the DFU Tester 2.1 (see attached pic), but I cannot erase the flash (or download *.dfu file).
At the moment I am not using any optimization and the code size is around 18k, therefore I leave the first 4 8k sectors free
for the bootloader to ba safe. And I use REMAP=2 in startup.s and vector.s
When I try to erase or manually change a byte at e.g. at 0x40008000, the software locks up.
Apparently it crashes in "hwconfig.c" in:
- Internal_FLASH_WritePrConfig
- or in Internal_FLASH_SectorErase (if I rem the previous one).
which are supposed to be executed from RAM. I had to remove the attribute RAM_exe in order to compile them.
In IAR it is possible to remap only specific functions into RAM, but this is not possible with GNU compiler apparently.
What should I do, copy the entire code bootloader code from ROM to RAM in order to have the whole application running from RAM?
Does it have to be done in the startup file? Any suggestions how to do it?
Thanks.
Attached: startup.s and vector.s files.
[ This message was edited by: m.solazzi on 10-06-2008 00:07 ]
[ This message was edited by: m.solazzi on 10-06-2008 00:10 ]
| Attachments : | startup.S | DFU_Tester_GUI.jpg | vector.S | |
|
|
|
Profile
Quote
|
| emre.gunaydin |
Posted 21-11-2008 at 16:05   |

Registered on : 11-21-2008
Messages : 2
OFF-Line
|
Hi,
I want to use "DFU USB bootloader provided by ST" code too. Have you got any idea where can i find it?
|
|
|
Profile
Quote
|