Posted by GA on January 20, 2004, 12:27:39, in reply to "H8/300 3068F USER MODE PROGRAMMING " The 0.35um flash routines in apps note 125 should be used for the H8/3068F. Storing code in flash which is to run from RAM is always a problem. As the H8 series does not support position independent code it is important that the RAM based code is actually linked to RAM so all the addresses are correct. It is important that this RAM based code does not access the flash for constant data or library routines etc. One way to achieve this is to place the erase and program routines into separate projects which are linked to RAM. This means that all the libraries and constants are also in the RAM space as this is all the project knows about. Get the linker to output s-record data from these projects. The problem then is how to get the RAM based data into flash. The 'motice_cl' utility described in apps note 113 makes this easy as it converts the s-record data into a constant C structure. Add this too the main project and the code which is to run from RAM is now contained in the constant structure in flash. Take a look at the code examples in apps note 130 for how to copy the code from the flash based structure into RAM and call it via function ponters. Hope this helps. If you still have questions then please post them. GA --Previous Message--
194.131.190.1
The H8/3068F uses 0.35um based flash memory whereas the H8/3069F uses 0.18um therefore the H8S/3069F flash routines CANNOT be used with the H8/3068F.
: I have downloaded/readed this document:
: http://america.renesas.com/products/mpumcu/tools/support/UserModeFlashGuildline.pdf
: And the following app notes:
: 125,113,130
: Now i have a clear idea on what to
: do...but my problem is "how to
: link the flash writing/erasing
: routines at ram adresses??!?".
: Looking at APP NOTE 125 i can see the
: routines working for a 3069
: processor.Are those routines
: compatible with my 3068!? And if
: not...does somebody know how to
: get/compile/link at ram adresses the
: write/erase routines for the H8/300
: 3068 !?!?
: Im unable to find any information
: regarding the 3068!
:
: Thanks in advance!.
:
:
:
Message Thread:
![]()
« Back to thread
Evaluation Kit Support
Renesas Evaluation Boards are intended for evaluation of Renesas microprocessors only, not as development tools.