FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2007 Threads] Error using freertos on mega128Posted 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 mega128Posted 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 mega128Posted 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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|