physical-computation / Warp-firmware

Firmware for the Cambridge Physical Computation Laboratory's Warp Embedded Multi-Sensor Platform.
http://physcomp.eng.cam.ac.uk
BSD 3-Clause "New" or "Revised" License
5 stars 198 forks source link

Issue 131: Add BNO055, RF430CL331H, update BME680, IS25xp #132

Closed HToshani closed 4 months ago

HToshani commented 4 months ago

**** bug ** To store correct BME680 results in the flash, temporarily comment sensorBitField for BNO055, RF430CL331H, and RV8803C7 in writeAllSensorsToFlash function in boot.c. Otherwise, it will store the wrong values. It's related to appendSensorDataBNO055, appendSensorDataRF430CL331H and appendSensorDataRV8803C7 functions.

`#if (WARP_BUILD_ENABLE_DEVBNO055) numberOfConfigErrors += configureSensorRegisterBNO055(0x00, 0x02);

// sensorBitField = sensorBitField | kWarpFlashBNO055BitField;  

endif`

`#if (WARP_BUILD_ENABLE_DEVRF430CL331H) numberOfConfigErrors += configureSensorRegisterRF430CL331H(0x0040);

// sensorBitField = sensorBitField | kWarpFlashRF430CL331HBitField; 

endif`

`#if (WARP_BUILD_ENABLE_DEVRV8803C7) // sensorBitField = sensorBitField | kWarpFlashRV8803C7BitField;

endif`

`#if (WARP_BUILD_ENABLE_DEVBNO055) // bytesWrittenIndex += appendSensorDataBNO055(flashWriteBuf + bytesWrittenIndex);

endif`

`#if (WARP_BUILD_ENABLE_DEVRF430CL331H) // bytesWrittenIndex += appendSensorDataRF430CL331H(flashWriteBuf + bytesWrittenIndex);

endif`

Closes https://github.com/physical-computation/Warp-firmware/issues/131.

KomaGR commented 4 months ago

@janithpet Can you please take a quick look at this PR.

KomaGR commented 4 months ago

Thanks!