Trenz Electronic GmbH Support Forum

Trenz Electronic Products => UltraScale => Topic started by: fayewong on December 09, 2019, 05:21:05 PM

Title: TE0820+TE0706,running Linux and FreeRTOS parallel
Post by: fayewong on December 09, 2019, 05:21:05 PM
Hi,
i am trying to run Linux on A53core and FreeRTOS on R5core parallel. Now i can run two system on the board separately. But i have no idea, how to run twos system at the same time.
I have tired to follow xilinx docs (xapp 1107),but nothing worked. If there is any user guide i can follow?
some demo i found looks like followed:

#define sev() __asm__("sev")
#define CPU1STARTADR 0xFFFFFFF0
#define CPU1STARTMEM 0x20000000
void StartCpu1(void)
{
#if 1
fsbl_printf(DEBUG_GENERAL,"FSBL: Write the address of the application for CPU 1 to 0xFFFFFFF0\n\r");
Xil_Out32(CPU1STARTADR, CPU1STARTMEM); dmb();
fsbl_printf(DEBUG_GENERAL,"FSBL: Execute the SEV instruction to cause CPU 1 to wake up and jump to the application\n\r");sev();
#endif
}

but some commandS don't work anymore in SDK. I used SDK 2019.1

Title: Re: TE0820+TE0706,running Linux and FreeRTOS parallel
Post by: JH on December 10, 2019, 09:21:35 AM
Hi,
I've no experience with multiple os. As I know you must pay attention  with shared memory and also with resets --> the post default procedures resets CPUs on initalisation, so  it can happends that the second OS resets first one on initialisation procedure, if you pay no attention for this.

Please check also:
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841668/Multi-OS+Support+AMP+Hypervisor

Maybe it's also good to write on Xilinx forum for this topic.

br
John