2024-06-06 03:17 PM
Keil (among others) allows the choice of whether to do a full or partial erase before programming:
Is it possible to do that in STM32CubeIDE ?
If so, how ?
2024-07-05 12:04 AM
Hi @Andrew Neil
For debugging, if you press on the bug icon, the IDE will automatically build the executable (but not rebuild as far as I know), connect to the debug probe, download the executable to the uC and then start the debug session.
As long as you don't have an external memory chip that requires an external loader, it does happen automagically.
Cheers.
2024-07-05 01:08 AM
@Kraal wrote:Hi @Andrew Neil
For debugging, if you press on the bug icon, the IDE will automatically build the executable (but not rebuild as far as I know), connect to the debug probe, download the executable to the uC and then start the debug session.
Yes, I know that.
The question is how to make the download part do just a partial erase - instead of a full erase.
@Kraal wrote:As long as you don't have an external memory chip that requires an external loader, it does happen automagically.
But what it does "automagically" includes a full chip erase - the question is how to configure that.
We'd got as far as how to stop the automatic download, and how to set up a custom download - which could do the partial erase.
The next step would be to get that integrated again into a single step. You had suggested the 'Launch Group' - that does appear to exist in STM32CubeIDE, but how to use it?
2024-07-05 01:24 AM
Hi @Andrew Neil ,
Sorry for the misunderstanding.
I have found the original Atollic user guide here https://www.st.com/resource/en/user_manual/usermanual_truestudio-user-manual-for-truestudio-930-stmicroelectronics.pdf
From page 198 they explain how to setup the launch group. I believe you must have configured the external tool and the debug prior to set the launch group.
I did not find anything related in the CubeIDE user guide.
Good luck !
2024-07-05 01:46 AM
Hmm i dont see effectivity in this q? Do full erase with CLI call and dont waste time on builds...
What is your real req?
2024-07-05 02:03 AM
@Kraal wrote:I did not find anything related in the CubeIDE user guide.
Neither did I.
2024-07-05 02:06 AM
@MM..1 wrote:What is your real req?
Using Flash for non-volatile data storage (EEPROM emulation) - where you want to be able to down load new firmware without erasing the NV data.
2024-07-05 02:09 AM - edited 2024-07-05 02:10 AM
IDE work this way erase only code linker parts. I use this daily
2024-07-05 02:24 AM
Not in my experience - it erased everything.
2024-07-05 02:38 AM
No i repeat erased is all you config in linker file. Normal only used parts.
Show your log, LD...
2024-07-05 05:14 AM