lpc2368

HI All, I am working on lpc2368 FreeRTOS on Keil MCB (ver.3) board. I successfully created two task but  I am not able to run schedular. And can we allow nested Interrupts in freeRTOS? Please reply soon. Many Thanks in advance. Chinamay

lpc2368

You did not say which compiler you are using.  Did you try one of the standard demos first? Regards.

lpc2368

Hi Richard, Thanks for replying. Yes, I tried demo application of lpc2368_Eclipse.But thats not working. Than i use WinARM compiler.And now i am able to create tasks only. After that when  I call scheduler my tasks are not executing. Here is the patch of main.c… /*main.c*/ int main( void ) {     prvSetupHardware();    xTaskCreate( MyTask1, ( signed portCHAR * ) "MyTask1", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );    vTaskStartScheduler();    return 0; } MyTask1 is a simple continous loop to print a message on Hyperterminal. But my code go upto to timer interrupt but not execute MyTask1. Chinamay

lpc2368

> Yes, I tried demo application of lpc2368_Eclipse.But thats > not working. Not working could mean:  Not compiling, not linking, not programmable, not debuggable, not running, crashing, etc. etc. > Than i use WinARM compiler.And now i am able to create tasks only. > After that when  I call scheduler my tasks are not executing. > Here is the patch of main.c… > > /*main.c*/ > int main( void ) > {  >    prvSetupHardware(); >    xTaskCreate( MyTask1, ( signed portCHAR * ) "MyTask1", > configMINIMAL_STACK_SIZE, > NULL, mainCHECK_TASK_PRIORITY, NULL ); >    vTaskStartScheduler(); >    return 0; > } > > MyTask1 is a simple continous loop to print a message on > Hyperterminal. > > But my code go upto to timer interrupt but not execute MyTask1. Have you made any modifications to the makefile or startup code? In particular, have you started the scheduler in Supervisor mode?

lpc2368

I was able to compile but after flashing .hex on lpc2368.No indication is seen like LED or LCD indication according to freertos code and i dont have JTAG. Yes i did some modifications in make file according to WinARM and  my scheduler is in supervisor  mode. And plz tell me-> 1. is freertos using roundrobin prempt scheduling or something else? 2.How can we handle multiple interrupts for multiple tasks? I am not able to run scheduler. If u need makefile and bootup file then tell how can i send u those?

lpc2368

HI everybody, As i stated earlier i am not able to run scheduler on lpc2368 after creating task . So please guide me what can i do for runnning scheduler… Thanks chinamay

lpc2368

Well this is a bit tricky to answer without all the information as requested by davedoors. As for the previous posts questions: 1 Round robin pre-emptive with priorities (See online documentation for more information). Not sure about multiple interrupts for multiple tasks. Should that be a task can be woken by multiple interrupt sources? or an interrupt source can wake multiple tasks? Or any other combination? It’s not that we don’t want to help but you’re not making it easy for us to figure out what may be going wrong. I’d suggest the following reading: http://catb.org/~esr/faqs/smart-questions.html

lpc2368

HI JMR, Thanks for replying. As I stated my problem I am not able to execute my task after creating for lpc_2368_eclipse of freertos v4.7.2. I am using WinARM compiler. If u need changed file for investigation so Please let me know the mode how can i send you those? chinamay