Chipaddress RAM address

What is the battery back RAM start addess; if I use 0 it gives
Index out of range exceprion

As per the doc… ChipX only has 16 bytes…it is a type

Starts at zero. Please show us some code

It is only 16 bytes that is available?

It is same code that is running on EMX. Simplified code below

byte[] bStoreVal = { 0, 0, 0, 0 };

                        GHIElectronics.NETMF.Hardware.BatteryRAM.Read(
                            0,     //Address Range 0xE0084000 to 0xE00847FF
                            bStoreVal,       //Buffer
                            0,     //Offset
                            4      //Count
                        );

Does it work if you read the whole 16 bytes?

We will look into this on Monday

This is working fine too.
Are you using latest sdk online or old one?

I am using SDK 4.0, I downloaded in Aug…

Because I also have these units in the field.

Let me try with the latest SDK. becasue I think I do not have a choice. Because of hte I2C stuck issue that comes up sometimes

You really need to use the latest firmware and all should work very smoothly

Hi

I updated to the latest SDKs

Most of the other issues went away.

But this exception still remains

A first chance exception of type ‘System.ArgumentOutOfRangeException’ occurred in GHIElectronics.NETMF.Hardware.dll
01:37:DB:Exception was thrown: System.ArgumentOutOfRangeException
#### Exception System.ArgumentOutOfRangeException - CLR_E_OUT_OF_RANGE (1) ####
#### Message:
#### GHIElectronics.NETMF.Hardware.BatteryRAM::Write [IP: 0000] ####

ok…I got the issue…

ChipX has only 16bytes of RAM!

This is sad. Now I have to figure out what to do. To keep my code compatible between EMX and ChipsX

I can assure you no GHI board has 16 bytes of RAM.

The ChipworkX has 64MB, and the EMX has 16MB.

That is battery ram not ram