- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everybody,
I'm trying to make my bootloadable applications reset automatically to the bootlaoder application after a certain period of time. The issue I'm having is that the timer that should reset this bootloadable applications to the bootloader must be in the bootloader application. Is there any way to have a timer working in the bootloader application after you bootload an app for that the reset occurs?
I load the applications with the CySmart, so the bootloader interface is a BLE device
Thank you in advance
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
It would be simpler to set a timer in bootloadable. When it times out, call Bootloader_Start(). The processor will jump back into Bootloader.
How accurate does this timeout need to be?
You could start a timer in Bootloader and just before you jump to Bootloadable, read the timer value. Store the timer value in memory somewhere that Bootloadable can access. Once in Bootloadable, read that memory location and subtract that time from your new timeout value that you program into a timer. When this timer times out, call Bootloader_Start().
Otherwise, there is no way to share a timer between Bootloader and Bootloadable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
It would be simpler to set a timer in bootloadable. When it times out, call Bootloader_Start(). The processor will jump back into Bootloader.
How accurate does this timeout need to be?
You could start a timer in Bootloader and just before you jump to Bootloadable, read the timer value. Store the timer value in memory somewhere that Bootloadable can access. Once in Bootloadable, read that memory location and subtract that time from your new timeout value that you program into a timer. When this timer times out, call Bootloader_Start().
Otherwise, there is no way to share a timer between Bootloader and Bootloadable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
I will try to store the value in memory as you said