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.

¿Is possible to start the boot loader when the user wants?

Other Parts Discussed in Thread: CC2531EMK

Hello,

I am working with cc2531EMK device and ZNP example ( stack 2.3.1).

In the example project I can obtain the ".hex" file to program the bootloader and without erasing  necesary memory for this.

I have used this ".hex" file and  the bootloader starts when the USB is plugged . I don't want it, I would prefer control the moment to start the bootloader.

Is this possible? if it si possible, how can i do it?

My idea is to implement a new command in ZNP comunication and when the new command arrive start the reprogramation.

Regards

  • I have tried changing something in code, but without good results.

    The changes:

    - Delay time in boot : uint32 dlyCnt = 0x100; //0x260000 

    - I have inserted Boot files in ZNP project (sb_exec.c, sb_exec.h, sb_main.c and sb_main.h) with their paths. 

    I try to build the project but this mistake appear: Error[Pa037]: function type not callable , usbirqHandler();

    I don't understand the reason, can somebody help me?