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.

peripheral driver library on CC2538

Other Parts Discussed in Thread: CC2538

Hi,

I am Luy Dang is new to CC2538. Could anyone show me how to get files flash.c and flash.h that have all flash functions in peripheral driver library.

Thanks,

Luy Dang

  • Hi Luy,

     

    You can downlaod the CC2538 foundation firmware from the following link.

    http://www.ti.com/tool/cc2538-sw

    Thanks,

    PM

  • Hi,

    Thanks for your answer quickly.

    I am using CC2538 SDK. smartrf06 and cc2538-cc2592 and have downloaded  swrc271a.zip and swrc272.zip  from that site. I have opened project example and followed it but can not find any flash files and its associated. Could you show me more info?

    Thanks,

  • Hi,

    you can find the Header fileswhich includes hw_flash_ctrl.h in the following directory

    swrc271a.zip\cc2538_foundation_firmware_1_0_1_0\driverlib\cc2538\inc

    You can find the Flash examples in the following directory

    swrc271a.zip\cc2538_foundation_firmware_1_0_1_0\driverlib\cc2538\examples\flash

    Also please refer SWRU325a section 6.

    Thanks,

    PM

  • Hi,

    from IAR workbench 7.20, I am trying to download a project output file into flash of CC2538.. error message came up:

    Mon Aug 11, 2014 12:50:12: Fatal error: Could not open the emulator board file: Browse to your board file Check the project settings   Session aborted!
    Mon Aug 11, 2014 12:50:12: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\config\flashloader\TexasInstruments\FlashCC2538RAM32K.flash

    Path is correct, file is there. Why it said can not open that file?

    Thanks,