Zynq xc7z030 platform linux+ bare metal AMP implementation (official documentation 1078, 1079) __linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.