Introduction
One result of a diploma thesis and an evaluation process for realtime operating systems is a port of the free open source RTOS eCos (Embedded Configurable Operating System) for the Renesas H8S processor architecture. This port is based on the H8300 port of Yoshinori Sato but is almost completely rewritten and optimized for H8S architecture. This port includes a number of variant ports of eCos for the microcontrollers H8S2357, H8S2674 and H8S2638 and platform ports for the EDOKS2674 board, the EDK2638EX board and the cetoni MCU2357 board.
cetoni contributes this port to the open source community for further development but does not offer any support for this software.
eCos Port for H8S
The eCos port and all drivers are available here for download. The port and drivers a provided without any support:
The eCos H8S port includes the following:
eCos for Renesas EDOSK2674
This is a eCos port for the Evaluation Design OS Kit for the Renesas H8S2674 microcontroller. This port supports all features of the EDOSK2674 board. Precompiled Redboot images with network support are part of this download. The EDOSK2674 platform port features the following drivers:
- H8S architecture HAL
- Variant support for microcontroller H8S2674
- Platform support for EDOSK2674
- Serial driver
- Network driver
- Realtime clock driver
- Watchdog driver
- FLASH driver
eCos for extend EDK2638
This is the platform port for the Renesas Evaluation Design Kit for Renesas H8S2638 microcontroller. The port was done for an extended version with additional SRAM and a LM629 motion controller. The port includes the following drivers:
- Variant support for microcontroller H8S2638
- Platform support for EDK2638EX
- Watchdog driver
eCos for cetoni MCU2357
This is the platform port for the cetoni microcontroller unit with H8S2357 microcontroller. The port contains precompiled Redboot images. A detailed decription of the porting process to this platform is part of the eCos H8S documentation and reference manual.
- Variant support for microcontroller H8S2638
- Platform support for EDK2638EX
- Watchdog driver
Precompiled h8300-elf Toolchain
If Windows + Cygwin is your development environment for eCos, then you can download a precompiled GNUH8 toolchain for Cygwin here.
GNUH8 v0401 is based on the gcc-3.3 branch snapshot dated 15th December 2003, binutils-2.14 and newlib sources as on 16th December 2003. GDBH8 v0401 is based on gdb-6.0 snapshot as on 31st December, 2003.
The Cygwin build is based on the sourcecode for GNUH8 provided by KPIT. Additional patches have been applied in order to enable 64 bit double support - this is required for building eCos math libraries. An additional compiler switch -mecos was added by cetoni. This switch is required in order to force a 4 byte alignment of char arrays - this is requires by eCos in order to work properly.
If the Cygwin toolchain does not work - this is possible if you have a newer Cygwin version - then you have to build the toolchain from sourcecode provided by KPIT.
IMPORTANT: If you would like to build a working eCos you have to use the toolchain provided here. It is not possible to build eCos with other toolchains or with the native KPIT toolchain because eCos requires 4 Byte array alignment and 64 Bit double support. The compiler switch -mecos is only available for the toolchain provided on this page.
You can debug sourcecode compiled with v401 toolchain only with the v401 version of the GDB debugger. For Windows debugging with Insight you should use the native Windows or Linux version provided by KPIT.
The following patch provides 64 bit double support and compiler switch -mecos for 4 byte array alignment for h8300-elf toolchain
IMPORTANT:
If you would like to have a toolchain for Windows (not Cygwin) or Linux you have to download the sourcecode for v401 toolchain from KPIT and apply the patch provided down on this page.
|