try it, then you know it____________just do it , as love easily fade.

一次只有一个目标,步子迈小些,抑制一次实现所有功能的冲动。 过程如何结果就如何,行动是欢喜的,不管是兴奋还是沮丧的情绪都对结果无益。贵在持之以恒

导航

R8 renesas related

from internet, maybe later encounted.

1.HEW compile, if too much Chinese comments, may not compile corrently.

2, when using FDT+E8 do programming , E8 fails in initialization, comms can not be opened:

solution: in menu tools->simple interface, choose download file, and select user area, connext again, download .mot or .hex, alles.

one possibility is E8 need to be repowered.

3. when using HEW to write flash memory, be prompted to input ID code,

solution: normally, ffffffffffffff(can not copy directly and lazy to count ), sometimes 00000000000000.

4,when compiling, C grammer is right, but compile indicate errors

hint:/1, not Chinese supported, 

/2, the directory is too deep(long name) or Chinese path included.

/3, the rule" first define, than quote, repetition is forbiden" is not followed.

 

5.when debug R8C, a local variable of 300 bytes is defined in a function,  than get error hint that max is 255.

this is because auto local variables are all 8 bit address located. if excess than 255 is a must, than can define it as static loacal variable, like: static unsigned char array[300];

//maybe there is some tiny chance to encouter this.

 6. when writing codes, how to set constant variable or array to a specified fixed value.

#pragma  ADDRESS  array1  oxfe00

const unsigned  char array1 = 10;

#pragma  ADDRESS   array  oxfe00

const unsigned char array[10] = {0,1,2,3,4,5,6,7,8,9};

7, when using AD of M16C and R8C, 

OK, this item can be included in that ,when accessing register,  nop(); is needed.////?????? I forget the reason.

and when switching channels, after waiting tens of us , will get more accurate values.

8, HEW only have limitation with 64K ROM,no RAM limitation.

9. when do simulation, E8 will occupy UART1. It is suggested to use off-line debug when debuging UART1.

UART1 is completely the same as UART0, so can first use UART1 do the debug.

10, E8 simulation will occupy 2K ROM to place its run codes, located at the top of ROM, after compiling, also located in the place start from the top.

the connection interface can be manualy modified through "frimware location",to put the occupied 2K at the last position, usually 2k bytes after f000 or f4000.

 

lazy to down load the file, here is the link:

http://wenku.baidu.com/view/d0577e7fa26925c52cc5bfee.html

posted on 2012-01-17 06:01  吾一  阅读(166)  评论(0)    收藏  举报