Jump to other application with SYS_INIT(PRE_KERNEL) is not working #68015
Unanswered
Ralf-Vention
asked this question in
Q&A
Replies: 2 comments 3 replies
-
@Ralf-Vention, does this relate to the possibility that |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @ndrs-pst, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community!
On my NRF I've got 2 applications on 2 locations in flash. Let's say I have application 1 on location 0x0 and application 2 on 0x32000. I always start first with application 1 and I check the state of a pin. If the pin is high, the nrf should jump to application 2.
This all works fine except for the fact that zephyr initializes a lot before the jump.
To avoid these initializations, I want to use SYS_INIT(early_function, EARLY, 0). But than the jump does not work. It does work when I use SYS_INIT(early_function, POST_KERNEL,0).
The code of early_function is shown below and is nothing special that cannot be done before the kernel is up and running if you ask me. Does anybody have any idea why I cannot execute the early_function PRE_KERNEL or even EARLY in sys_init?
Thank you in advance!
`
void early_function(void){
}
`
Beta Was this translation helpful? Give feedback.
All reactions