h8s is the built-in EC on most of Thinkpad
C Assembly C++ Logos Makefile
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
LICENSE add LICENSE: 3-clause BSD license Dec 3, 2015
Makefile xmodem: implement basic xmodem feature using xmodem Aug 21, 2015
README.md README: rename it to .md and be more detailed on this project Aug 22, 2015
adc.c add support for AD/C Jul 13, 2015
adc.h adc.h: add missing include Jul 24, 2015
common.c common.c: add parenthesis to memset Aug 21, 2015
common.h common.c: implement simple memset, strncmp, strcmp Aug 21, 2015
console.c console: introduce blocking getline `int getline(char **line, int *le… Aug 21, 2015
gpio.h move stuff into .h .c Jul 11, 2015
irqs.h irqs: remove extern keyword from inline enable/disable irqs Aug 20, 2015
isrhdl.s isr: add irq handling for uart1 eri rxi Aug 8, 2015
led.c move led into own file Aug 8, 2015
led.h move led into own file Aug 8, 2015
linkscript.x linkscript: remove unsued SEARCH_DIR Aug 22, 2015
lpc.c lpc: add comments and functions defines Jul 27, 2015
lpc.h lpc: add comments and functions defines Jul 27, 2015
main.c serial/main: reenable the use of uart_getc over ringbuffer Aug 20, 2015
pmh4.c pmh4: move pin definitons into header Jul 13, 2015
pmh4.h pmh4: move pin definitons into header Jul 13, 2015
power.h fix style + indention with astyle Jul 11, 2015
ringbuffer.c move ring_is_readable into ringbuffer.c Aug 8, 2015
ringbuffer.h move ring_is_readable into ringbuffer.c Aug 8, 2015
serial.c serial: do echo of input in the uart irq routine Aug 21, 2015
serial.h serial.h: fix missing include of common.h Aug 21, 2015
sleep.c move stuff into .h .c Jul 11, 2015
sleep.h move stuff into .h .c Jul 11, 2015
startup.s startup.s: move back to asm routines. somehow the c version was very … Aug 20, 2015
test.c ringbuffer debug: add \r\n to debug output Aug 20, 2015
test.h test: add ringbuffer runtime test function Aug 20, 2015
vectors.s vectors: use new irq routines instead of proxy _isr Aug 20, 2015
xmodem.c xmodem: implement basic xmodem feature using xmodem Aug 21, 2015
xmodem.h xmodem: implement basic xmodem feature using xmodem Aug 21, 2015

README.md

open source embedded controller firmware for H8/S 2161 [built-in Thinkpad T40]

how to compile

Because of time pressure I'm still using the debian package gcc-h8300-hms/binutils-h8300-hms On debian jessy

  • gcc-h8300-hms
  • binutils-h8300-hms
  • build-essentials

Just do make

how to flash the firmware to a device?

At the moment the only possible way to flash this firmware is using the ROM loader. To access the ROM loader you must change solder several pins to enter it. Pins: P90, P91, P92, mode0, mode1

After you have activated the boot loader mode, you can use the official renesas flash kit. It's possible to use open source flash software, but this wasn't done because of time pressure.

Use blinkled.mot with reneases flash tool kit