Breakpoint not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Breakpoint not working

957 Views
biafra
Senior Contributor I

Hi everyone,

 

I posted another question about loading an application to debug in SDRAM in the post Debug in SDRAM referred to summarize the basic steps.

I'm working on a custom board based on K65FX1M0M18 using KDS 3.2.0 and Multilink Universal debugger.

In the board there are:

  • K65FX1M0M18
  • External SDRAM (4M x 32)
  • External flash (2M x 16),

 

 

At this time I'm using the following workflow (anomalous for me):

  • I open the application project in KDS
  • I build the application linked at SDRAM address
  • Using the bootloader in runtime environment I load the application just built in the external flash memory
  • I run the debugger that resets the K65 (starting at the startup address 0), so the bootloader starts and copies the application from the external flash to external SDRAM. As long as the booloader is running, I can step without source files, but when it jumps to the application I can see the application source files too

 

I tested the runtime behaviour and it works well: a sample application that flashes a led runs as expected.

 

The problem rises in the debugging phase: although I can step in the application, if I set a breakpoint and run, the program doesn't stop until I press the stop button in the debugger, even if the breakpoint is set in the line following the current one.

The breakpoint seems to work only if it is set in the bootloader area.

 

Does anyone have experienced this or has any suggestion on it?

 

Many thanks

Biafra

Labels (1)
1 Reply

584 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Biafra,

Could you please create a simple project , which puts some code into SDRAM,

set a breakpoint, then check whether it can stop at that breakpoint .

I test on other chip , it can stop, what about yours.

If yes,  next you need analyze your project.

And how many breakpoints in your project,  please first delete others to have a try .

BR

Alice