Loading...
 
sam7 emforth version 1.59 notes.

v158notes

The 1.59 release consists of one binary and several source files.
The zip is here

I can compile versions for different hardware which either run the main kernel in RAM or Flash.
This binary is "generic" - this really means the leds are disabled so there is no potential i/o conflict if someone has used these lines for something else.

This version executes most of it's kernel code in flash.

It has been tested on both a h256 and ex256 board.

You really have to use the serial server emserver to recompile the system.
Of course you have to have emserver set up with the correct working directory or it won't find the files.

To build a new kernel just type "SOURCE ARM.FTH"
This compiles arm.fth, reloc.fth and extras.fth
Once finished a new kernel is in ram.
Typing MIRROR1 will burn a "ram" version of the kernel to flash.

To build a "flash" version from a ram version type SOURCE TOFLASH.FTH
This patches and relocated forth, compiles fextras.fth and burns it into the second 64K block of flash.
The finalize you also use the MIRROR1 command - this burns a little bit of code, all the variables and reset vectors to the first 64K page of flash.

During the kernel build one of the .def files in conditionally included.
This is what determines whether the build is for a h128 or a ex256 board.
Near the top of the arm.fth file the constant PCBTYPE is defined like this.

GENERIC CONSTANT PCBTYPE

Later it is used to include a .def file like this.
PCBTYPE H256 HOST= IFDO INCLUDE H256.DEF
PCBTYPE EX256 HOST= IFDO INCLUDE EX256.DEF
PCBTYPE GENERIC HOST= IFDO INCLUDE GENERIC.DEF

Only one .def file is used.
Currently this is just defining how the LEDs work but in future - extra features like LCD support may be added this way.

eddie

Created by eddie. Last Modification: Sunday 21 of October, 2007 14:36:57 AEST by eddie.

Main Index

Switch Theme

Shoutbox

System Administrator, 13:56 AEST, Sun 07 of Aug, 2016: upgrading to tiki 15.2
eddie, 19:31 AEST, Sat 06 of Aug, 2016: This website is now served from Brisbane - in a Binarylane cloud.
System Administrator, 16:07 AEDT, Wed 06 of Mar, 2013: More f'n spam. No more anon posting from now on.
Anonymous, 18:44 AEDT, Mon 04 of Mar, 2013: deleted
Anonymous, 08:36 AEDT, Sun 03 of Mar, 2013: Very nice site!

Last-Visited Pages

Online Users

28 online users