[En-Nut-Discussion] Nut/OS under Ubuntu 14.04

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Nov 25 00:06:41 CET 2014

>>>>> "Michael" == Michael H <farwest at gmx.de> writes:

    Michael> I have a handful of ethernut1.3g boards and 1 rev-h.  I tried
    Michael> both nutconf and qnutconf. But every config leads to the same
    Michael> compiler-errors.  So I copied some changes from the
    Michael> dev-branch.git-file and applied these changes to my 5.1.0-1:

What keeps you from just using SVN Head?

    Michael> in nut/include/toolchain/avrlibc.h: 128,133d127 < #if
    Michael> __AVR_LIBC_VERSION__ >= 10800UL < typedef const char PROGMEM
    Michael> prog_char; < #endif < #ifndef PGM_P < #define PGM_P prog_char *
    Michael> < #endif (from the dev-branch.git-file)

Normal Bitrot. Either use an old ethernut and an old avr-gcc or a recent
avr-gcc and a recent ethernut.

Giving the -u option to diff boosts readability...

    Michael> in nut/arch/avr/dev/adc.c: 147,149d146 < #ifdef ADC < ADC_value
    Michael> = inw(ADC); < #else 151,152c148 < #endif (from the
    Michael> dev-branch.git-file)

    Michael> in nut/net/tcpsm.c 67,74d66 < #ifndef TCP_RTTO_MIN < #define
    Michael> TCP_RTTO_MIN 200 < #endif < #ifndef TCP_RTTO_MAX < #define
    Michael> TCP_RTTO_MAX 20000 < #endif < from tcputil.c

    Michael> Now it ends here: make[1]: Betrete Verzeichnis
    Michael> '/home/mh/ethernut-5.1.0/nut/cpp' nutcpp.cc:1: *** Fehlendes
    Michael> Begrenzungszeichen.  Schluss.  make[1]: Verlasse Verzeichnis
    Michael> '/home/mh/ethernut-5.1.0/nut/cpp' make: *** [all] Fehler 2

Please, post the .conf file so others can reproduce.

Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the En-Nut-Discussion mailing list