EmbeddedRelated.com
Forums

problem in flash debug in IAR

Started by naderus2000 March 18, 2007
I make project in IAR v4.41a for LPC2148,and have this warninig when
i want debug the code in flash mode:

Flash download warning: Debugee file newer than the file to be
flashed.

and after that there some warninig in debug Log:

...
Verify error at address 0x000001CD, target byte: 0x43, byte in file:
0x41
...
The stack pointer for stack 'CSTACK' (currently 0x40001450) is
outside the stack range (0x40000450 to 0x40000C50)
The stack pointer for stack 'SVC_STACK' (currently 0x40003460) is
outside the stack range (0x40002C50 to 0x40002C60)
The stack pointer for stack 'IRQ_STACK' (currently 0x40002450) is
outside the stack range (0x40000C50 to 0x40001C50)
The stack pointer for stack 'UND_STACK' (currently 0x40003480) is
outside the stack range (0x40002C70 to 0x40002C80)
The stack pointer for stack 'ABT_STACK' (currently 0x40003470) is
outside the stack range (0x40002C60 to 0x40002C70)

I also change the STACK size in the linker file *.xcl but nothing
changed.
I use both RDI and JLINK as debuger in IAR and both have same result.
I'm really tired and test every thing and now i don't know what to do
please some one tell me what is wrong?
i want to send my project but i don't know how can i send it to this
forum.

An Engineer's Guide to the LPC2100 Series

If you're using J-Link JTAG, take a look at this
great application note which helped me to get
flash debugging work just the other night:

http://www.rogerlynx.com/pdf/EWARM_AppNote21.pdf

boB
K7IQ
I make new project,now when i bebug my code from flash there is no
stack overflow
but when i press BREAK IAR show this massege:

The stack 'CSTACK' is filled to 100% (512 bytes used out of 512). The
warning threshold is set to 90%.

please help.
Thanks for reply,read your pdf it's greate,i do every thing that he told
I make new project,now when i bebug my code from flash there is no stack overflow
but when i press BREAK IAR show this massege:
The stack 'CSTACK' is filled to 100% (512 bytes used out of 512). The warning threshold is set to 90%.
please help.

bobtransformer wrote:

If you're using J-Link JTAG, take a look at this
great application note which helped me to get
flash debugging work just the other night:

http://www.rogerlynx.com/pdf/EWARM_AppNote21.pdf

boB
K7IQ
Change -D_CSTACK_SIZE value in your file.xcl.

Value must be in hexadecimal without '0x'.

Look at page 9 from PDF for more instructions.