# Writing To NVRAM Directly?

**URL:** <https://forums.digi.com/t/writing-to-nvram-directly/5198>\
**Category:** NET+OS\
**Created:** [November 5, 2003, 7:52pm UTC](https://forums.digi.com/t/writing-to-nvram-directly/5198 "2003-11-05T19:52:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [November 5, 2003, 7:52pm UTC](https://forums.digi.com/t/writing-to-nvram-directly/5198/1 "2003-11-05T19:52:09Z")

</div>

My setup is a Custom Net+50 board with 128KBytes of Battery Backed SRAM connected to CS3. My question is, Is it possible to write to that memory directly, bypassing a call to NAVNWrite?. I can read from it directly, but when i try to do a write by doing a simple assignement (ie MyPointer-\>MyVariable = 0x34 where MyPointer points to an address within the 128KBytes of SRAM [NVRAM\_BASE + offset]) it crashes the system and causes a reboot. Is there a way to change the BSP so that this type of assignment is possible?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [November 6, 2003, 12:50am UTC](https://forums.digi.com/t/writing-to-nvram-directly/5198/2 "2003-11-06T00:50:24Z")

</div>

Never Mind, I figured it out. CS3 was write protected. I just had to make sure that the write protect bit never got set. Thanks
