[En-Nut-Discussion] Nut/OS port for H8/300H.

Harald Kipp harald.kipp at egnite.de
Wed Mar 17 14:44:55 CET 2004


Jan,

At 23:51 16.03.2004 +0100, you wrote:
>On Tue, 16 Mar 2004 19:55:23 +0100, Harald Kipp <harald.kipp at egnite.de> wrote:
>I had remembered about copyrights and doxygen stuff but I was too lazy
>to change it. So I am not so disciplined. :-)

Secondary stuff. :-)


>BTW. I know that AVR port rely on avr-libc startup code and linker
>scripts but IMO you should consider using custom scripts and startup
>code. It may be a bit difficult on the beginning but it gives you much
>more flexibility thus you don't have to use strange hacks as mentioned
>on the top of nutinit.c. ;-) Just a suggestion.

I thought about this several times. But during the last
year the avr-libc crt init made a lot of progress.
Wherever possible, I try to avoid duplicate code
maintainance. avr-libc also provides very good support
for customization of the init routine.


> > Frankly, I need some time to fully understand this.
>OK, first look at definition of these macros for H8 MCUs and take into
>consideration brackets in Nut{Enter,Exit}Critical():

I got it, the bracket was the key. :-)

I still have to think about it. The compiler is one side of
the coin, the debugger is the other. Right now objcopy fails
to convert Nut/OS elf to coff. It simply crashes. Most probably
because of some weird constructs within structures, but not
sure.


>If there is such need, I can provide in April schematic of simple H8
>board - just a H8/3068F (384k Flash and 16k RAM inside), RTL8019 and
>1 or 2 MAX232A chips. Currently I am running Nut/OS on very similar
>hardware. PCB has credit card size.

A reference hardware would be great. A bit larger than
CC size would help hobbyists.

Harald






More information about the En-Nut-Discussion mailing list