Bootloader Handling In Embedded Studio

From SEGGER Wiki
Revision as of 10:15, 19 April 2023 by SebastianB (talk | contribs) (Created page with "Whenever a new project is created with Embedded Studio, it is usually assumed that the .elf file points to the starting point of the application. This is usually the case. How...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Whenever a new project is created with Embedded Studio, it is usually assumed that the .elf file points to the starting point of the application. This is usually the case. However should you have e.g. a bootloader that needs to be executed first the project must be edited accordingly.

ROM bootloader

Should your setup be that you have a bootloader in ROM that needs to be executed first, simply set Debug > Debugger > Start From Entry Point Symbol option to No.
This way the target will run like it would after a power-on reset without any debug connection.


Note: Some devices require a reset after download. In that case set Debug > Target Script > Load End Script to TargetInterface.resetAndStop();.
This way the target is explicitly reset another time after the download has finished.