Hello ,
@rickkas7
I am working with the Tracker SOM devices into a custom made PCBs where i am using EEPROM (iam using SpiFlash library) with wire interface and an SD card logging with SPI interface. The following is the Log information when i Flash Locally via USB from Particle Workbench.
Everything looks fine and great when i do local Flash
0000003151 [app.gps.ubx] INFO: enable PUBX-POSITION
0000003157 [app.gps.ubx] INFO: enable PUBX-SVSTATUS
0000003160 [app.gps.ubx] INFO: enable PUBX-TIME
0000003184 [app.gps.ubx] INFO: enable GPS
0000003184 [app.gps.ubx] INFO: enable QZSS
0000003184 [app.gps.ubx] INFO: enable SBAS
0000003185 [app.gps.ubx] INFO: enable Galileo
0000003185 [app.gps.ubx] INFO: enable BeiDou
0000003186 [app.gps.ubx] INFO: enable GLONASS
0000003189 [app.gps.ubx] INFO: set to power management mode 0
0000003192 [app.gps.ubx] INFO: set dynamic platform model to 0
0000003197 [app] INFO: Location Service Start Success
0000003253 [app] INFO: CAN mode set Success
0000003253 [app] INFO: CAN BUS Shield init Success
0000003254 [app] INFO: EEPROM is Found
0000003254 [app] INFO: -0.100000
0000003255 [app] INFO: -0.100000
But when i do cloud Flash the following is the output it is not able to locate the EEPROM.
0000002996 [app.gps.ubx] INFO: enable PUBX-POSITION
0000003003 [app.gps.ubx] INFO: enable PUBX-SVSTATUS
0000003007 [app.gps.ubx] INFO: enable PUBX-TIME
0000003031 [app.gps.ubx] INFO: enable GPS
0000003031 [app.gps.ubx] INFO: enable QZSS
0000003032 [app.gps.ubx] INFO: enable SBAS
0000003032 [app.gps.ubx] INFO: enable Galileo
0000003032 [app.gps.ubx] INFO: enable BeiDou
0000003033 [app.gps.ubx] INFO: enable GLONASS
0000003036 [app.gps.ubx] INFO: set to power management mode 0
0000003039 [app.gps.ubx] INFO: set dynamic platform model to 0
0000003044 [app] INFO: Location Service Start Success
0000003100 [app] INFO: CAN mode set Success
0000003100 [app] INFO: CAN BUS Shield init Success
0000003101 [app] INFO: EEPROM not Found
The following is the code snippet that i have for it in case if EEPROM is not found i want custom ERROR LED to blink always and stay there,
Memory.begin();
if (Memory.isValid())
{
Log.info("EEPROM is Found :)");
status.Total_Mileage = readDoubleFromEEPROM(TOTAL_MILEAGE_UPDATE_ADDRESS);
status.Plow_Mileage = readDoubleFromEEPROM(PLOW_MILEAGE_UPDATE_ADDRESS);
Log.info(String::format("%lf", status.Total_Mileage));
Log.info(String::format("%lf", status.Plow_Mileage));
}
else
{
Log.info("EEPROM not Found :(");
while (1)
{
gpio.digitalWrite(ERROR_STATE_LED, HIGH);
delay(100);
gpio.digitalWrite(ERROR_STATE_LED, LOW);
delay(100);
}
}
what could be the issue I am not sure ??
Thanks in Advance