EmbeddedRelated.com
Forums

LPC2138 Reset Problem

Started by glerind September 9, 2007
Hi,

I wrote a program that read and writes from a mmc. It works ok
sometimes, but when i try to write a character array more then 255,
program resets itself. I check all the data types no problem with
them, all of them are big enough for longer arrays then 255.

And the weird part is; when i simulate it with keil, it gives the
error "Error 65: access violation at 0x3FFFFE40: no 'read'
permission" and sometimes "no 'write' permission". It says in the
LPC2138 manual, addresses between 0x0008 0000 and 0x3FFFFFF are
'reserved addressing space'. Is it about something that the assembly
code that compiler create, or is it my fault ?

I know i didnt give a code, but its very long and really looks
working fine.

I just want to know if anybody has the same problem before? Or what
is the possible problem and solutions ?

Thanks for your help.

An Engineer's Guide to the LPC2100 Series