PlanetaryRobotics / IrisRoverPackage

Complete software package for the Iris Lunar Rover (CMU).
GNU General Public License v3.0
14 stars 2 forks source link

Persistent FRAM isn't a thing on Hercules... #187

Open zCoCo opened 1 year ago

zCoCo commented 1 year ago

We have some data tagged with #pragma PERSISTENT in Hercules code. It seems like this was copied from the way its done in the WD. However, unlike the MSP430, this doesn't actually give persistent since there's no FRAM for that memory section to be allocated to. As a result, testing shows this data doesn't survive a power reset. That said, it seems like the noinit behavior of #pragma PERSISTENT works so the data might persist through a powered-on reset. More testing would be required...

NOTE: A fix for this isn't very important. This Issue is mainly just for documentation of a non-conformance.