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.

CC2533: Set the mode as "warm" startup

Other Parts Discussed in Thread: CC2533, REMOTI

Hello!

I am trying to design a remote control system with RemoTI-CC2533.

The system includes one target module (receiver board) and one CC2533 remote controls.

I want to once pair between the target and the remote controller. It means once modules paired, the target module can be deconnected and then reconnected and we wouldn't need to repair the modules.

Therefore, according to RemotI Developer's Guide section 3.2.1 Start modes, I have to set the target on the "warm" startup. I found StartupOption in the file rti.h:

#define RTI_CP_ITEM_STARTUP_CTRL                                               0xA0  //Startup Control

I don't see how to set the mode on "warm" startup.

How set the parameter as "warm" startup?

Regards,

Flo.

  • In the RemoTI API 4.3.2 Parameter List, 0xA0 means Item ID (its length is 1 and its default is 1.)

    I am trying to set the default as 0 (0 seemingly corresponds to the "warm" startup whereas 1 to the "cold" startup).

    So I think I have to modify the non-volatile memory since the value is stocked here. And I don't manage to modify this value.

    Please, I need your help.

    Thanks,

    Regards,

    Flo.

     

  • Hi Flo,

    RTI_NVID_BOOT_FLAG is the NVID item used to discriminate between general cold and warm boots and that copies all parameters from default config table in RAM to flash.

    The RTI_CP_ITEM_STARTUP_CTRL is used to discriminate between cold and warm startups for stack init. 

    As you can see, it is set to 0 in the corresponding RTI_InitCnf after stack has been initialized so that on the next power-on reset the NW stack is not initialized anymore.

    Hence, if you want to re-start each time the stack with default parameters and not use the stored ones, you would need to set it to CLEAR_STATE in RTI_InitCnf instead of RESTORE_STATE.

    Please keep in mind NV write may take some time, as pages in NV may need to be compacted when flash page is filled

     

    TheDarkSide