2005-08-02 12:25 AM
168 external RAM - problems when not battery-backed
2005-07-01 01:03 AM
We're having problems on the latest version of our ST10F168 boards.
We use external RAM, which used to be battery-backed in the last version of our project. We no longer need this facility, so have removed the battery from the latest design. The 168 now struggles to boot and run code correctly. Even a simple test program (printf 0-9 out of the serial port) fails to run correctly - it will print the first 2-4 correctly, then hundreds of garbage characters, then appear to reset and finally print the remaining numbers. I originally thought this was about variable initialisation, but this simple code doesn't use any variables. It is fine if the RAM is battery-backed, and also fine after a reset. We've tested the power-on/reset signals, and believe these to be operating correctly. Does anyone have any ideas how to pursue this? We are stumped by this - our only solution at the moment is to replace the battery on the new boards (hardly an elegant solution, and we would like to find out what is going on) regards Steve Peake2005-07-05 12:10 AM
Hello,
which type of NVRAM do you use, is it from ST? We had a problem with some M48Z35Y: when no battery was connected, RAM access failed (internally blocked in the NVRAM) because the internal voltage threshold circuit was floating. When we connected a battery, RAM access worked fine. When we shortcircuit the two pins for battery connection, RAM access also worked fine. If you no longer need NVRAM, you should replace it with a ''normal'' volatile RAM chip.2005-07-05 03:10 AM
Thanks for this advice - I'll pass it on to our hardware guy for testing. I'll post the results here for others to reference.
cheers Steve Peake.2005-07-05 04:55 AM
Just heard back from our hardware guy.
We are not using NVRAM. We're using normal SRAM with a backup battery diode-ORed with the main supply to retain the RAM data. Does this generate any other suggestions? regards Steve Peake2005-08-02 12:25 AM
We've solved this one now - it was a faulty RAM chip.
Replaced the chip and the memory now behanves as expected without the battery-backup many thanks for the helpful suggestions regards Steve