S32K344 jlink cannot debug after the PFlash start address changed in the ld file.

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

S32K344 jlink cannot debug after the PFlash start address changed in the ld file.

691 Views
jllrw
Contributor I

Hi, NXP Experts!

    I just write a project of flexcan0. It  can receive a can messae whose CANID is 0x20. it works well when the PFlash start address is  0x00400000. but it cannot receive the 0x20 Can Message after I changed the PFlash start address to 0x00600000. In addition, I cannot debug the project any more after the PFlash start address changed. when I pressed the debug button, a new window appeared and said "Break at address "0x0" with no debug information available, or outside of program code."

   Would you give a hand on these issues?

   Thank you very much in advance!

jllrw_0-1714986060221.png

jllrw_1-1714986095349.png

 

0 Kudos
Reply
4 Replies

667 Views
jllrw
Contributor I

Thank you very much for your rapid reply. I am not familiar with S32DS configuration. I also want to know where and how to config the debug settings in  S32DS.  Although I set the PC(shown in the first picture, I'm not sure whether it's right or not.), it does not work.   Would please tell me how to config the S32DS on the issues above or give me some information?

jllrw_0-1714995847297.png

 

0 Kudos
Reply

654 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

For S32DS HOWTO guides you can refer to the link below:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/S32DS-list-of-HOWTOs/ta-p/1113475

Here you can find step by step for setup of debug and debugging itself.

Setting PC, have no effect at your case. As you need micro to boot from that address after reset. PC will be automatically set at first instruction after reset.

Best regards,

Peter

0 Kudos
Reply

646 Views
jllrw
Contributor I

Hi, Peter

I am confused with S32DS debug configuration. but everything goes well after I use a PEMicro Interface Debugger.  

 Thank you very much for your kind help.

Best regards!

JLLRW

 

0 Kudos
Reply

669 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have tested your SW here on EVB board.

I see no issue starting at 0x600000 address as it is valid bootable address.

I also see the SW is working fine in debug mode. I can reach the TestDelay funciton.

Also after reset it works with no exceptions.

petervlna_0-1714994166173.png

petervlna_1-1714994215755.png

 

I would not suspect the code itself. There must be something wrong with your debug settings in S32DS.

Best regards,

Peter

0 Kudos
Reply