My experience with MCU programming is not that much. I mainly have just worked with digital / analog read / write or I2C communications using something like Arduino or esp32 boards (I think it’s called Arduino Framework? because they seem to share the same code even if esp32 boards are not Arduino boards)
I am wondering, can I upload a CSV file together with my program, and when the MCU runs the code, the code will go to the CSV file to grab some information?
For example (pseudocode)
void setup(){
int loopCount = 0;
}
void loop(){
String a = grabValueFromCSV(loopCount); // get the data in row #loopCount in the CSV file
// Do something with a
loopCount++;
}
Or, is it possible to save any data (e.g. sensor’s reading) into a CSV file in flash and later copy that file out via a debugger?
I don’t know if a file system exists in the world of embedded systems but I think it doesn’t hurt to ask!
The ESP32 has built-in libraries for opening a filesystem (e.g. with LittleFS) on parts of the free flash (most ESP32 have 4MByte of flash that needs to fit everything).
Thank you for the information!
I noticed the LittleFS library is under “ESP32 Libraries”, which says “arduino-esp32 includes libraries for Arduino compatibility”
Does this mean any code using Arduino Framework can use libraries under this category?
In that case, I can also use this library with Amtel or nRF MCUs?