板子使用的是自己的产品,基本上跟8313erdb差不多。
bootloader是对uboot的简化和改写,实现对板子的启动和初始化,下载和加载程序。
先去ucos官网下载了一个移植到8349e的codewarrior工程。用codewarrior和仿真器试了一下,可以运行。
然后建立自己的目录,目录结构如下:
uCos_8313
|__app
|__ app.c
app_hooks.c
app_cfg.h
includes.h
os_cfg.h
|__BSP
|__ bsp.c
8349ITX_registers.h
bsp.h
cstart.s
vectors.s
|__out
|__uC-CPU
|__ cpu_a.s
cpu.h
cpu_def.h
|__uC-LIB
|__ lib_mem.c
lib_str.c
lib_def.h