AnsweredAssumed Answered

__boot_exception: How know the vector source?

Question asked by arnogir on Oct 27, 2015
Latest reply on Jul 5, 2018 by Daniel Chen



I'm working on the TWRK60 with the Kinetis MK60FN1M0VLQ12.

I'm using MQX 4.2, KDS 3.0.


My project run correctly on the Tower board.


Now, we have made our own board, the only difference is the µC is a 150MHz: MK60FN1M0VLQ15.

For the moment, MQX has the same clock configuration (120MHz).

I flash exactly the same code in both case.


But when my program running on my custom board, it fall in the _boot_exception.


1- How know which is the vector number caused this call? (because in the vector table, many source is linked to this vector)

2- This exception is always generated here in bsp_cm.c file: (So main specific code is not yet running (main_task not called))



/*** ### MK60FN1M0VLQ12 "Cpu" init code ... ***/
  /*** PE initialization code after reset ***/
  /* SIM_SCGC6: RTC=1 */
  SIM_SCGC6 |= (uint32_t)0x20000000UL;
  if ((RTC_CR & RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */
    /* RTC_CR: SC2P=0,SC4P=0,SC8P=0,SC16P=0 */
    RTC_CR &= (uint32_t)~0x3C00UL;
    /* RTC_CR: OSCE=1 */
    RTC_CR |= (uint32_t)0x0100UL;
    /* RTC_CR: CLKO=0 */
    RTC_CR &= (uint32_t)~0x0200UL;




Jump to exception always occurs when I execute line 05 of this source code.

Have you any Idea why?