readme.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. E-Mail : Archer Zhang <archer.zhang@wh-mx.com>
  2. ******************************
  3. 文件(夹)添加和修改
  4. ******************************
  5. [1] 在bsp目录下,添加AE210P目录,这是Andes AE210P EVB(N1068A)的主目录;
  6. [2] 在libcpu目录下,添加nds32目录,这是Andes N10系列Core的体系目录;
  7. [3] 由于编译器和Libc的原因(我们使用的Libc位于AE210P/libc),修改了finsh.h文件的Line:74~75,如下
  8. #if !(defined(__GNUC__) && defined(__x86_64__))
  9. //typedef unsigned int size_t; // 注释这个typedef
  10. #include <stddef.h> // 添加两个头文件包含
  11. #include <string.h>
  12. #else
  13. [4] 由于串口未使用中断接收,而是使用了查询接收,所以修改了shell.c文件,如下
  14. a. Line:316~317
  15. //rt_device_set_rx_indicate(shell->device, finsh_rx_ind);
  16. //rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM | RT_DEVICE_FLAG_INT_RX));
  17. rt_device_open(shell->device, (RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM));
  18. b. Line:326,注释该行
  19. // if (rt_sem_take(&shell->rx_sem, RT_WAITING_FOREVER) != RT_EOK) continue;
  20. c. Line:553,添加CPU占用的释放
  21. rt_thread_delay(1); // 或者rt-schedule();
  22. ******************************
  23. 工程管理
  24. ******************************
  25. [1] 该工程使用Makefile管理,Makefile即文件AE210P/Makefile;
  26. 编译如下:
  27. make APP=rtthread AE210P=1 USING_CLI=1 DEBUG=1 all
  28. make APP=rtthread AE210P=1 USING_CLI=1 DEBUG=1 clean
  29. ******************************
  30. Tool Chain/IDE
  31. ******************************
  32. [1] IDE:AndeSight_V300_STD
  33. 这是一个基于Eclipse和GNU、GDB的环境,参阅对应工具/环境的标准文档即可。
  34. 关于创建工程和调试,请参阅《Andes工程创建和调试.docx》。
  35. ******************************
  36. 测试目标板(PCBA)
  37. ******************************
  38. [1] AE210P EVB