保留模板例程的中的platform配置文件,删除其余文件。 编辑 修改main.c文件 修改main.c文件为如下: #include <stdio.h> #include "xparameters.h" #include "netif/xadapter.h" #include "platform.h" #include "platform_config.h" #include "lwipopts.h" #include "xil_printf.h" #include "sleep.h" #i...
Step4:在SDK中编写Memory测试代码。 #include <stdio.h> #include <stdlib.h> #include "platform.h" #include "xil_printf.h" #include "xil_types.h" #include "xil_io.h" int main() { u32 test_src[100]; int i; int readback; init_platform(); u32 *result = (u32*) malloc(sizeof(u...
3、串口打印FSBL中启动信息。 只需要在以下位置的的fsbl_debug.h中,添加一个宏定义即可。 #define FSBL_DEBUG_INFO 4、新建两个app hello_test1.c #include #include "platform.h" #include "xil_printf.h" #include "xil_io.h" #include "sleep.h" #define PSS_RST_CTRL_REG 0xF8000200 //PSS_RST_...
Enable to develop your own design. Vitis™ Unified Software PlatformEmbedded Development Video Library Curated video playlists for UltraScale+ MPSoCs View All Videos Online Training Courses AMD training and learning resources provide the practical skills and fundamental knowledge you need to be fully ...
#include "xparameters.h" #include "sleep.h" #include "platform.h" int main() { XGpio output; int Status; /* * Initialize the GPIO driver so that it's ready to use, * specify the device ID that is generated in xparameters.h
#include "platform.h" #include "xil_printf.h" #include "sleep.h" #include "xdevcfg_pl.h" int main() { int Status; init_platform(); printf("hello \n"); for(;;) { Status = XDcfgPolled(&DcfgInstance,DCFG_DEVICE_ID); if (Status != XST_SUCCESS) { ...
分别是platform-auto.h和platform-top.h。 并且我们主要在platform-auto.h中来配置uboot的环境。将这两个文件拷贝到./include/configs/下。 platform-top.h: #include <configs/platform-auto.h> #define CONFIG_SYS_BOOTM_LEN 0xF000000 #define DFU_ALT_INFO_RAM \ "dfu_ram_info=" \ "setenv dfu_alt...
hw_platform不需要对AMP进行设置,主要工作都在SDK上。 需要分别建立两个CPU的APP项目,其中CPU1的向导中要注意处理器选项选择CPU1。 CPU1的BSP SETTING需增加-DUSE_AMP=1。 每个CPU的APP项目的src目录中按照自己预想的存储器分配方案修改lscript.ld文件中的内容,千万注意不要让两个CPU的DDR地址重合,因为你APP的EL...
Enable to develop your own design. Vitis™ Unified Software PlatformEmbedded Development Video Library Curated video playlists for UltraScale+ MPSoCs View All Videos Online Training Courses AMD training and learning resources provide the practical skills and fundamental knowledge you need to be fully ...
#include "xil_io.h" //这个头文件下面包含很重要的IO读写函数 #include "xparameters.h" //这个头文件里把硬件的地址映射等参数都写成了宏定义方便使用 //void print(char *str); int main() { int num; int rev; init_platform(); xil_printf("---The test is start...---\n\r"); //XPAR...