Does LPC2119 have a data cache?

OP #1172989
Hello All,

I have implemented a simple library that places a reset code into RAM
and then resets the CPU by allowing the WDOG to timeout.  The intent is
for the 'main()' code to read this reset code and determine the reason
the application code had to reset the device (CAN buss error, internal
computation error, etc.).

What I have found is that if I write to the RAM location only once
before resetting the WDOG, the RAM location is not updated and I get the
wrong reset code value. If I write the same value twice in a row, then
the RAM location is updated and everything works ok.

Can anyone tell me if the LPC2119 ARM implementation is using a data
cache of some sort and if so, is there an explicit way to flush it to
RAM (instruction, register setting, etc.)?

Cheers!

Daniel Quinz, P. Eng.

Acacetus Inc.
#1172990
Why wouldn't you get this information from the user manual or data
sheet!?

www.nxp.com/acrobat_download/usermanuals/UM_LPC21XX_LPC22XX_2.pdf

No it has no cache.

Page 19 of the manual referenced above documents this feature. Your
solution is correct - actually a dummy write to any address will secure
the data.

All of which is my way of saying RTFM!

Clifford

Reply

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.