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.

CC2538: STORE FILE IN CC2538 MICROCONTROLLER

Part Number: CC2538

Hello team,

Can I know whether is it possible to create and store file in CC2538 micocontroller custom board?

How to achieve this ?  Actually, we are using contiki os with these CC2538 board.

Best Regards,
Kamalesh. C

  • Hello Kamalesh,

    Please reach out to the Contiki-NG community since you are using this third-party solution.  With 512 kB of flash memory available, it should be possible to allocate flash areas inside you linker configuration for storage of your file, which you would then access with flash read/write commands.

    Regards,
    Ryan

  • Hi Ryan,

    Actually, I have to save one  file (FILE - A) in microcontroller. Then, flash another program to this board which is (FILE-B). 

    In flashed program, i have a function call to take a information from FILE-A and write operation also have to be perform from FILE-B to FILE-A.

    Is it possible to do ?

    Best Regards,

    Kamalesh.C 

  • This is possible to do.  You can refer to the Micro SD Card Reader example from cc2538_foundation_firmware_1_0_1_0\bsp\srf06eb_cc2538\examples\sdcard for a reference of file management on a separate device.

    Regards,
    Ryan

  • Hi Ryan,

    Micro SD Card Reader example is given for SmartRF06 board. This board contains SD card. But, we are using custom board containing CC2538 without SD card.
    Still that example is suitable for me ? How to do this ?

    Best Regards,
    kamalesh.C

  • I am not implying that you will be able to use this example directly.  I am giving you a reference for usage/operation of flash and SPI (if applicable to your system) since TI does not provide an example which applies directly to your needs.  Otherwise, the functionality you seek is possible with the CC2538 but you will need to develop this application independently or find a third-party resource to give assistance.

    Regards,
    Ryan