• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

applications/21-Aug-2025-

drivers/21-Aug-2025-

SConscript A D21-Aug-2025277 139

SConstruct A D21-Aug-20251.1 KiB3627

lnkm30627fhp.xcl A D21-Aug-20257.5 KiB237192

m16c62p.ld A D21-Aug-20252.1 KiB167144

project.ewp A D21-Aug-202548.1 KiB1,9101,909

project.eww A D21-Aug-2025151 117

readme.txt A D21-Aug-20253.7 KiB9483

rtconfig.h A D21-Aug-20251.6 KiB8027

rtconfig.py A D21-Aug-20253 KiB10884

template.ewp A D21-Aug-202546.6 KiB1,7771,773

readme.txt

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