/* This is the code that gets called on processor reset. To initialize the device, and call the main() routine.  */
void Reset_Handler(void)
/* This is the code that gets called on processor reset. To initialize the device, and call the main() routine.  */
void Reset_Handler(void)
{
        uint32_t *init_values_ptr = &_etext;
        uint32_t *data_ptr = &_sdata;
        if (init_values_ptr != data_ptr) {
                for (; data_ptr < &_edata;) {
                        *data_ptr++ = *init_values_ptr++;
                }
        }
        for (uint32_t *bss_ptr = &_sbss; bss_ptr < &_ebss;) {
                *bss_ptr++ = 0;
        }
        NVMCTRL->CTRLB.bit.MANW = 1;
        main();
        while (1);
}