yuriykulikov / FreeRTOS-on-XMEGA

port.c and portmacro.h for FreeRTOS to run on any AVR XMEGA
see wiki
15 stars 13 forks source link

Support for ATxmega16A4U #6

Open mlb5000 opened 11 years ago

mlb5000 commented 11 years ago

Not really an issue, but...I know that the Readme says that this should work on ANY XMEGA, but I wanted to be completely sure. Will this FreeRTOS port run on the ATxmega16A4U? Is it built with any particular development board in mind (e.g. the STK600)?

yuriykulikov commented 11 years ago

Hi Matthew, yes, it must work. But please be aware that you might have problems with RAM memory size. Amount of tasks and their stack will be limited.

Cheers, Yuriy

On Fri, Aug 30, 2013 at 12:53 AM, Matthew Baker notifications@github.comwrote:

Not really an issue, but...I know that the Readme says that this should work on ANY XMEGA, but I wanted to be completely sure. Will this FreeRTOS port run on the ATxmega16A4U? Is it built with any particular development board in mind (e.g. the STK600)?

— Reply to this email directly or view it on GitHubhttps://github.com/yuriykulikov/FreeRTOS-on-XMEGA/issues/6 .

mlb5000 commented 11 years ago

Yuriy,

Thanks for the response. I understand that there may be limitations/hurdles, but I try to code for the minimum environment that I can, and then scale up the chip in production to give myself some headspace for future expansion while forcing myself to keep things small.

I'll let you know if I encounter any other issues.

Thanks, Matt

yuriykulikov commented 11 years ago

just make sure you don't run out of RAM. I personally prefer to have more room when it comes to RAM. Is the price difference that high?

On Fri, Aug 30, 2013 at 3:55 PM, Matthew Baker notifications@github.comwrote:

Yuriy,

Thanks for the response. I understand that there may be limitations/hurdles, but I try to code for the minimum environment that I can, and then scale up the chip in production to give myself some headspace for future expansion while forcing myself to keep things small.

I'll let you know if I encounter any other issues.

Thanks, Matt

— Reply to this email directly or view it on GitHubhttps://github.com/yuriykulikov/FreeRTOS-on-XMEGA/issues/6#issuecomment-23562485 .

mlb5000 commented 11 years ago

It has 3.3K of SRAM...I may actually need to consider that. How many concurrent tasks could I run with that much?

mlb5000 commented 11 years ago

At 1000 units

16A4U (3.3K RAM) - $1.70/unit 128A3U (8K RAM) - $2.65/unit 192C3 (16K RAM) - $3.05/unit 256A3BU (16K RAM) - $4.13/unit

How much would you recommend for FreeRTOS? I've identified about 6 tasks that will be reading/writing various hardware components.

yuriykulikov commented 11 years ago

if you are sure you have on 6, than you are fine. I assume about 40-80 bytes for simple task, 500 bytes for a big task (for example we had a rfid reader thing written in c++). For each queue you also need some RAM. But 3,3K sounds good. What about 32A4U and 64A4U? and there are also D versions which must be cheaper.

On Fri, Aug 30, 2013 at 4:31 PM, Matthew Baker notifications@github.comwrote:

At 1000 units

16A4U (3.3K RAM) - $1.70/unit 128A3U (8K RAM) - $2.65/unit 192C3 (16K RAM) - $3.05/unit 256A3BU (16K RAM) - $4.13/unit

How much would you recommend for FreeRTOS? I've identified about 6 tasks that will be reading/writing various hardware components.

— Reply to this email directly or view it on GitHubhttps://github.com/yuriykulikov/FreeRTOS-on-XMEGA/issues/6#issuecomment-23564942 .

mlb5000 commented 11 years ago

Great, thanks, those will be good numbers to keep in mind. The D versions are usually cheaper, but I was hoping to use the USB interface available the the U versions (or others supporting USB) to communicate with one of my modules.

I should probably get engaged on the FreeRTOS Atmel forum too.

yuriykulikov commented 11 years ago

Is there one? Please give a link :-) Thanks.

On Fri, Aug 30, 2013 at 5:22 PM, Matthew Baker notifications@github.comwrote:

Great, thanks, those will be good numbers to keep in mind. The D versions are usually cheaper, but I was hoping to use the USB interface available the the U versions (or others supporting USB) to communicate with one of my modules.

I should probably get engaged on the FreeRTOS Atmel forum too.

— Reply to this email directly or view it on GitHubhttps://github.com/yuriykulikov/FreeRTOS-on-XMEGA/issues/6#issuecomment-23568588 .

mlb5000 commented 11 years ago

I assumed that's what this was (http://www.freertos.org/Interactive_Frames/Open_Frames.html?http://interactive.freertos.org/entries/20171897-xmega-port-for-students). That's how I discovered this project :).