Content originally posted in LPCWare by rama krishna deekshitulu on Fri Feb 19 05:31:28 MST 2016
I would like to clarify my current situation, As previously attached my code is split into two parts. The boot loader flashes an OTA upgrade using IAP and then jumps to the newly flashed code. My issue starts at this point where jumping to the new code sector using assembly to load the appropriate registers (SP & PC) with address to the values at the new application SP and PC locations.
New application code without SysTick runs fine and works normal but code that includes it tends to freeze.Do i need to do something specific to use SysTick timer with the secondary boot loader.
Does the application code need a specific sequence of code to use SysTick after jumping from bootloader or is this something that needs to be done before jumping to application in the bootloader.
Quote: gnxp
Yes I checked your files. I do not see any delay statement after disable_irq. So if you are using delay in print then it won't work.
As I am telling you, this information is not complete. You need to trace your application to find out if you disable interrupts. Your delay depends on systick, so if you disable systick how will delay work?