Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Handling interrupts on RAM (debug) version

2006-05-30 by stefano_m_a

--- In lpc2000@yahoogroups.com, 3gpabko <zdravko_k_d@...> wrote:
> 
> If you can verify with the debugger that MEMMAP is
> correctly set to 0x02 and that you have the correct
> exception vectors table at 0x40000000 pointing
> correctly to some exception handlers... 

When the location 0x18 is called MEMMAP=2 and i see the same vector 
table on 0x4000.0000 and 0x0000.0000.
But i don't understand: the correct location for irq handler is 
0x0000.0018 or 0x4000.0018 ? (i'm lost in mapping modes....)

> * Be sure that you are starting your program from
> 0x40000000;

On the GDB window i see that starting point is 0x4000.0214 => first 
instruction of my startup code (labelled as '_start').
On location 0x4000.0000 i found {0xea000083} value that is
b     _start  (from the main.lss file)
Is it possible to point 0x4000.0000 with the GDB code window to view 
disassembled code ?

> * Be sure that on your board BOOT[1:0] pins and pin
> P0.14 are pulled up on reset;

All the BOOT pins are pulled to +3.3V through jumpers.
But P0.14 is jumped in a voltage partition (22k to +3.3, 1k to 
ground, so the value is low) but i need it to work with RAM and ISP 
commands ......
Now i'm debugging with a JTAG cable, i think that is regardless from 
the P0.14 value ..

> * Try starting your code from RAM after erasing
> completely the FLASH of the device;

Now, i'm trying ....

Thanks again !
--
SM

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.