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.

LP-CC1312R7: How to write into external flash using Uniflash tool

Part Number: LP-CC1312R7
Other Parts Discussed in Thread: UNIFLASH, CC1312R7, CC1312R

CC1312R7 contains 12MB external flash, i want to write some data using uniflash tool, I am getting some error "memory map prevented reading".

Can we use uniflash or some other tool to write to external flash?

Thanks,

Bhasker 

  • Hi bhasker,

    You cannot use Uniflash, but you can use flash-rover, for that purpose.

    You can download it there: https://github.com/ti-simplelink/flash-rover/releases

    Please use that thread for reference: https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/868875/launchxl-cc1352p-needing-an-oad-example/3221702#3221702

    Regards,

    Arthur

  • while using flash-rover i am hitting following error:

    C:\Users\lab\Desktop\flash-rover>ti-xflash.exe -d cc1312r -x L24000RF read 0 100
    Error: Unable to find CCS root

    C:\Users\lab\Desktop\flash-rover>

    though I have installed CCS even i am hitting the same error.

    Any pointer will be helpful.

    Thanks,

    Bhakser 

  • Hi Bhasker,

    You have to read the instructions in the GitHub repository. Indeed, flash-rover has to be copied in a specific location, inside of your CCS folder.

    Only then it willl work.

    Here is an example command line that writes a binary file to the flash at address 0:

    C:\ti\ccs1210\ccs\utils\flash-rover> .\flash-rover --device cc1352p --xds L42001ES write 0 --input .\englishcommunication.raw

    Regards,

    Arthur

  • Thanks Arthur, 
    I tried this and now i am hitting java exception, following are the error logs:

    C:\ti\ccs1220\ccs\utils\flash-rover>flash-rover.bat -d cc1312r -x L24000RF read 0 100
    Error: FlashRoverError: A Firmware error occured: Tool timed out waiting for a response from firmware
    0 backtrace::backtrace::trace::h10a17e66a22d395b
    1 backtrace::capture::Backtrace::new::hc511ec0d11b16ec6
    2 ti_xflash::main::hf49f9e869d017ad3
    3 std::rt::lang_start::{{closure}}::h50a9b0993c944c89
    4 std::rt::lang_start_internal::{{closure}}::h1b6762e35ede6ade
    src\libstd/rt.rs:52
    std::panicking::try::do_call::hc823b80f1f85c346
    src\libstd/panicking.rs:331
    std::panicking::try::h7fa2643e371e315b
    src\libstd/panicking.rs:274
    std::panic::catch_unwind::hdddb8313d04601f7
    src\libstd/panic.rs:394
    std::rt::lang_start_internal::h01ef62a30453125e
    src\libstd/rt.rs:51
    5 main
    6 _tmainCRTStartup
    7 mainCRTStartup
    8 units_search
    9 units_search

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd7a961c41, pid=3280, tid=3992
    #
    # JRE version: OpenJDK Runtime Environment Temurin-11.0.13+8 (11.0.13+8) (build 11.0.13+8)
    # Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (11.0.13+8, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
    # Problematic frame:
    # C [jimage.dll+0x1c41]
    C:\ti\ccs1220\ccs\utils\flash-rover>

  • Hi bhasker,

    I am sorry, I do see the same error. The reason is that the software has not been updated to support the newer x7 devices.

    I will find a solution. In the meantime, you can try to modify the software as well.

    Regards,

    Arthur