Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Error using freertos on mega128

Posted by Nobody/Anonymous on March 15, 2007
I am trying to use freetos on mega128. But the application is not working as it should. I have declared two tasks while toggle buzzer and led at an interval of 1 sec. But only led are toggling ( only the task declared in last works). If I use vTaskDelay or vTaskDelayUntil then the system hangs.

Changes I have made :-
1) In make file change from mega323 to mega128

Mega128 is running on 8MHz internal RC osc.


RE: Error using freertos on mega128

Posted by Nobody/Anonymous on March 15, 2007
I would say it sounds like the tick interrupt was not firing, but you say the LED toggle is working? Is the period of the LED toggle correct?

Does a 128 and 323 have the same timers?

RE: Error using freertos on mega128

Posted by Nobody/Anonymous on March 15, 2007
What can be the case that vTaskDelay or vTaskDelayUntil causes system to hang.

#define configUSE_PREEMPTION1
#define configUSE_IDLE_HOOK0
#define configUSE_TICK_HOOK0
#define configCPU_CLOCK_HZ( ( unsigned portLONG ) 8000000 )
#define configTICK_RATE_HZ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES( ( unsigned portBASE_TYPE ) 4 )
#define configMINIMAL_STACK_SIZE( ( unsigned portSHORT ) 85 )
#define configTOTAL_HEAP_SIZE( (size_t ) ( 2500 ) )
#define configMAX_TASK_NAME_LEN( 8 )
#define configUSE_TRACE_FACILITY0
#define configUSE_16_BIT_TICKS1
#define configIDLE_SHOULD_YIELD1

these are the settings used for avr mega128

main.c:94: warning: pointer targets in passing argument 2 of 'xTaskCreate' diffe
r in signedness
main.c:95: warning: pointer targets in passing argument 2 of 'xTaskCreate' diffe
r in signedness

these errors are coming while compiling


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner