View Single Post
Old 20 September 2021, 03:47   #41
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 56
Posts: 779
Quote:
Originally Posted by saimo View Post
For the details, check out the meticulous comments in the code itself.
And, yes, my routines are used exclusively when the OS is off (that's the whole point: I need the routines precisely because the OS is off/trashed)
Yes, I did check your code, looks professional, easy to follow. I have worked with code to access I2C before, both in hardware (VHDL) and software.

My point was more about the reason C= turns off interrupts completely with Disable() before accessing NVRAM, perhaps there is some conflict which is happening when you run with interrupts enabled?

So far these functions I checked in the library call Disable() in the beginning and Enable() towards the end:

GetCopyNV()
StoreNV()
DeleteNV()
GetNVList()

When you use the term "OS off/trashed" I assume you mean Forbid(), which is not the same as turning off all interrupts, it only disables multitasking.
modrobert is offline  
 
Page generated in 0.04236 seconds with 11 queries