readme.txt 3.7 KB

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