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?
When you run your MDK3 project in MDK4, do you change something else except startup file?
I don't change anything, even the startup.s file.
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. :)