EmbeddedRelated.com
Forums

FreeRTOS on LPC248

Started by el_mehdi_fakir March 6, 2013
Hello, I'm new to this group, I hope I will be useful also in this community me too, but now I need your help, I have a project on a map LPC2148 Education Board and I have put in FreeRTOS, j 'I found a source here in the file section but I did not fully comprehend how it works? and I want to create my own tasks and add them to FreeRTOS but I have not found how I work with a students licensed CrossStudio.
I hope you give me a solution about this and thank you.

An Engineer's Guide to the LPC2100 Series

On 06/03/2013 17:29, el_mehdi_fakir wrote:
>
>
> Hello, I'm new to this group, I hope I will be useful also in this
> community me too, but now I need your help, I have a project on a map
> LPC2148 Education Board and I have put in FreeRTOS, j 'I found a source
> here in the file section but I did not fully comprehend how it works?
> and I want to create my own tasks and add them to FreeRTOS but I have
> not found how I work with a students licensed CrossStudio.
> I hope you give me a solution about this and thank you.

There is a chance the code in the files section of this group is quite
out of date, so you are probably best off going to the FreeRTOS web site
to grab the latest versions. There are also lots of resource for you on
the same site. I suggest starting here:
http://www.freertos.org/FreeRTOS-quick-start-guide.html
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 103000 downloads in 2012.

+ http://www.FreeRTOS.org/plus
Trace, safety certification, UDP/IP, TCP/IP, training, and more...

--- In l..., FreeRTOS Info wrote:
>
> On 06/03/2013 17:29, el_mehdi_fakir wrote:
> >
> >
> > Hello, I'm new to this group, I hope I will be useful also in this
> > community me too, but now I need your help, I have a project on a map
> > LPC2148 Education Board and I have put in FreeRTOS, j 'I found a source
> > here in the file section but I did not fully comprehend how it works?
> > and I want to create my own tasks and add them to FreeRTOS but I have
> > not found how I work with a students licensed CrossStudio.
> > I hope you give me a solution about this and thank you.
>
> There is a chance the code in the files section of this group is quite
> out of date, so you are probably best off going to the FreeRTOS web site
> to grab the latest versions. There are also lots of resource for you on
> the same site. I suggest starting here:
> http://www.freertos.org/FreeRTOS-quick-start-guide.html
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for microcontrollers. More than 103000 downloads in 2012.
>
> + http://www.FreeRTOS.org/plus
> Trace, safety certification, UDP/IP, TCP/IP, training, and more...
>

thank you so much, but in the web site I can't find the source for lpc2148 ! is there any other demo wich it's compatible with my MCU ? and how can I put my tasks in the MCU ??

--- In l..., "el_mehdi_fakir" wrote:
>
> --- In l..., FreeRTOS Info wrote:
> >
> > On 06/03/2013 17:29, el_mehdi_fakir wrote:
> > >
> > >
> > > Hello, I'm new to this group, I hope I will be useful also in this
> > > community me too, but now I need your help, I have a project on a map
> > > LPC2148 Education Board and I have put in FreeRTOS, j 'I found a source
> > > here in the file section but I did not fully comprehend how it works?
> > > and I want to create my own tasks and add them to FreeRTOS but I have
> > > not found how I work with a students licensed CrossStudio.
> > > I hope you give me a solution about this and thank you.
> >
> > There is a chance the code in the files section of this group is quite
> > out of date, so you are probably best off going to the FreeRTOS web site
> > to grab the latest versions. There are also lots of resource for you on
> > the same site. I suggest starting here:
> > http://www.freertos.org/FreeRTOS-quick-start-guide.html
> > Regards,
> > Richard.
> >
> > + http://www.FreeRTOS.org
> > Designed for microcontrollers. More than 103000 downloads in 2012.
> >
> > + http://www.FreeRTOS.org/plus
> > Trace, safety certification, UDP/IP, TCP/IP, training, and more...
> > thank you so much, but in the web site I can't find the source for lpc2148 ! is there any other demo wich it's compatible with my MCU ? and how can I put my tasks in the MCU ??
>

That is something you will often come across, what you need is never there :(
However often you'll find an example that is close enough to what you want, so that you can change it to fit your needs.

"Recently" I needed a FreeRTOS port for the LPC2468 using gcc and eclipse. There wasn't one, so I used the example for the LPC2368 and modified it. Works great now, even though I had no experience with FreeRTOS or the LPC2468 (had used other LPC's before).

My guess is that your best bet would be to start with the LPC2138 example and go on from there.
I would suggest checking the memory map of both controllers (check User Manuals) too see if the base addresses of the peripherals are the same.

First get a demo up and running. After that make a backup and start playing with it, sure you'll break it the first few times :)

--
Kevin

--- In l..., "Kevin" wrote:
>
> --- In l..., "el_mehdi_fakir" wrote:
> >
> >
> >
> > --- In l..., FreeRTOS Info wrote:
> > >
> > > On 06/03/2013 17:29, el_mehdi_fakir wrote:
> > > >
> > > >
> > > > Hello, I'm new to this group, I hope I will be useful also in this
> > > > community me too, but now I need your help, I have a project on a map
> > > > LPC2148 Education Board and I have put in FreeRTOS, j 'I found a source
> > > > here in the file section but I did not fully comprehend how it works?
> > > > and I want to create my own tasks and add them to FreeRTOS but I have
> > > > not found how I work with a students licensed CrossStudio.
> > > > I hope you give me a solution about this and thank you.
> > >
> > > There is a chance the code in the files section of this group is quite
> > > out of date, so you are probably best off going to the FreeRTOS web site
> > > to grab the latest versions. There are also lots of resource for you on
> > > the same site. I suggest starting here:
> > > http://www.freertos.org/FreeRTOS-quick-start-guide.html
> > > Regards,
> > > Richard.
> > >
> > > + http://www.FreeRTOS.org
> > > Designed for microcontrollers. More than 103000 downloads in 2012.
> > >
> > > + http://www.FreeRTOS.org/plus
> > > Trace, safety certification, UDP/IP, TCP/IP, training, and more...
> > >
> >
> > thank you so much, but in the web site I can't find the source for lpc2148 ! is there any other demo wich it's compatible with my MCU ? and how can I put my tasks in the MCU ??
> > That is something you will often come across, what you need is never there :(
> However often you'll find an example that is close enough to what you want, so that you can change it to fit your needs.
>
> "Recently" I needed a FreeRTOS port for the LPC2468 using gcc and eclipse. There wasn't one, so I used the example for the LPC2368 and modified it. Works great now, even though I had no experience with FreeRTOS or the LPC2468 (had used other LPC's before).
>
> My guess is that your best bet would be to start with the LPC2138 example and go on from there.
> I would suggest checking the memory map of both controllers (check User Manuals) too see if the base addresses of the peripherals are the same.
>
> First get a demo up and running. After that make a backup and start playing with it, sure you'll break it the first few times :)
>
> --
> Kevin
>
Okey Kevin, Thank's for the advice ! I'll modify the demo of LPC2138 and I'll see what gonna happen ! I hope it works this time.
otherwise can you show how to create a task and put it in the scheduler ?? thank you again

>> > thank you so much, but in the web site I can't find the source for
> lpc2148 ! is there any other demo wich it's compatible with my MCU ? and
> how can I put my tasks in the MCU ??
>> >
>>
>> That is something you will often come across, what you need is never
> there :(
>> However often you'll find an example that is close enough to what you
> want, so that you can change it to fit your needs.
>>
>> "Recently" I needed a FreeRTOS port for the LPC2468 using gcc and
> eclipse. There wasn't one, so I used the example for the LPC2368 and
> modified it. Works great now, even though I had no experience with
> FreeRTOS or the LPC2468 (had used other LPC's before).
>>
>> My guess is that your best bet would be to start with the LPC2138
> example and go on from there.
>> I would suggest checking the memory map of both controllers (check
> User Manuals) too see if the base addresses of the peripherals are the same.
>>
>> First get a demo up and running. After that make a backup and start
> playing with it, sure you'll break it the first few times :)
>>
>> --
>> Kevin
>>
> Okey Kevin, Thank's for the advice ! I'll modify the demo of LPC2138 and
> I'll see what gonna happen ! I hope it works this time.
> otherwise can you show how to create a task and put it in the scheduler
> ?? thank you again

Here are other relevant links:

http://www.freertos.org/Creating-a-new-FreeRTOS-project.html
http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 103000 downloads in 2012.

+ http://www.FreeRTOS.org/plus
Trace, safety certification, UDP/IP, TCP/IP, training, and more...
--- In l..., FreeRTOS Info wrote:
> >> > thank you so much, but in the web site I can't find the source for
> > lpc2148 ! is there any other demo wich it's compatible with my MCU ? and
> > how can I put my tasks in the MCU ??
> >> >
> >>
> >> That is something you will often come across, what you need is never
> > there :(
> >> However often you'll find an example that is close enough to what you
> > want, so that you can change it to fit your needs.
> >>
> >> "Recently" I needed a FreeRTOS port for the LPC2468 using gcc and
> > eclipse. There wasn't one, so I used the example for the LPC2368 and
> > modified it. Works great now, even though I had no experience with
> > FreeRTOS or the LPC2468 (had used other LPC's before).
> >>
> >> My guess is that your best bet would be to start with the LPC2138
> > example and go on from there.
> >> I would suggest checking the memory map of both controllers (check
> > User Manuals) too see if the base addresses of the peripherals are the same.
> >>
> >> First get a demo up and running. After that make a backup and start
> > playing with it, sure you'll break it the first few times :)
> >>
> >> --
> >> Kevin
> >>
> > Okey Kevin, Thank's for the advice ! I'll modify the demo of LPC2138 and
> > I'll see what gonna happen ! I hope it works this time.
> > otherwise can you show how to create a task and put it in the scheduler
> > ?? thank you again
>
> Here are other relevant links:
>
> http://www.freertos.org/Creating-a-new-FreeRTOS-project.html
> http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for microcontrollers. More than 103000 downloads in 2012.
>
> + http://www.FreeRTOS.org/plus
> Trace, safety certification, UDP/IP, TCP/IP, training, and more...
>

I downloaded source code for FreeRTOS from Microbuilder.com for CrossWork and when I compile, It give this error :

F:/Users/El Mehdi/SkyDrive/PFA/Documentation/LPC2148/FreeRTOS/Microbuilder.com/uip/uip/uip-fw.c:192: multiple definition of `taskHandles'

what should I do ??

>
> I downloaded source code for FreeRTOS from Microbuilder.com for
> CrossWork and when I compile, It give this error :
>
> F:/Users/El
> Mehdi/SkyDrive/PFA/Documentation/LPC2148/FreeRTOS/Microbuilder.com/uip/uip/uip-fw.c:192:
> multiple definition of `taskHandles'
>
> what should I do ??

Ask the people that provided you with the code?

[I've never heard of microbuilder.com and can't support other peoples
projects]
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 103000 downloads in 2012.

+ http://www.FreeRTOS.org/plus
Trace, safety certification, UDP/IP, TCP/IP, training, and more...

--- In l..., FreeRTOS Info wrote:
>
> >
> > I downloaded source code for FreeRTOS from Microbuilder.com for
> > CrossWork and when I compile, It give this error :
> >
> > F:/Users/El
> > Mehdi/SkyDrive/PFA/Documentation/LPC2148/FreeRTOS/Microbuilder.com/uip/uip/uip-fw.c:192:
> > multiple definition of `taskHandles'
> >
> > what should I do ??
>
> Ask the people that provided you with the code?
>
> [I've never heard of microbuilder.com and can't support other peoples
> projects]
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for microcontrollers. More than 103000 downloads in 2012.
>
> + http://www.FreeRTOS.org/plus
> Trace, safety certification, UDP/IP, TCP/IP, training, and more...
>
Oooooooooookey ! thank you

--- In l..., "el_mehdi_fakir" wrote:
>
> Hello, I'm new to this group, I hope I will be useful also in this community me too, but now I need your help, I have a project on a map LPC2148 Education Board and I have put in FreeRTOS, j 'I found a source here in the file section but I did not fully comprehend how it works? and I want to create my own tasks and add them to FreeRTOS but I have not found how I work with a students licensed CrossStudio.
> I hope you give me a solution about this and thank you.
>

There is some excellent LPC2148 code at www.jcwren.com/arm

It has a complete FreeRTOS setup and exercises almost all of the peripherals. There are two makefiles, one for WinARM which is probably the least desireable toolchain at the moment and the other for Yagarto (GCC and friends). It would be better to use a toolchain that matches the code than try to adapt the code to some other toolchain. At least in the beginning...

If you are using Linux, GNUArm should work but that usually has to be built from source and I don't know how current the project files are.

You MIGHT be able to bring all the files into CrossWorks and build them. I haven't tried that. The problem is that the makefile includes or excludes entire blocks of code and you would have to come up with some other scheme with CrossWorks. Not including the files in the build would probably work.

Richard