|
7 years ago | |
---|---|---|
.. | ||
board | 8 years ago | |
driver | 8 years ago | |
Makefile | 8 years ago | |
README.md | 7 years ago | |
application.c | 8 years ago | |
board.c | 8 years ago | |
board.h | 8 years ago | |
bsp_hal.h | 8 years ago | |
cache.c | 8 years ago | |
cache.h | 8 years ago | |
config.h | 8 years ago | |
debug.h | 8 years ago | |
nds32.h | 8 years ago | |
nds32_defs.h | 8 years ago | |
os_cpu_common.h | 8 years ago | |
os_except.c | 8 years ago | |
os_except.h | 8 years ago | |
reset.c | 8 years ago | |
rtconfig.h | 8 years ago | |
start.S | 8 years ago | |
startup.c | 8 years ago |
Andes Maintainer: It's a very early and draft porting yet.
E-Mail : Archer Zhang archer.zhang@wh-mx.com
由于编译器的原因,修改了finsh.h文件的Line:74 - 75,如下
#if !(defined(__GNUC__) && defined(__x86_64__))
//typedef unsigned int size_t; // 注释这个typedef
#include <stddef.h> // 添加两个头文件包含
#include <string.h>
#else
由于串口未使用中断接收,而是使用了查询接收,所以修改了shell.c文件,如下
a. Line:316~317
//rt_device_set_rx_indicate(shell->device, finsh_rx_ind);
//rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM | RT_DEVICE_FLAG_INT_RX));
rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM));
b. Line:326,注释该行
// if (rt_sem_take(&shell->rx_sem, RT_WAITING_FOREVER) != RT_EOK) continue;
c. Line:553,添加CPU占用的释放
rt_thread_delay(1); // 或者rt-schedule();
该工程使用Makefile管理,Makefile即文件AE210P/Makefile。编译如下:
make APP=rtthread AE210P=1 USING_CLI=1 DEBUG=1 all
make APP=rtthread AE210P=1 USING_CLI=1 DEBUG=1 clean
这是一个基于Eclipse和GNU、GDB的环境,参阅对应工具/环境的标准文档即可。
关于创建工程和调试,请参阅《Andes工程创建和调试.docx》。