Re: EXT Driver Crashing on STM32F4 Discovery
Posted: Sun Dec 29, 2013 5:32 pm
Hi Giovanni,
Thanks for your help on this. Will dig a bit deeper.
However, on thing that I have seen is
#if CORTEX_SIMPLIFIED_PRIORITY
mov r3, #SCB_ICSR :AND: 0xFFFF
movt r3, #SCB_ICSR :SHR: 16
mov r2, #ICSR_PENDSVSET
str r2, [r3, #0]
cpsie i
waithere b waithere
#else
svc #0 /*This is the last line that gets executed and get sexecuted after exiting the EXT interrupt*/
What does CORTEX_SIMPLIFIED_PRIORITY do, and should I have it defined?
Thanks again for your help.
Graeme
Thanks for your help on this. Will dig a bit deeper.
However, on thing that I have seen is
#if CORTEX_SIMPLIFIED_PRIORITY
mov r3, #SCB_ICSR :AND: 0xFFFF
movt r3, #SCB_ICSR :SHR: 16
mov r2, #ICSR_PENDSVSET
str r2, [r3, #0]
cpsie i
waithere b waithere
#else
svc #0 /*This is the last line that gets executed and get sexecuted after exiting the EXT interrupt*/
What does CORTEX_SIMPLIFIED_PRIORITY do, and should I have it defined?
Thanks again for your help.
Graeme