Hello
I have interfaced Bosch BME 280 sensor via i2c with msp432p401r launchpad..and have displayed the output via 430 sharp96 lcd boosterpack..now I have to save the sensor output data to the internal memory...can anyone help ??
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello
I have interfaced Bosch BME 280 sensor via i2c with msp432p401r launchpad..and have displayed the output via 430 sharp96 lcd boosterpack..now I have to save the sensor output data to the internal memory...can anyone help ??
How many values and how often? And which data-type do you plan to save? Maybe the INFO memory of the device is sufficient for that already.
Hi Mohammed!
The MSP432P401R has a very large amount of Information Memory (address 0x00200000 to 0x00203FFF) that you can use to save your data into. This is 16k in total which you can theoretically completely use for your own data. Why theoretically? There is already some information in it, like the TLV. But these 16k are sub-divided into four 4k segments. If you would use one of them and let's say your values for temperature, pressure and humidity are 16 bits each (you did not say something about it), then you would have 6 bytes every minute, which would lead to 682 recordings of all three values in one of the 4k sectors.
But keep the following in mind: Flash can only be erased in complete sectors and one sector is the whole 4k. An erased flash is all bits set to 1 and writing to it simply changes desired bits to 0, but you cannot turn a bit back to 1 again by overwriting it with a new value. This means you can initially erase one sector and then record and save your measurements one after the other into the flash. Let's say your sector is now full and you want some kind of a loop mode that starts from the beginning once the sector is full, then you first have to erase the complete sector which might erase data that you did not want to loose so you have to store it otherwise. Just as a side information. And the flash of the MSP432 can be written/erased up to 20,000 times - after that, your data might get corrupted.
But I don't know if this is important for your application because unfortunately you did not say much about your project. So maybe give us some more information about it.
It looks like there is no example given in the code examples for writing into the flash of the MSP432P401R.
The use of the flash controller is described in chapter 8 of the Technical Reference Manual for the MSP432P401R - I would start to read this first. Or go for an external memory chip like an SPI or I²C EEPROM. In an EEPROM, each byte can be overwritten individually.
Dennis
Mohammed Towhidun Nabi said:both the links u provided are for msp430...would they work for msp432 too..??
Yes, both are for MSP430, but with only a few changes you can use it with the MSP432 as well.
Mohammed Towhidun Nabi said:I would like to mention that i have alreday used sharp lcd boosterpack , so i wont be able to use the sd card boosterpack...right ?
Yes, you're right - both BoosterPacks do not feed the header through, so you cannot use both. You might have to build something on your own.
Hello
can I use the library provided in the link below for my sd card
of this .ino also
https://github.com/arduino/Arduino/blob/master/libraries/SD/examples/Datalogger/Datalogger.ino
i must mention I am working in Energia
**Attention** This is a public forum