Posted on November 01, 2017 at 18:44
Hi,
I am trying to write a generic bootloader for STM32F072, I read countless reports on this forum (and other on the Internet), that basically states the following procedure:
disable interruptsInstall t...
Posted on November 03, 2017 at 03:42
After some check, I found that I inverted by accident two calls so that I called an svc before callingosKernelInitialize() it was causing the control to be set wrong. It now crashes somewhere else (randomly) a...
Posted on November 03, 2017 at 02:33ok, after reading this:http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0497a/Babefdjc.html I understand what you told me, it gives you the stack type, not the return address. (sorry for my confusion...
Posted on November 02, 2017 at 19:50Yeah, I saw that everywhere, I am not transferring control from an IRQ/System Handler, directly from the main loop (in fact in the first calls).The process goes like this:[System boot] -> call Reset_Handler -> [In...
Posted on November 02, 2017 at 19:31I checked the startup code (assembly) and SystemInit, nothing sets the SYSCFG register.I would vote for a JLink probe nonsense if the code executed on the board did not break at the point where the check happened....
Posted on November 02, 2017 at 20:10Well in case of an exception, LR is a not the return pointer. It is not set by the SVC instruction, in fact the exception creates a stack on its own pointed by PSP. al the return information is pushed there.