AnsweredAssumed Answered

How to make it stop at main when run on reset during debugger

Question asked by Yuehe Deng on Feb 27, 2017
Latest reply on Mar 2, 2017 by Lukas Zadrapa

The original question is located here. Now this issue is solved.

How to make debugger only erase the section I want to 

 

However I met another questions. The background is that:

1. I'm working on boot loader development. BLD and APP have separate memory and project.

2. My bootloader project is located at 0x00F9_0000-0x00F9_3FFF, the first 0x14 bytes are boot header, and the startup code starts from 0x00F90014

3. To preserve APP ROM data during debug my boot loader project, I configure my boot loader project as follow:

      A. Startup: Attach to Running Target, Set breakpoint at main

      B. Debugger: Preserve this range: from 0x1000000 - 0x13fffff

 

But when I debugger my boot loader project, it will start running automatically by skip all break points. when I click suspend, it can stop at boot loader code. After that it can stop at the breakpoint I set. So my question is how to make it stop at main when run on reset during debugger?

 

I use S32 + MPC5748G + PE.

Original Attachment has been moved to: 01_BootLoader.rar

Outcomes