• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

簡易NC通信端末の製作


Commit MetaInfo

Revision8ffac7cf58b6d449b4b1158bc9a79d8a6716ed08 (tree)
Time2012-06-07 11:05:41
AuthorKAZ.Imamura(Office) <kaz@tekk...>
CommiterKAZ.Imamura(Office)

Log Message

000.000.016: 2012/06/07 11:02 : Memory map update due to Hterm.
[Modification]

+ Linker script is updated.
+ Add parts of monitor FW codes into tool folder.

[Confirmation]

+ Compilable.
+ Hterm can be used.

Signed-off-by: KAZ.Imamura(Office) <kaz@tekken.cx>

Change Summary

Incremental Difference

--- a/H8_3069_h8mon.x
+++ b/H8_3069_h8mon.x
@@ -11,8 +11,8 @@ ENTRY("_start")
1111 MEMORY
1212 {
1313 vectors(rw) : o = 0x000000, l = 0x100
14- ram(rwx) : o = 0x400000, l = 0x4000
15- vrom(rwx) : o = 0x404000, l = 0x1C000
14+ vrom(rwx) : o = 0x400000, l = 0x1C000
15+ ram(rwx) : o = 0x41C000, l = 0x4000
1616 eram(rwx) : o = 0x420000, l = 0x1E0000
1717 temp(rwx) : o = 0x600000, l = 0
1818 vvect(rw) : o = 0xffbf20, l = 0x100
@@ -21,7 +21,8 @@ MEMORY
2121
2222 SECTIONS
2323 {
24-.vectors : {
24+.vvect : {
25+/* .vectors : { */
2526 LONG (ABSOLUTE(_start)) /* #00 Reserverd */
2627 LONG (ABSOLUTE(_start)) /* #01 Reserverd */
2728 LONG (ABSOLUTE(_start)) /* #02 Reserverd */
@@ -75,17 +76,19 @@ SECTIONS
7576 LONG (ABSOLUTE(_start)) /* #46 Reserverd */
7677 LONG (ABSOLUTE(_start)) /* #47 Reserverd */
7778
78- } > vectors
79+/* } > vectors */
80+ } > vvect
7981
8082 .text : {
8183 *(.text)
8284 *(.strings)
8385 *(.rodata)
8486 } > vrom
85-
87+/*
8688 .vvect : {
8789 *(.vvect)
8890 } > vvect
91+*/
8992
9093 .bss : {
9194 *(.bss)
--- a/srcver.h
+++ b/srcver.h
@@ -12,9 +12,10 @@
1212
1313 #define SRCVER_MAJOR 0
1414 #define SRCVER_MINOR 0
15-#define SRCVER_BUILD 15
15+#define SRCVER_BUILD 16
1616
1717 /* --------------------------------------------------------------------
18+000.000.016: 2012/06/07 11:02 : Memory map update due to Hterm.
1819 000.000.015: 2012/06/05 18:24 : File view, Dir view is updated.
1920 000.000.014: 2012/06/05 18:24 : FAT access is updated. DIR info can be read!!
2021 000.000.013: 2012/05/31 17:32 : Update FAT BPB information analysis.
--- /dev/null
+++ b/tool/monitor.c
@@ -0,0 +1,29 @@
1+/************************************************************************/
2+/* H8/300H Monitor Program (Advanced Mode) Ver. 3.0A */
3+/* Copyright (C) 2003 Renesas Technology Corp. */
4+/************************************************************************/
5+#include "3069s.h" /* */
6+#pragma global_register(monitor=ER5) /* Return Address */
7+void (*monitor)(void); /* */
8+/************************************************************************/
9+/* User Initialize Module */
10+/* Input ER5 <-- Return Address */
11+/* Output Nothing */
12+/* Used Stack Area --> 0(0) Byte */
13+/************************************************************************/
14+#pragma noregsave(INITIALIZE) /* Non Register Save */
15+void INITIALIZE(void) /* */
16+{ /* */
17+ BSC.ABWCR.BYTE = 0xff; // CS0-CS7:8bitバス
18+ BSC.ASTCR.BYTE = 0xff; // CS0-CS7:3ステートアクセス
19+ BSC.BCR.BYTE = 0xc6; //
20+
21+ P1DDR=0xFF; // Port1 use for BUS
22+ P2DDR=0x07; // Port2 use for BUS
23+ P8DDR=0xEC; // Port8(4-2) use for CS
24+ RTCOR=0x03;
25+ RTMCSR=0x27;
26+ DRCRB=0x98;
27+ DRCRA=0x78;
28+ monitor(); /* Goto Monitor Program */
29+} /* */
--- /dev/null
+++ b/tool/monitor.sub
@@ -0,0 +1,12 @@
1+INPUT ADVANCED,MONITOR
2+LIST MONITOR.MAP
3+SHOW SYMBOL
4+OUTPUT MONITOR.MOT
5+FORM STYPE
6+NOOPTIMIZE
7+LIBRARY ADVANCED,3069
8+LIBRARY MONITOR
9+DEFINE $BRR=13
10+DEFINE $STACK=FFFF20
11+START VECTOR/0,ROM/100,RAM/FFC020,USER/FFBF20,SCI/FFFFB8
12+