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.
Tool/software:
Hello Forum,
I am using a Launchpad XL to store data from the drone during flight for 1 second. I would like to store the captured data from the sensors into flash and then retrieve it from flash once the drone is landed. How do i read the data from the flash after powering up the MCU after flight?
Sahithya,
There are a few options depending on what connection you have available post flight.
The simplest would be to connect to the LP through the JTAG/XDS100 on the PCB, and then after connecting with CCS, you can open a memory window (View->Memory Browser) and then click on the left most icon and select "save memory"; there will be prompts to give address/range as well as the format you want to save the data(hex, dec, etc)
If you don't want to connect CCS, the FDTI chip on the LP also has a secondary channel that can act as a UART connection to the PC. You could embed some additional code into the flash to transfer data over this connection. That would involve you connecting CCS one more time to program this, so at least for the first time you could just do the 1st method above. But for later runs, the serial/UART connection may be quicker, and wouldn't involve CCS, etc.
There are other comm ports on the device, SPI, CAN, I2C, etc; but the above 2 would be the simplest with the launchpad.
Best,
Matthew