Advanced debug configuration in KDS

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

Advanced debug configuration in KDS

Jump to solution
1,608 Views
kenansun
Contributor II

Hi,

 

I'm trying to program only part of the Flash memory for my micro K60FN1M0 on the TWR-K60F120M board via OSJTAG. Before, I was using CW10.6 and I could easily do that from this page:

12245_12245.png1.png

But in KDS, I didn't find a similar page,

  • So does it exist in KDS? If not, will it be included in KDS in the future versions?
  • Anyway, in order to achieve the same function, is there any other way to do this?

 

I also find this option both in CW and KDS.

12246_12246.png2.png

  • What is it used for?

 

Many thanks

 

Kenan

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,184 Views
BlackNight
NXP Employee
NXP Employee

Hi Kenan,

I did some research, and have found today a way how you can preserve memory ranges with the P&E GDB server:

http://mcuoneclipse.com/2014/07/13/preserving-memory-ranges-with-eclipse-and-pe-gdb-server/

Erich

View solution in original post

0 Kudos
Reply
3 Replies
1,185 Views
BlackNight
NXP Employee
NXP Employee

Hi Kenan,

I did some research, and have found today a way how you can preserve memory ranges with the P&E GDB server:

http://mcuoneclipse.com/2014/07/13/preserving-memory-ranges-with-eclipse-and-pe-gdb-server/

Erich

0 Kudos
Reply
1,184 Views
kenansun
Contributor II

Hi Erich,

Thank you. I've already seen your post and it's awesome!

I agree with you. The configuration of memory protection is not that easy in KDS as in CW10. I'll try later to do the same job as you, but I'm still very hopeful to see a GUI version:smileyhappy:

regards,

Kenan

0 Kudos
Reply
1,184 Views
BlackNight
NXP Employee
NXP Employee

To answer the second question:

'set program counter at (hex)' does exactly what it says: after downloading it sets the program counter (PC register) at the provided hexadecimal value.

So if you want that after downloading your program starts from address 0x564, then enter 564 here.

But there are a few things to consider which depend on the debug connection (and GDB/debugger) implementation:

If you want to see the effect, disable the other options (see below). Mainly because for example the Pre-run and reset and halt will overwrite your pre-configured program counter. If you download your program like this, you should see that the program counter (PC) is set to that value (check the registers view).

However, be careful with this: you need to ensure that all the other things are configured properly (e.g. FP/Stack pointer, etc).

pastedImage_0.png