Which code is running in which core?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Our embedded code is based on Infineon Aurix Tricore TC29x Microcontroller.

In our main function, core 0 starts core 1. How to find out which C functions are running in which core? Is it possible some C functions are running in both core?
0 Likes
2 Replies
Not applicable
After Core 0 and Core 1 are started, we start our embedded operating system. I believe this embedded operating systems is based on OSEK/VDX Specification.

This OS decides which tasks will execute in which core? Person writing source code doesn't decide which tasks will execute on which core?
0 Likes
Not applicable
You can read the CORE_ID register to find out which core you are running in.
The micro starts in core 0. If you choose to enable the other cores, you end up with 3 separate processes.
So you might for example choose to run all your foreground (main loop) on core 0, and point your interrupts at core 1.
What your OS does, I can't say.
0 Likes