Port ethernut to AVR32

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I've started porting ethernut to AVR32 and wonder if anyone else here is interested. I'm working on UC3, but I'm open to AP7000 suport as well.

Please stop by at http://code.google.com/p/ethernu... to join or check on our progress :)

As I've mentioned to the ethernut mailing list this is no forking. I have commit access to ethernut repository, and this work will find it's way there, the google code is just a "branch" so we can work while commit window is open and mess around in general.

Right now the lib builds properly, but it's not yet usable. We can get into NutInit but not yet into main().
Help is very much welcome, be it code, code review, testing, code/design advice, cheering, etc. :D

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
See attached a NUT/OS context switching code and OS init for AVR32 UC3. I got it from a student project and I've seen it working. However, you'll have to go through the code and find if it can be useful for you.

-sma

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

These files are the UC3 specific part of the NUT/OS and should be in arch\avr32\os.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know some people who are very interested in this work. I've sent them a link to this thread.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks sma, I will try your code.

I was trying to use ldm ++sp and stm --sp to save the registers to stack.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:-)
I may have a few OS drivers too, but I'll take a look before posting them.

-sma

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks sma :)

It took a while but I've uploaded your contributed changes to our repository :)

I noticed that you commented out the strcpy(confos.hostname, "ethernut"). Did you also get the memory alignment exception because of the packed structure?