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.

CC2340R5: Issue with code execution after power cycle

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello,

We have a custom board using CC2340R5 RGE Package, we are able to flash and debug it using J-Link. The code executes fine while debugging but after power-on cycle, the code execution fails.

We have tried with:

1. MCU Boot example code : On board LED blinks while debugging but same is not observed after power on cycle.

2. Empty Project: Toggle the LED at 1 second interval, the toggling is observed while debugging or fresh flashing but it fails after a power-on cycle.

3. Basic BLE Example Project: Advertising and connection happens while fresh flash or debugging but does not after a power cycle.

In all these projects, we import the example code from SDK -> Change the PIN Package from SYSCFG, map the GPIO if required -> Build and Flash the project.

Kindly let us know how to solve this.

Thank You!

  • Hello Sanath,

    Thanks for reaching out.

    Could you please help me with the following:

    1. What SDK version are you using?
    2. If it works after debugging and first flash time, how are you executing the power cycle? Just power source off/on?
    3. Could you please share with me the exact steps you are executing to use the package from sysconfig? Are you saving the project right after selecting the RGE package so the migration takes place?
    4. Do you have a TI Launchpad/evaluation board? Can you flash the same sw image and see if the issue reproduces?

    BR,

    David.

  • Hello David,

    Please find answers inline below:

    1. SDK Version: 8.30.01.01

    2. Yes, we are powering it off and on for power cycle.

    3. We are saving the project and also verifying it by debugging the code.

    4. This issue has not been observed with the launch pad (Same code but different image due to package being different).

    We were able to get the code running after toggling the reset pin externally. Can you please share us the possible cause and how to resolve this?

  • Hello Sanath,

    Thanks. I could think that for some reason I am not sure at the moment, we must disable the IO latches.

    Could you please try the following in your main function, with either PowerLPF3_RESET_SYSTEM or PowerLPF3_RESET_SHUTDOWN_IO.

    void appMain(void)
    {
        PowerLPF3_ResetReason resetReason = PowerLPF3_getResetReason();
        /* If we are waking up from shutdown, we do something extra. */
        if (resetReason == PowerLPF3_RESET_SHUTDOWN_IO) // PowerLPF3_RESET_SYSTEM
        {
            // Application code must always disable the IO latches when coming out of shutdown
            PowerLPF3_releaseLatches();
        }
        
        //...
        
    }

    BR,

    David.

  • Hello David,

    We have tried with the above block of code, we are still facing the same issue.

    Best Regards,

    Sanath

  • Hello Sanath,

    Did you try with resetReason == PowerLPF3_RESET_SYSTEM?

    Would you mind please sharing the steps you are following to change the chip package in SysConfig?

    Have you followed a TI reference design for your custom board?

    BR,

    David.

  • Hello David,

    1. We did try with resetReason == PowerLPF3_RESET_SYSTEM condition, still the same.

    2. SYSCFG-> Device View -> Switch. Please refer the snapshot of syscfg after migration.

    3. We have followed the reference design for our custom board.

    Update: We changed the Changed the Capacitor Value of the RC circuit connected to RST pin from 0.1uF to 0.470uF and this seems to have resolved the issue.

    Thanks & Regards,

    Sanath