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.

C5502 Reset Question

Hello,

     Is there a recommended way to cause the boot code to execute from a running application.  The scenario:

          Application is running and a condition is detected by the running application which indicates that a re-boot is required. For various reasons, a hardware reset can not be used.  The software reset only causes the application to reset and does not cause a re-boot.  Would something like disabling interrupts and jumping to the rom boot address 0xFF8000 be valid?

Thanks for any suggestions.

Stephen 

  • Will have to check.Regards.
  • Initial check indicates Bootloader action is caused by RESET pin de-assertion. Have you tried your idea of jumping to the boot location? Making the aplication code to perform same actin as bootloader should work.
    Regards.
  • Hi Steve,
    I have not tried that yet, but will give it a go. I will post results.

    Thanks,
    Stephen
  • Hi Steve,

         I was wondering if you have been able to come up with any suggestions or sample code for simulating a hardware reset from software.  I have been trying the approach of "jumping" to the boot ROM address of 0x00ff8000 with no success.  I seem to end up in the weeds.  I am using the following c code:

    entryPoint = 0xff8000;
    ((void (*) (void)) entryPoint)();

    It seems to jump to the Boot ROM code, but then goes off into the weeds. I get the following message from the debugger:

    C55xx: Trouble Removing Breakpoint with the Action "Continue or Finish Stepping" at 0x457f: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x0000457F
    C55xx: Can't Single Step Target Program: Error 0x00000022/-2130 Error during: Memory, Execution, Cannot access memory address at 0x00000800

    There are likely registers I need to clear or set up before I make the jump, but not sure what they are.  

    Below is  a screen shot of the debugger output:

    Any suggestions would be appreciated.

    Thanks,

    Stephen

  • Stephen,
    If a hardware reset can be simulated by software, then would it be a software reset :-) Anyway, I am thinking that this error is caused by CCS accessing registers by default, can the c code be executed without CCS? I am really out of idea.
    Regards.
  • Hi Steve,

         We have not been successful in trying to implement a reset strictly from software that would cause the boot ROM to execute. We have put that effort on the back burner for now (to be re-visited when time allows) due to schedule.  In the meantime, we have implemented a hardware/software solution to the problem.

    Thanks for your help.

    Stephen

         

  • Stephen,Wishing your project will go well. I believe this is the right approach.
    Regards.