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.

CC1352P: New SDK shuts down external flash twice, causing problem for custom board.

Part Number: CC1352P
Other Parts Discussed in Thread: SYSCONFIG

Hello,

I have custom boards with a CC1352P processor. These boards are similar to the CC1352P-2 Launchpad. My firmware is based on the CC1352P-2 Launchpad zed_switch and zc_light projects.

I just upgraded to Simplelink SDK 5.10.00.48 and it's causing problems. My boards don't have external flash, and I use the pins (DIO 8, 9, 10, 20) for digital i/o. These pins are used by the Launchopad to communcate with external flash.

My problem is the code makes a call to shutdown external flash, and it does this twice. Since I don't have external flash, I don't want these calls. They mess up my configuration of pins DIO 8, 9, 10, and 20.

One call to shutdown flash is made in function Board_initHook() (in file CC1352P_2_LAUNCHXL_fxns.c). This is not a problem because I can just remove this call.

The other call to shutdown flash is made in function Board_init() (in file ti_drivers_config.c). I can remove the call to shutdown flash, however because this file is regenerated every time I build the project, my code changes are overwritten.

I have two questions:

Why are there two calls to shutdown flash? I looked at both of the shutdown flash functions, and they are identical, so why call both of them? By the way, the old SDK shuts down flash only once (it doesn't include a call to shutdown flash in file ti_drivers_config.c, this call is new in SDK 5.10).

The file ti_drivers_config.c is generated from SysConfig everytime I compile, as I said. So in SysConfig, in the NVS driver section, I deleted CONFIG_NVSEXTERNAL. I hoped this would remove the call to shutdown flash in ti_drivers_config.c, but that call is still there. How can I prevent SysConfig from gererating that call to shutdown flash in ti_drivers_config.c?

Thanks,

Tim

  • Hello Tim,

    The Software Development Team is aware of this overlap and are working towards correcting it.  Have you tried deselecting "Generate Initialization Functions" inside SysConfig -> TI DRIVERS -> Board?  You can remove Board_shutDownExtFlash references inside BoardCC26XX.c.xdt/BoardCC26XX.Board_init.c.xdt from source\ti\drivers\.meta\templates as well.

    Regards,
    Ryan

  • Ryan,

    I deselected "Generate Initialization Functions" inside SysConfig -> TI DRIVERS -> Board. This removes the call to Board_shutDownExtFlash() from ti_drivers_config.c. 

    I was concerned that deselecting "Generate Initialization Functions"  would remove other initialization functions too, stuff that is needed, but it seems to remove only that call to Board_shutDownExtFlash().

    Tim