Entering ISR mode

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

Entering ISR mode

734 Views
chris21
Contributor II

Hi everyone,

I am using the flexcan example "S32K144_Project_FlexCan" on S32k144EVB.  If I only do the initialisation (see the code further down) the execution ends up in DefaultISR some code later. 

(I can change the code to what I want, its always the same ending)

This only happens when using 80MHz ozillation.

At 56Mhz I do not have such problems.

 

Disassembly

DefaultISR:
b DefaultISR
.size DefaultISR, . - DefaultISR

Console Window prints the follwoing:

Initializing.
Target has been RESET and is active.
BusFault: A precise (synchronous) data access error has occurred.
Possible BusFault location: 0x40049000.
HardFault: A fault has been escalated to a hard fault.

My code:

int main(void)
{
uint32_t rx_msg_count = 0; /*< Receive message counter */

/*!
* Initialization:
* =======================
*/
WDOG_disable(); /* Disable WDOG */
SOSC_init_8MHz(); /* Initialize system oscillator for 8 MHz xtal */
SPLL_init_160MHz(); /* Initialize SPLL to 160 MHz with 8 MHz SOSC */
NormalRUNmode_80MHz(); /* Init clocks: 80 MHz sysclk & core, 40 MHz bus, 20 MHz flash */

//FLEXCAN0_init(); /* Init FlexCAN0 */
//PORT_init(); /* Configure ports */

...some more code

 

0 Kudos
1 Reply

714 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi chris21,

The S32K144EVB (SCH-29248 REV B1) is able to debug when call NormalRUNmode_80MHz at my side. I did not find NormalRUNmode_56Mhz, would you please show me the configuration? 

debug S32K144_Project_FlexCan.jpg

When using SPLL_init_160MHz, it's not be able to configure 56MHz system clock. Please check if you have modify the SPLL_init_160MHz or external 8MHz crystal.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos