Main Site Documentation

Chipaddress RAM address


#1

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


#2

Starts at zero. Please show us some code


#3

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
                        );


#4

Does it work if you read the whole 16 bytes?

We will look into this on Monday


#5

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


#6

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


#7

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


#8

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] ####


#9

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


#10

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

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


#11

That is battery ram not ram