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


How to change FreeRTOS from ATMEGA323 to 128

Posted by Toan Thieu on May 22, 2009
Dear Sir/Madame

I just bought one Atmega128 evaluation board and I want to load the FreeRTOS5.11 to this board but I have a problem with demo for ATMEGA323 like this.

When I use IAR to open the demo project in ATMEGA323 and then I complile the source code. It is working well but when I plugged JTAGmkII to board for debuging and IAR inform "The stack plug-in failed to set a break point on "main". The stack window will not be able to display stack content (you can change this setting in Tools->Options dialog box) ".
Could you pleased show me why this error happen?

I also the change the configuration to ATMEGA128 by changing the library to iom128.h and change atmega device in option of project and I debug with JTAGmkII but It is not working too.
When I debugged, it always inform the stack pointer is outside.

This is the first time, I try with OS. Could you give me a help? Thank you so much.

Best regards
Toan Thieu

RE: How to change FreeRTOS from ATMEGA323 to

Posted by Dave on May 22, 2009
IAR expects the stack pointer to be within the stack region setup by the linker script. This is only the case until FreeRTOS is started. When tasks are running the stack pointer will point to the task stack which is allocated from the heap, so IAR things there is a problem when there isn't. Either turn the warning off or ignore it.

RE: How to change FreeRTOS from ATMEGA323 to

Posted by Toan Thieu on May 22, 2009
Hi Davedoors
Thank a lot. I just read "How to make demo work on AVR Atmega128" in the forum and do the same thing but only my frequency system is 8Mhz but the device is still not working. Could you tell me that we need to change anything for running on ATMEGA128 when we complied on ATMEGA128?

Thank you
Toan Thieu

[ 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