FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [December 2011 Threads] Jump to bootloader from RTOS taskPosted by Samuel on December 13, 2011 I need update my RTOS firmware via a bootloader during RTOS is running, there is a task to monitor the UART commands, if it is update firmware call, then it will jump to bootloader. My bootloader works fine without RTOS, but it does't work in my RTOS.
Before jump to bootloader (RTOS is not running in bootloader), should I do something? such as stop the scheduler. Is someone get the experience for similar function?
Regards Samuel
RE: Jump to bootloader from RTOS taskPosted by Dave on December 13, 2011 Bootloaders work in lots of different ways and operate differently on different chips. As a minimum you should stop the tick interrupt somehow.
RE: Jump to bootloader from RTOS taskPosted by Richard Damon on December 13, 2011 Since, I presume, the boot loader is going to overwrite the main program, thus any interrupts that would go into the main program need to be disabled, or you are vey likely to run into problems, like the interrupt vector might not be pointing to the interrupt routine if one has been updated at the time but not the other. This tends to end with a program crash.
RE: Jump to bootloader from RTOS taskPosted by Samuel on December 14, 2011 I disable System Tick Interrupt before jump to the bootloader, then it works.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|