bgat / duinos

Automatically exported from code.google.com/p/duinos
0 stars 0 forks source link

Mega2560 Patch #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I have tested your duinOS core with the arduino mega2560 (@ATmega2560).

The problem is that the principal task cannot start, and let thinks the program 
don't working at all.

I have modified the port.c file in the duinos directory to make the mega2560 
work with FreeRTOS/DuinOS and i hope you can add the patch to your svn repo.

The program counter register on m2560 is an 22bit counter (on m1280 it's an 
16bit counter), my patch just declare usAddress as long instead of short and 
implemented 3byte addressing for the mega2560 hardware.

PS: i'm sorry for the bad English, i'm french ^^

Original issue reported on code.google.com by skywodd on 11 Aug 2011 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello,
thank you very much, it is working for me. 
At first, I had this error:

In function `vPortYieldFromTick':
port.c:430: undefined reference to `arduino_increment_millis'

Then I copied only the changes you mentioned into the port.h coming with v0.3 
and now its fine, even with Arduino 1.0.

Original comment by invade...@gmail.com on 25 Dec 2011 at 10:02

Attachments:

GoogleCodeExporter commented 9 years ago
Have I missed something, or shouldn't the pvParameters on line 349 be loaded 
for the m2560 the same way that the pxCode is loaded up above, as an unsigned 
portLONG... 

Original comment by e.stephe...@gmail.com on 29 Dec 2011 at 7:55

GoogleCodeExporter commented 9 years ago
Hi everyone,

I have the same problem with Arduino Mega 2560.

I've been use Arduino IDE 0021 with DuinOS 0.3 and Arduino IDE tell me errors 
on files DuinOS.h, WProgram.h and main.cpp.

After I replace port.c by the modified port.c, Arduino has the same errors.

There is something wrong on the replacement?

Original comment by marcosd...@gmail.com on 28 Apr 2012 at 11:38

GoogleCodeExporter commented 9 years ago
Hello!

My problem it's solved. I've been using Mac + Mega2560.

For Mac & Linux users, to apply this patch you have to do only 2 steps:

1st: Patch with port.c

2nd: Coment line number 14 from the file DuinOS.h. It would be like:

     //#include <avr/eeprom.h>

Thx to skywood and regards from Spain!!

Original comment by marcosd...@gmail.com on 28 Apr 2012 at 3:06

GoogleCodeExporter commented 9 years ago
Hi;

Does duinos 0.4 work on arduino uno mega 2560, thanks you

Original comment by ouazar.y...@gmail.com on 21 May 2012 at 3:48

GoogleCodeExporter commented 9 years ago
it's work with the patch, thank you

Original comment by ouazar.y...@gmail.com on 21 May 2012 at 10:15

GoogleCodeExporter commented 9 years ago
Hi, I wish to use DuinOS on Mega2560 R3 (just placing an order for hardware so 
can't test yet). I'm currently using https://github.com/carlosdelfino/DuinOS  
0.4 Alpha on a UNO board and initial tests have been fine. 
I'm using Mac host machine and Arduino 1.0
On moving to the Mega2560 R3  I have some questions:
Are you using the 0.4 Alpha version on the URL above or should I be using 
another one - or is there an updated core for the 2560 with all changes?
I see that there are some changes to port.c. Is the version in this discussion 
(In Comment 2) the working version?
Are there any other changes required to DuinOS.h apart from //#include 
<avr/eeprom.h>

Thanks to all for your work on this.

Original comment by peterbar...@btconnect.com on 23 May 2012 at 8:40