Debug stop at DefalutISR

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

Debug stop at DefalutISR

707 Views
ianlee1
Contributor II

Hi Sir,

I'm using S32K144EVB and S32DS to develop program, and when I use debug mode , it always stop at DefalutISR and can not jump to main. Is it clock setting fail? 

pastedImage_1.png

pastedImage_1.png

0 Kudos
3 Replies

591 Views
ianlee1
Contributor II

Hi Sir,

Thanks for reply. After the testing, the issue is because I modify the link file(S32K144_64_flash.ld) to give m_data_2 more capacity, and I replace all ram data to m_data to fix this issue as below. Is it the right way?

MEMORY
{
/* Flash */
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0007FBF0

m_flexram (RW) : ORIGIN = 0x14000000, LENGTH = 0x00001000
/* SRAM_L */
/* m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000*/
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x0000EFFF

/* SRAM_U */
/*m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000*/
}

0 Kudos

591 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi Ian,

In general this problem is caused by disabled clock gate for some peripherals.

pastedImage_1.png

Please try to check all gates, generate the code and try again.

Best regards,

Razvan

0 Kudos

591 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

If it can't get to the main function, the MCU uses the default out-of-reset clock and anyway your clock setting is correct.  

Does it work with the examples that can be found in the S32 Design Studio? 

Please check the CFSR register for exceptions in the S32DS register view (EmbSys Registers).

Regards,

Daniel

0 Kudos