Yahoo Groups archive

Lpc2000

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

Thread

Stack Issue / MAM bug in the LPC213x

Stack Issue / MAM bug in the LPC213x

2005-08-04 by lp2000c

I have not checked this personally, but I have spoken to a couple of 
people who have.  It seems that the POP from stack problem which 
keithgw originally posted in Message 7898 is indeed the result of the 
MAM bug posted by Philips Apps in Message 8032.  It is not the result 
of a reset problem, as proposed in Message 8010.

The description of the problem in Philips Apps' post needs some 
clarification.  Incorrect read of data from SRAM can occur while code 
is running from Flash and MAM is disabled (i.e.: MAMCR = 0) with
MAMTIM 
not set to 1.  Unfortunately, this is the Reset condition.

I am not sure that Philips has fully characterized what additional 
conditions are required for the bug to manifest itself.  However, it 
appears that implementing either of the work-arounds proposed in
their 
post, before doing any reads from RAM (including stack POPs on return 
from subroutine or interrupt) will solve the problem.

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.