September 25, 2009 - 12:07pm
Guest |
Hello,
i'm using Ride7 together with an RLink-Pro to debug a STM32 Cortex M3.
When starting the debug session in Ride the whole flash of the STM32 is erased and the application is programmed to the flash of the µC.
Now i have a few sectors in flash in which i store configuration data (for example a serial number) and linearization data for every specific board. This sectors are not part of my application, so they do not appear in the debugged elf-file. They are referenced from the application by their absolute address.
Because of the erase-all behaviour in Ride this sectors are erased on every debug cycle, which is not what i want.
Is it possible to skip defined flash sectors during the erase/programm cycle of Ride?
Ride 7.23.09.0247
RKit-Arm 1.22.09.0247
Regards,
Christian
|
Hi
It is not possible to change the fact the whole Falsh is erased before starting the debug.
A solution to this could be always right these part of the flash when you start the debug.
To do so you can for instance add hex files containing these data in your project.
Specify for each hex file an offset to put them at the right place in the Flash.
Then when you start debug it will erase flash program the code and right the data in Flash.
You can check the project example "C:\Program Files\Raisonance\ride\Examples\ARM\Primer\STM32Primer2\toggle_with_CircleOS"as a starting point.
Regards,
Matloub
Hello matloub,
thanks for the response. I have added the neccessary hexfile to my project and this works. But as i have already described in my post Bootloader ELF file disappears from 12.8.2009 the hexfile disapears from the project list after starting and stopping the debug. In fact, the hexfile is still in the project because i can see it in the .rapp file and the hexfile shows up again after closing and reopening Ride. But after the first start/stop of debugging the file is missing in the project list. When starting a second debug the data of the hexfile is not flashed to the µC.
If you provide me an upload address i can send a small example project showing the problem.
The same problem shows up on a second install from a colleague.
We have bought two Rlink-Pro and this issue is starting to disturbe our work. Can you please investigate and provide some help?
TIA,
Christian
Hi
Ok I send you my email address.
Regards,
Matloub
Hi
The problem of elf file disappearing was due to the name of the application.
A name of application ending with .elf file is problematic because of items extension filter,
this has as result that the application is not considered as an application but as a .elf file.
So you get no options for compiling and software can only load elf file.
I advice not to give extension in application and project name.
Regards,
Matloub