[En-Nut-Discussion] Move NutLoadConfig() into main thread?

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sun Nov 2 21:37:24 CET 2014


>>>>> "Philipp" == Philipp Burch <phip at hb9etc.ch> writes:

    Philipp> Hi everyone, I'm using an I2C EEPROM as non-volatile storage on
    Philipp> my board. Since Nut/OS and/or Nut/Net already contain
...
    Philipp> But I also needed a workaround/hack in my I2C driver to make
    Philipp> that stuff work. The problem is that NutLoadConfig() is called
    Philipp> during system initialization from the idle loop. The driver
    Philipp> normally is interrupt-driven and waits for an event using
    Philipp> NutEventWait(), but this crashes when called from the idle
    Philipp> thread (NutThreadSwitch() causes a BusFault on the
    Philipp> Cortex-M4). 

Unexpected crashed often result from a stack to small. Did you try with more
stack space?

Bye
-- 
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