AnsweredAssumed Answered

MKW30Z hardware init

Question asked by Lucian Firan on Feb 19, 2017
Latest reply on Feb 28, 2017 by Lucian Firan

IAR 7.50;  KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)

 

as program start point is

\platform\devices\MKW30Z4\startup\iar\startup_MKW30Z4.s

Reset_Handler
        CPSID   I               ; Mask interrupts
        LDR     R0, =SystemInit
        BLX     R0
        LDR     R0, =init_data_bss
        BLX     R0
        CPSIE   I               ; Unmask interrupts
        LDR     R0, =__iar_program_start
        BX      R0

 

        PUBWEAK NMI_Handler
        SECTION .text:CODE:REORDER:NOROOT(1)
NMI_Handler
        B .

 

        PUBWEAK HardFault_Handler
        SECTION .text:CODE:REORDER:NOROOT(1)
HardFault_Handler
        B .

 

        PUBWEAK SVC_Handler
        SECTION .text:CODE:REORDER:NOROOT(1)

calling:

void SystemInit (void) {

#if (DISABLE_WDOG)
  /* SIM_COPC: COPT=0,COPCLKS=0,COPW=0 */
  SIM->COPC = (uint32_t)0x00u;
#endif /* (DISABLE_WDOG) */

#ifdef CLOCK_SETUP

why is there another hardware init needed in KSDK group: board.c board.h ?

Outcomes