Advanced debug configuration in KDS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Advanced debug configuration in KDS

跳至解决方案
2,222 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,798 次查看
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 项奖励
回复
3 回复数
1,799 次查看
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 项奖励
回复
1,798 次查看
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 项奖励
回复
1,798 次查看
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