This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

JUMP Problem when using RTX RTOS

Hi all ,

Using Uvision4 & LPC1768 & RTX RTOS ,
I want to jump to 0x10000 of the flash.
Before running RTX , there is no problem but after using os_sys_init(APP_TaskStart) , when trying to jump , there is a hardfault . How could I jump while RTX is running ?

By the way , Is there a way to disable RTX ?

Parents
  • Are your boot loader _really_ so advanced that it needs to run an RTOS?

    If you do have very complicated code in the boot loader that you want to use RTOS, why not then have the boot loader decide if it should just boot an application (do that without use of RTX) or decide that the boot loader needs to do advanced communiaction.

    You could then always perform download of a new application and when everything is completed you can force a watchdog reset, and then have the boot loader directly start the application.

    But in reality, a boot loader using RTX sounds like a violation of the KISS principle.

Reply
  • Are your boot loader _really_ so advanced that it needs to run an RTOS?

    If you do have very complicated code in the boot loader that you want to use RTOS, why not then have the boot loader decide if it should just boot an application (do that without use of RTX) or decide that the boot loader needs to do advanced communiaction.

    You could then always perform download of a new application and when everything is completed you can force a watchdog reset, and then have the boot loader directly start the application.

    But in reality, a boot loader using RTX sounds like a violation of the KISS principle.

Children
  • Are your boot loader _really_ so advanced that it needs to run an RTOS?

    RTOS has its place, but I have seen more cases of a RTOS used where it should not be, than cases where a RTOS was not used but should be.

    also a very complicated bootloader is more likely to suffer from the one unexcusable bootloader fault: "If power fails at point x, the system is hung".

    ANY bootloader that can not be restarted if interrupted by ANYTHING such as noise, power failure or whatever is a piece of crap. The criticl place, of course, is the transition from boot to app.

    Erik

  • Are your boot loader _really_ so advanced that it needs to run an RTOS?
    I can solve this problem by resetting the system but I need to jump from the application to the bootloader for reprogramming command again and the application program is in RTX OS too .
    So I need to jump again .
    Apart from that the jump problem through RTX must be solved for my future projects .