[En-Nut-Discussion] NutEnterCritical

Harald Kipp harald.kipp at egnite.de
Sun Sep 30 11:03:33 CEST 2007


Martin,

It would have been helpful to know more about your environment, Nut/OS 
version, target board, etc.

Possibly this ChangeLog entry helps:

2007-09-11  Harald Kipp  <foo at bar>

        * include/arch/avr/atom.h: NutEnter/ExitCritical destroyed R0.
        Many thanks to Jean Pierre Gauthier for tracking this hidden bug.

It is fixed in 4.4. If you don't want to upgrade now, replace the 
NutEnter/ExitCritical macros with the newer versions from CVS
http://ethernut.cvs.sourceforge.net/ethernut/nut/include/arch/arm/atom.h?revision=1.4

Harald

ml schrieb:
> i try to use NutEnterCritical to switch of all Interrupts. In the following
> Example my Programm chrashed.
>   




More information about the En-Nut-Discussion mailing list