Xpresso IDE + Assembler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Xpresso IDE + Assembler

573 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 0xbin4ry on Fri Oct 11 01:53:53 MST 2013
Hi there,

is it possible to debug ASM code in Xpresso IDE? Furthermore, is it possible to get example codes for LPC XPresso 11U14 with the startup files in ASM, rather then in C?

My goal is to debug the startup file (so before the MCU calls main()), possibly in ASM.

I already compiled a simple blinky demo and disassembled the binary to get the ASM code of ResetISR(). However, I want to debug the code to see, whether this corresponds to the ASC version of the startup.c for the Cortex-M0.

Thanks in advance.
0 Kudos
Reply
1 Reply

545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Oct 11 06:12:56 MST 2013
So why not just set a breakpoint in the startup code and debug it, rather than using assembly code? You can do this manually (open the startup file in the editor and double click on a line), or by changing the default breakpoint from main() to somewhere else:

http://support.code-red-tech.com/CodeRedWiki/InitialBP

[Note that typically the startup file is compiled with optimisation turned on (-Os). You may want to switch this back to no optimisation (-O0). To do this select the file in Project Explorer view, right click and open its properties.]

If you want to use assembler though, then  use the "Search the forums" box (top right of the main forum page) for 'assembly' or "assembler". You will find lots of previous threads on this subject.

Regards,
LPCXpresso Support
0 Kudos
Reply