[En-Nut-Discussion] question

Harald Kipp harald.kipp at egnite.de
Mon Mar 9 13:46:58 CET 2009


gao_sunny001 wrote:
>    I have a question,when i used the nut/os EFC api(in the at91_efc.c) to write the internal flash,at the specified sectors(for example location at 0x7f00-0x8000,0x9000-0x9100...)the process is not correct.why? where do the nutentercritical and nutexitcritical run when write the flash?

I can't remember really having done that code, but according to the
history I did it.

NutEnter/ExitCritical are inline assembly macros:

http://www.ethernut.de/api/include_2arch_2arm_2atom_8h-source.html

They disable/enable global interrupts.

Note, that At91EfcCmd() must run in RAM.

Harald





More information about the En-Nut-Discussion mailing list