Hi, I'm new in the use of the platform nxp t1040 and I'm looking for a mechanism for cores' synchronization, i.e if it is possible to synchronize cores using interrupt inter-core. A core is in busy wait on a memory location in cache and it waits for an interrupt whose interrupt routine will unlock the core by changing the value of the location mentioned before.
Described mechanism looks viable.
I was thinking of using the 'wait' instruction described in the reference manual, but I don't know how to integrate this instruction in the C code I'm going to write.
The 'wait' is an assembler instruction, so you will need to determine a way of insertion assembler into C-code.
Yeah, sure. I know how to integrate the assembler in the C code. My doubt is how to use well the instruction, i.e what to write in place of WH and WC operands in the manual.
Please refer to the e5500 Core Reference Manual