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.

CC1352R: Image selection to load/run at boot time

Part Number: CC1352R


Hi,

I understand for factory reset - i.e. switch to booting into factory image, away from say OAD image. I could press and hold left/ button2 (DIO15) at reset time on launchpad (1352R).

Couple of questions related to this: 
1) Is it possible to use different input pin (instead of DIO15) for this purpose? I recall reading about backdoor pin selection, not sure if that's what I need?

2) Is the a way to use other method/s - such as, by reading certain memory location in external (area reserved in OAD) flash perhaps?
     Idea/ expectation would be - by reading this location user can determine which image - i.e. factory default or one of the OAD images already in external flash to load/ run...

Thanks for your attention and help.

   

  • Hi,
    I have forwarded this to the relevant team for comment.
    Thanks for your patience.
  • The Bootloader is configurable.  Per the TRM (section 10.1), you can see reference to the BL_PIN_NO found in the CCFG parameter.  This application note also discusses the process.

    For your second question is the application software reading the location or is the host device which is attempting to download an image trying to determine if an OAD or the rom bootloader is available?

    Regards,

    Chris

  • Thanks Chris, will refer to TRM/ 10.1 for question 1.
    Regarding question 2 - it's the node's startup code that's expected go look-up certain memory location in external flash;
    to determine which of the existing image (either factory, or one the OAD type from external flash) will be loaded.
  • Hi,

    The functionality you are referring to does not have anything to do with the OAD or bootload operation. Please refer to Ssf_init of ssf.c and you will find that Ssf_clearAllNVItems is called if KEY_RIGHT is held down during runtime of the function. Another pin can be chosen by altering CC1352P1_LAUNCHXL_PIN_BTN2 of CC1352R1_LAUNCHXL.h or changing the board_key.c logic altogether.

    Bootloader pin settings are configured through the predefined symbol SET_CCFG_BL_CONFIG_BL_PIN_NUMBER but this function is stored in ROM and must follow the operation outlined in the following Application Report: http://www.ti.com/lit/swra466

    Further OAD instructions can be found in the TI 15.4-Stack User's Guide (specifically focusing on the BIM for the boot procedure), and you can also reference the sensor OAD examples/READMEs: dev.ti.com/.../bim.html
    dev.ti.com/.../example-applications.html

    Regards,
    Ryan