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?
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?
/* 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*/
In general this problem is caused by disabled clock gate for some peripherals.
Please try to check all gates, generate the code and try again.
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).