Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

freeRTOS and ATmega16

Posted by Nobody/Anonymous on November 11, 2004
I'm trying to use freeRTOS with ATmega!^ could you please tell me what changes should i do in order to work wiht freeRTOS that refers on ATmega323?

RE: freeRTOS and ATmega16

Posted by Richard on November 11, 2004
See the "To use a microcontroller other than an AVR ATMega323" section of the AVR port documentation.

http://www.freertos.org/a00098.html

The part about the tick timer having a different configuration is relevant to the Mega16.

The Mega16 has half the memory of the 323, which means it cannot run all the tasks in th demo application. If you wish to use an OS maybe external RAM would be preferable as the 16 only has 1K.

Regards.


RE: freeRTOS and ATmega16

Posted by Nobody/Anonymous on November 11, 2004
If i dont want to use an external RAM,what changes should i do in the source code in order to use ATmega16

RE: freeRTOS and ATmega16

Posted by Richard on November 12, 2004
Assuming you have already looked at the "To use a microcontroller other than an AVR ATMega323" section of http://www.freertos.org/a00098.html - and followed the instructions there - then in addition to use a part with only 1K of RAM you will have to create less tasks.

To just run the flash tasks (assuming you have an STK500):

1) Remove the lines in demo/ATMega323/main.c that create tasks, other than the flash tasks...so delete the lines :

vStartIntegerMathTasks( tskIDLE_PRIORITY );
vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
and
sTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );

I tried this in the AVRStudio simulator with portTOTAL_HEAP_SIZE set to 700.

As stated previously, I think the timer setup is slightly different on the 16 than the 323 - so this will require modification in port.c.

RE: freeRTOS and ATmega16

Posted by Nobody/Anonymous on November 12, 2004
Thank you i 'll try this. ( I use STK500)


Nick Pol.

RE: freeRTOS and ATmega16

Posted by Nobody/Anonymous on November 14, 2004
when i try to simulate the hex file it appears this message

Objectfile does not exist: D:\Documents and Settings\nikos\FreeRTOSV2.5.2\Demo\ATMega323\coff\rtosdemo.hex

does anyone know what is the problem?

thanks N. Pol

RE: freeRTOS and ATmega16

Posted by Nobody/Anonymous on November 14, 2004
Run buildclean.bat, then buildcof.bat and check that the build completes successfully.

Then start AVR studio and open rtosdemo.cof (i.e. not hex) from the created coff directory.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists