lpcware

Memory access

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by stl on Wed Dec 08 00:45:36 MST 2010
I'm working on a project using LPC1114. I have a lookup table (const unsigned  char table[256]) that holds precalculated values. However, every time I try to access this table, (e.g. table[index] ) I get a hard fault.

From the disassembly, table is at address 0x0d010001. The hard fault occurs when I run "ldrb r3, [r3, #0]" where r3 holds the address (ie table+index).

Any suggestions on why this happens?

Outcomes