According to the Xilinx official guidance document 1078, 1079来 debug amp Mode boot more laborious, because already very old tutorials. In fact, the whole document is useful for just a few points. Summarize the implementation on a few lines of code. In order to make the majority of code friends easily implemented, the close-up method is as follows:
The first step: Create Zynq FSLB Common Engineering, and then add the LOADCPU1 code in main.
void LoadCpu1 (void)
{
#if 1
fsbl_printf (debug_general, "fsbl:writing startaddress for cpu1\n\r");
Xil_out32 (Cpu1startadr, 0x18000000);
DMB (); Waits until write has finished
fsbl_printf (Debug_general, "fsbl:sending the SEv to wake Up cpu1\n\r");
SEv ();
#endif
}
Step Two: Create CPU1 ordinary HelloWorld project, and then compile the option to add-g-duse_amp=1 switch.
Step three: Set up the load memory address corresponding to each CPU.
Finished, normal can run up.
If you do not understand, or want to be lazy, you can download the project code directly (including BOOT,CPU0, CPU1 demo program and Ucos demo), Link: http://download.csdn.net/detail/wuyusheng314/9905474.