what is the difference of debug_flash and debug_ram?

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

what is the difference of debug_flash and debug_ram?

1,630 Views
guanyu
Contributor I

I use the S32 design studio for ARM R1.  I import the example of lptmr_periodic_interrupt_s32k144.

It is running ok in the mode of debug_ram,but it is not ok in the mode of debug_flash. I believe the program reset all the time. Should I set some parameters for debug_flash?

Please help me. Thanks a lot.#

0 Kudos
2 Replies

1,249 Views
MPC8313ERDB_h
Contributor III

I guess there are two advantages of using debug_ram:

  1. Faster lunch (no need to erase/program flash).
  2. Theoretically, no limit on number of breakpoints.

So, if you have enough ram, use (at early debug phase) debug_ram to verify the code.

David

0 Kudos

1,249 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

debug_flash runs program from flash memory (512kB) , debug_ram runs it from MCU's RAM (64kB). There is no special settings. I tried the example - and for me are working both targets (RAM/Flash) without any issue. You can attach project from your workspace - I'll  look at it. 

Jiri