Quality RTOS & Embedded Software

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




Loading

lpc2368

Posted by chinamay kumar on April 18, 2008
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

RE: lpc2368

Posted by Richard on April 18, 2008
You did not say which compiler you are using. Did you try one of the standard demos first?

Regards.

RE: lpc2368

Posted by chinamay kumar on April 19, 2008
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




RE: lpc2368

Posted by Dave on April 19, 2008
> 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?


RE: lpc2368

Posted by chinamay kumar on April 19, 2008
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?

RE: lpc2368

Posted by chinamay kumar on April 22, 2008
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

RE: lpc2368

Posted by JMR on April 22, 2008
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

RE: lpc2368

Posted by chinamay kumar on April 23, 2008
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


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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