We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi!
I'm trying to migrate my project from ARM MDK 3.24 to ARM MDK 4.10.
Compilation goes ok, but when I try to debug the project, it doesn't go into main(). when trying to execute the "BX R0" instruction in startup.s, here:
; Enter the C code IMPORT __main LDR R0, =__main BX R0
it goes to SWI handler and loops forever there.
Is there a solution for this?
I've been through this - migrating from MDK3.X to MDK4.X - and I changed the startup file to be able to compile. Also some other changes were required: - use __irq as keyword for interrupts - use __swi(0).. for software interrupts - warnings may appear for inline assembly and some others I cannot think of at the moment. Maybe your new MDK has replaced itself the startup file? I had a lot of problems while migrating, so I'm amazed that you did nothing and it compiled. Maybe your code is written more portable. :)