• Bootloader. VTOR, BOOTPROT FUSE, JUMP to app and other related questions
    Hello everyone! I am writing here because I am having some issues developing my own bootloader. I am currently working with an ATMEL SAM R21 which has an ARM CORTEX M0+ in it. Firstly I am going to summarize...
  • Processor sometimes ignoring WFI instruction
    Hello everyone, I have a problem with WFI instruction and deep sleep mode. Normally everything work correct, but sometimes processor ignore instruction WFI and continue work. I use ARM Cortex-M0+...
  • Compute the division via shift instruction
    I write the code as following to evaluate the expression n = n / 2 asrs r0, r0, #1 But, I found the GCC will translate the expression n = n / 2 into the following instruction lsrs r1, r0, #31...
  • What will happen if Cortex-M0 fetches 0xFFFF_FFFF as an instruction ?
    Dear Guys,     In typical SoC product, the FLASH memory is initially empty after being shipped from factory, in which the data are all "0xFFFF_FFFF".     I am curious how Cortex-M0 deals with the undefined...
  • Why or how does SysTick interrupt wakeup the processor?
    Hello all, I am confusing by SysTick interrupt behavior. Even if SysTick clock was processor clock, the processor woke up from Sleep or DeepSleep mode by SysTick interrupt. My understanding is that the...