readme.txt 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * File : readme.txt
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-02-17 lgnq the first version
  13. */
  14. Summary:
  15. ========
  16. This directory contains the source code for M16C porting to rt-thread
  17. two tasks is running:
  18. led_task - blink the LED
  19. finsh - a user shell, comes with rt-thread
  20. Where to get help:
  21. ==================
  22. In case you have questions about, problems with or contributions for
  23. Renesas M16C prot to rt-thread, you can send a mail to dzzxzz@gmail.com.
  24. or you can post a message to the rt-thread forum
  25. there are two forums:
  26. http://www.rt-thread.org/phpbbforum
  27. http://www.ourdev.cn/bbs
  28. Where to get source code:
  29. =========================
  30. The rt-thread source code is maintained in google code
  31. http://code.google.com/p/rt-thread/
  32. use the following command to anonymously check out the latest source code:
  33. svn checkout http://rt-thread.googlecode.com/svn/trunk/ rt-thread-read-only
  34. Directory Hierarchy:
  35. ====================
  36. /rt-thread
  37. /bsp
  38. /m16c62p
  39. /applications
  40. /application.c - init led task
  41. /startup.c - rt-thread start, include main()
  42. /drivers
  43. /board.c - hardware init, init uart0
  44. /board.h
  45. /bsp.c - include led_init(), mcu_init(), timer0_init()
  46. /bsp.h
  47. /uart.c - implement uart0 device
  48. /uart.h
  49. /start_iar.asm - assembly start of iar
  50. /interrupts_iar.asm - include time0 interrupt handler, uart0 interrupt handler
  51. /vectors_iar.asm - relocatable exception vector table
  52. /start_gcc.asm - assembly start of gcc
  53. /interrupts_gcc.asm - include time0 interrupt handler, uart0 interrupt handler
  54. /vectors_gcc.asm - relocatable exception vector table
  55. /lnkm30627fhp.xcl - IAR link file for m16c62p(m30627fhp)
  56. /m16c62p.ld - GCC link file for m16c62p(m30627fhp)
  57. /rtconfig.h - rt-thread config file
  58. /rtconfig.py - SCONS config file
  59. /project.ewp - IAR project file
  60. /project.eww - IAR project file
  61. /SConsscript - SCONS script file
  62. /SConstruct - SCONS struct file
  63. /libcpu
  64. /m16c
  65. /m16c62p
  66. /context_iar.asm - rt-thread context switch, used by IAR project
  67. /context_iar.S - rt-thread context switch, used by SCONS + iar
  68. /context_gcc.S - rt-thread context switch, used by SCONS + gcc
  69. /interrupt.c
  70. /stack.c - rt-thread stack initlization
  71. Build Project:
  72. ==============
  73. there are two ways to build the renesase M16C project:
  74. 1, install IAR Embedded Workbench for renesas m16c(recommend EWM16C-EV-3501.exe)
  75. Open Workspace rtt2m16c.eww by IAR directly
  76. rebuild all
  77. the target file(rtt2m16c.mot) will be produced in /rt-thread/bsp/m16c62p/Debug/Exe
  78. you can download the rtt2m16c.mot to m16c board with E8A
  79. 2, install python, scons and IAR for m16c(recommend python2.7, scons1.3.1 and EWM16C-EV-3501.exe)
  80. open a windows cmd, and change directory to m16c project, like /rt-thread/bsp/m16c62p/
  81. #set PATH=C:\Python27\Scripts;%PATH%
  82. #scons -c
  83. #scons -j 2
  84. 3, crate IAR project with template project
  85. #set PATH=C:\Python27\Scripts;%PATH%
  86. #scons --target=iar -s
  87. add the context_iar.asm to M16C62P, and remove the context_iar.S