NutOs and eeproms

OP #1172853
Hi , I'm a new on this forum. I'm interesed in ARM - SAM7x256 but I'm a
beginner in that subject. Does anyone use NutOs and EEprom ?  I would
like to use some EEprom because SAm7x256 doesn't have any inside.
NutOs's documantation mentioned only ATmel flash and intersill eeprom
with RTC - NutOS has drivers to it. But I wold like to use another
eeprom (maybe ATmel eeprom ) and I don't now if it is possible to
program it on low level (SAM7x256 Registers, One wire or SPI etc.). How
to do it (low level - processor register programming) on NUTOs ??
#1172854
You have made a bizarre assumption that your readers were aware of what
"NutOs" is. I assume you mean Nut/OS
(http://www.ethernut.de/en/software.html). You should probably always
post a link to any third party tool (i.e. not supplied with
WinARM/ARM-GCC distributions)

I would not expect any RTOS to prevent you from directly accessing
hardware registers, so there are no particular issues with using one and
doing low-level hardware access I/O is the job of your application not
particularly that of an RTOS, which is primarily concerned with
scheduling and communicating between tasks.

What you do need to be wary of however is mutual exclusion. When one
task is accessing a resource (such as an EEPROM or interface used to
communicate with one), other tasks must be prevented from doing so. The
usual method is to use an RTOS mutex semaphore. Nut/OS has
non-preemptive cooperative multi-threading, so you will not need to use
a mutex - just make sure an operation is complete before yielding, or
use flag to prevent access is an operation must yield mid-operation. The
simple approach is merely to restrict all access to the resource to a
single thread. Where multiple threads require the resource, you can use
a "server thread" that receives requests from other threads to access
the resource in a controlled and sequential manner.

Now how you actually communicate with your device is not possible to say
until you decide what device to use and how to connect it to your
processor. But is is a matter of reading the data sheet for both and
connecting the appropriate interface. Serial EEPROMS are typically
either I2C (TWI) or SPI devices.

Clifford

Reply

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.