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.

CCS/LAUNCHXL-CC2640R2: LAUNCHXL-CC2640R2

Part Number: LAUNCHXL-CC2640R2

Tool/software: Code Composer Studio

Hy,

I'm trying to interface LAUNCHXL-CC2640R2 with external flash IS25LP128 through SPI.and i'm using the NVS driver to communicate with.The default driver has most of the configurations same as my external flash device.But where should i add the additional registers and instructions of my flash device.can i define it in my code ?or in my NVSSPI25X.C default source code .I'm referring the TI-RTOS example code (nvsexternal)  from the resource explorer and just trying to write and read a string.but i have a confusion in configuring the device registers.

somebody please help me.

thankyou.

  • Hello Jane,

    Jane Sam said:
    But where should i add the additional registers and instructions of my flash device.can i define it in my code ?or in my NVSSPI25X.C default source code .

    Where you add the code depends on what those registers and instructions do? If they are required to access the external flash (like write, read or erase) then they'll have to be added to the NVSSPI25X.c file. If you go down this route, you will need to rebuild TI-Drivers.

    Thanks,

    Sai

  • Hi sai,
    Thank you for your reply.I have configured the flash and the erase and read operatiion is performing now.but the write function is returning the value -7 at the time of calling of doWriteVerify function inside write function.and I'm getting the final value in buffer as 00,7f,ff,ff, if i transfer 4 characters.Also when i put breakpoint at the end of write function in NVSSPI25.c,the value of buffer at expression table is showing that"cant load from non-primitive location.
    please help me to solve this problem,
    thank you and regards.
  •  Here is the screenshot of the window.

    thankyou,

  • Hello Jane,

    Apologize for the delay! Are you still looking for help on this topic?

    If so I can looking into this issue tomorrow.

    Thanks,
    Sai
  • Hello Jane,

    Looks like you don't need our help on this topic. I will close this post. If you still need help, you can post below and the thread will automatically open. If the thread is locked, you can click on "Ask a related question" to create a related post.

    Thanks,
    Sai