当前位置:网站首页>Zynq transplant ucosiii
Zynq transplant ucosiii
2022-07-07 00:36:00 【Chenxr32】
I refer to B Video on the station 《FPGA(ZYNQ) Up operation UC/OS Example -TCP Communications 》, In their own ZYNQ Porting on Development Board uCOSIII operating system , To configure BSP, Some steps are recorded here .
Software :Vivado 2017.4
chip :xc7z010clg400-1
Hardware design
First step : newly build Vivado engineering , establish Block Design, stay Block Design Add ZYNQ7 Processing System IP nucleus .
The second step : To configure ZYNQ7 Processing System IP nucleus .
To configure PS Of UART, Click on Peripheral I/O Pins page , choice UART1, My board leads to MIO48 and MIO49, The baud rate is set to 115200.
To configure PS Of Ethernet, Click on Peripheral I/O Pins page , choice Ethernet0, My board is used PHY The chip is RTL8211E,Ethernet0 What leads out is MIO16~MIO27,MDC and MDIO Assigned to MIO52、MIO53.
MIO Configuration The setting of the page is shown in the following figure .
Finally, put all the rest GPIO MIO Choose , For other purposes ( Lighting ).DDR3、PS The clock 、 Interrupt and other configurations are based on your own needs , It's not recorded here . Configured Block Design As shown in the figure below .
The third step : Verify the current design , Generate top level HDL modular , Export hardware , start-up SDK.
software design
First step : download uCOSIII Code .
You can download it from the website of the beginning video . website :https://github.com/suisuisi/zynq_guide/tree/main/ucos. This is the company that develops the operating system for ZYNQ Of Cortex-A9 CPU Transplanted code , We don't need to make any changes , Just in SDK Configure it in .
The second step : stay SDK Import uCOSIII Code .
Unzip the downloaded compressed package , take uCOSIII Put the code folder under your project directory .
Click on SDK Above the software Xilinx->Repositories, stay Local Repositories Import in column uCOSIII The path of the code folder , Click on “OK”.
The third step : New application .
OS Platform choice ucos, Click on “Next”. On the next page, select Micrium uc/OS-III Hello World Templates .( Other templates can also be tried ).
Step four : To configure BSP.
Right click on the left ucos_base_bsp, Click on Board Support Package Settings, Open configuration BSP The interface of .
Ovrview Click the following figure to check the module , I chose three modules that I must have , Check other modules as needed . among ucos_standalone Modules allow us to use Xilinx Provided peripheral driver code .
stay ucos_standalone in , take stdin and stdout Set to ps7_uart_1, That is what we selected in the hardware design UART1.
stay drivers in , take ps7_ethernet_0 The driver of is ucos_emacps, Save it for network experiments ( This article does not cover ).
Step five : Write code .
ucos_base->src->app.c There is automatically generated code in , You can compile and download it directly to the board for experiments .
#include <stdio.h>
#include <Source/os.h>
#include <ucos_bsp.h>
void MainTask (void *p_arg);
int main()
{
UCOSStartup(MainTask);
return 0;
}
void MainTask (void *p_arg)
{
OS_ERR os_err;
UCOS_Print ("Hello world from the main task\r\n");
while (DEF_TRUE) {
OSTimeDlyHMSM(0, 0, 10, 0, OS_OPT_TIME_HMSM_STRICT, &os_err);
UCOS_Print("Periodic output every 10 seconds from the main task\r\n");
}
}
I also tried TCP and DNS The template of , The development board connects to the router , Can succeed in IP Address .
Complete project download address :ZYNQ7010 Of uCOSIII Templates .
边栏推荐
- Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
- Model-Free Prediction
- The difference between redirectto and navigateto in uniapp
- PXE server configuration
- How engineers treat open source -- the heartfelt words of an old engineer
- 工程师如何对待开源 --- 一个老工程师的肺腑之言
- js导入excel&导出excel
- A way of writing SQL, update when matching, or insert
- Cross-entrpy Method
- DAY SIX
猜你喜欢

File and image comparison tool kaleidoscope latest download

DAY SIX

DAY TWO

三维扫描体数据的VTK体绘制程序设计

Everyone is always talking about EQ, so what is EQ?

How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms

AI super clear repair resurfaces the light in Huang Jiaju's eyes, Lecun boss's "deep learning" course survival report, beautiful paintings only need one line of code, AI's latest paper | showmeai info

Article management system based on SSM framework

【软件逆向-求解flag】内存获取、逆变换操作、线性变换、约束求解

AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
随机推荐
Imeta | Chen Chengjie / Xia Rui of South China Agricultural University released a simple method of constructing Circos map by tbtools
准备好在CI/CD中自动化持续部署了吗?
以机房B级建设标准满足等保2.0三级要求 | 混合云基础设施
AI super clear repair resurfaces the light in Huang Jiaju's eyes, Lecun boss's "deep learning" course survival report, beautiful paintings only need one line of code, AI's latest paper | showmeai info
Quaternion attitude calculation of madgwick
从外企离开,我才知道什么叫尊重跟合规…
GPIO簡介
Markov decision process
iMeta | 华南农大陈程杰/夏瑞等发布TBtools构造Circos图的简单方法
Hero League | King | cross the line of fire BGM AI score competition sharing
DAY SIX
What is a responsive object? How to create a responsive object?
uniapp中redirectTo和navigateTo的区别
Clipboard management tool paste Chinese version
Sword finger offer 26 Substructure of tree
基於GO語言實現的X.509證書
Value Function Approximation
Cross-entrpy Method
"Latex" Introduction to latex mathematical formula "suggestions collection"
Wechat applet UploadFile server, wechat applet wx Uploadfile[easy to understand]