Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
So far in May, you have voted 0 times ou of a total of 22 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.
Is this thread worth a thumbs up?
uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Aug 27 10:17:34 2012
Dear Sir,
Please give me step by step guidelines for porting uCOS-II for NXP LPC2148
using Keil uVision4 IDE which helps me more. Please give small code as example
as early as possible.
Thanking you,
With regards,
Sangmeshwar
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - Phil Young - Aug 27 10:36:39 2012
The point of a forum is for people to HELP others who are having difficulty
when they have at least spent some effort themselves first, not to do
somebody elses job form them.
Why not try reading the uCOS documentation first, attempt to do the port,
then come back if you having specific difficulties, with examples of the
code where you are having problems, or specific detailed questions where you
don't understand something.
From: l... [mailto:l...] On Behalf Of
sskendre_lect
Sent: 27 August 2012 14:40
To: l...
Subject: [lpc2000] uCOS-II for LPC2148 using Keil uVision4
Dear Sir,
Please give me step by step guidelines for porting uCOS-II for NXP LPC2148
using Keil uVision4 IDE which helps me more. Please give small code as
example as early as possible.
Thanking you,
With regards,
Sangmeshwar
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - FreeRTOS Info - Aug 27 10:44:16 2012
On 27/08/2012 15:36, Phil Young wrote:
>
>
> The point of a forum is for people to HELP others who are having difficulty
> when they have at least spent some effort themselves first, not to do
> somebody elses job form them.
>
> Why not try reading the uCOS documentation first, attempt to do the port,
> then come back if you having specific difficulties, with examples of the
> code where you are having problems, or specific detailed questions where
you
> don't understand something.
...or contact Micrium's support.
Regards,
Richard.
+
http://www.FreeRTOS.org
Designed for microcontrollers. More than 7000 downloads per month.
+
http://www.FreeRTOS.org/trace
15 interconnected trace views. An indispensable productivity tool.
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - David Hawkins - Aug 27 20:23:44 2012
> Dear Sir, Please give me step by step guidelines for
porting uCOS-II
> for NXP LPC2148 using Keil uVision4 IDE which helps me more. Please
> give small code as example as early as possible.
Here's the 'step-by-step' guidelines, however, they are for GCC
(and an LPC2138).
http://www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf
http://www.ovro.caltech.edu/~dwh/ucos/gcc_and_ucosii.zip
You should be able to figure out how to get it working for
the uVision tools (or just select the GCC compiler as the
backend for those tools).
Cheers,
Dave
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com ) Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Aug 30 13:46:22 2012
Thank you,
I am working on Keil+uCOs-II
with regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
> > Dear Sir, Please give me step by step guidelines
for porting uCOS-II
> > for NXP LPC2148 using Keil uVision4 IDE which helps me more. Please
> > give small code as example as early as possible.
>
> Here's the 'step-by-step' guidelines, however, they are for GCC
> (and an LPC2138).
>
> http://www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf
> http://www.ovro.caltech.edu/~dwh/ucos/gcc_and_ucosii.zip
>
> You should be able to figure out how to get it working for
> the uVision tools (or just select the GCC compiler as the
> backend for those tools).
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 7 12:54:41 2012
Dear Sir,
Thanking you for providing the link of your project. I have studied and
tried to compile by using GNUARM. I am able to compile and create the hex files
for examples(without uCOS). When i compile the examples of uCOS then i get the
following errors. Please help me to solve the error.
E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2 -mcpu=arm7tdmi -nostartfiles -T
lpc213
8_flash.ld start.s ex1.c bsp.c -o ex1test.elf
/cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function `irq_addr':
(.text+0x20): undefined reference to `OS_CPU_IRQ_ISR'
/cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function `fiq_addr':
(.text+0x24): undefined reference to `OS_CPU_FIQ_ISR'
/cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `TestTask2':
ex1.c:(.text+0x24): undefined reference to `OSTimeDlyHMSM'
/cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `TestTask1':
ex1.c:(.text+0x54): undefined reference to `OSTaskCreate'
ex1.c:(.text+0x74): undefined reference to `OSTimeDlyHMSM'
/cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `main':
ex1.c:(.text+0xc4): undefined reference to `OSInit'
ex1.c:(.text+0xd8): undefined reference to `OSTaskCreate'
ex1.c:(.text+0xdc): undefined reference to `OSStart'
/cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/cce4EsAU.o: In function
`OS_CPU_FIQ_ISR
_Handler':
bsp.c:(.text+0xa0): undefined reference to `OSTimeTick'
collect2: ld returned 1 exit status
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
> > Dear Sir, Please give me step by step guidelines
for porting uCOS-II
> > for NXP LPC2148 using Keil uVision4 IDE which helps me more. Please
> > give small code as example as early as possible.
>
> Here's the 'step-by-step' guidelines, however, they are for GCC
> (and an LPC2138).
>
> http://www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf
> http://www.ovro.caltech.edu/~dwh/ucos/gcc_and_ucosii.zip
>
> You should be able to figure out how to get it working for
> the uVision tools (or just select the GCC compiler as the
> backend for those tools).
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - David Hawkins - Sep 7 13:11:56 2012
Hi Sangmeshwar,
> Thanking you for providing the link of your project.
I have
> studied and tried to compile by using GNUARM. I am able to
> compile and create the hex files for examples(without uCOS).
Ok, that is a good start.
> When i compile the examples of uCOS then i get the
following errors.
> Please help me to solve the error.
>
> E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2 -mcpu=arm7tdmi -nostartfiles -T
lpc213
> 8_flash.ld start.s ex1.c bsp.c -o ex1test.elf
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`irq_addr':
> (.text+0x20): undefined reference to `OS_CPU_IRQ_ISR'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`fiq_addr':
> (.text+0x24): undefined reference to `OS_CPU_FIQ_ISR'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask2':
> ex1.c:(.text+0x24): undefined reference to `OSTimeDlyHMSM'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask1':
> ex1.c:(.text+0x54): undefined reference to `OSTaskCreate'
> ex1.c:(.text+0x74): undefined reference to `OSTimeDlyHMSM'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `main':
> ex1.c:(.text+0xc4): undefined reference to `OSInit'
> ex1.c:(.text+0xd8): undefined reference to `OSTaskCreate'
> ex1.c:(.text+0xdc): undefined reference to `OSStart'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/cce4EsAU.o: In function
`OS_CPU_FIQ_ISR
> _Handler':
> bsp.c:(.text+0xa0): undefined reference to `OSTimeTick'
> collect2: ld returned 1 exit status
Those functions are uCOS-II functions. I'm sure the document points
out that the uCOS source is not provided, since I'm not allowed to
distribute that. You need to download uCOS-II. Ideally you should
download the same version as I used to create the tutorial
(I think it was a version that shipped with one of the textbooks).
The tutorial provides enough information that you should be able
to get a newer version of uCOS-II working with the code.
Cheers,
Dave
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 7 13:23:14 2012
Dear Sir,
Thank you for quick reply. I have downloaded the uCOS-II 2.52 version and i
have kept in the ucos-ii folder and then i have compiled the code. After that i
am getting the above mentioned errors. Please guide me for solving the
errors.
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
>
> Hi Sangmeshwar,
>
> > Thanking you for providing the link of your project. I have
> > studied and tried to compile by using GNUARM. I am able to
> > compile and create the hex files for examples(without uCOS).
>
> Ok, that is a good start.
>
> > When i compile the examples of uCOS then i get the following errors.
> > Please help me to solve the error.
> >
> > E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2 -mcpu=arm7tdmi -nostartfiles -T
lpc213
> > 8_flash.ld start.s ex1.c bsp.c -o ex1test.elf
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`irq_addr':
> > (.text+0x20): undefined reference to `OS_CPU_IRQ_ISR'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`fiq_addr':
> > (.text+0x24): undefined reference to `OS_CPU_FIQ_ISR'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask2':
> > ex1.c:(.text+0x24): undefined reference to `OSTimeDlyHMSM'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask1':
> > ex1.c:(.text+0x54): undefined reference to `OSTaskCreate'
> > ex1.c:(.text+0x74): undefined reference to `OSTimeDlyHMSM'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `main':
> > ex1.c:(.text+0xc4): undefined reference to `OSInit'
> > ex1.c:(.text+0xd8): undefined reference to `OSTaskCreate'
> > ex1.c:(.text+0xdc): undefined reference to `OSStart'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/cce4EsAU.o: In function
`OS_CPU_FIQ_ISR
> > _Handler':
> > bsp.c:(.text+0xa0): undefined reference to `OSTimeTick'
> > collect2: ld returned 1 exit status
>
> Those functions are uCOS-II functions. I'm sure the document points
> out that the uCOS source is not provided, since I'm not allowed to
> distribute that. You need to download uCOS-II. Ideally you should
> download the same version as I used to create the tutorial
> (I think it was a version that shipped with one of the textbooks).
>
> The tutorial provides enough information that you should be able
> to get a newer version of uCOS-II working with the code.
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - David Hawkins - Sep 7 13:41:26 2012
> Dear Sir, Thank you for quick reply. I have
downloaded the uCOS-II
> 2.52 version and i have kept in the ucos-ii folder and then i have
> compiled the code. After that i am getting the above mentioned
> errors. Please guide me for solving the errors.
Ok.
>>> E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2
-mcpu=arm7tdmi
>>> -nostartfiles -T lpc2138_flash.ld start.s ex1.c bsp.c -o
>>> ex1test.elf ...
There is a Makefile in ucos\ex1\.
Are you using the Makefile?
Did you look at the Makefile variables and check that your copy
of ucos-ii is in the right location, eg.,
UCOS = ../ucos-ii-v2.52
in the folder ucos\ucos-ii-v2.52?
You should be able to cd into ex1 and just type make.
Cheers,
Dave
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com ) Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 7 14:11:02 2012
Dear Sir,
Thank you. I have compiled the code successfully as per your guide lines.
Once again thank you for your quick response.
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
>
> > Dear Sir, Thank you for quick reply. I have downloaded the uCOS-II
> > 2.52 version and i have kept in the ucos-ii folder and then i have
> > compiled the code. After that i am getting the above mentioned
> > errors. Please guide me for solving the errors.
>
> Ok.
>
> >>> E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2 -mcpu=arm7tdmi
> >>> -nostartfiles -T lpc2138_flash.ld start.s ex1.c bsp.c -o
> >>> ex1test.elf ...
>
> There is a Makefile in ucos\ex1\.
>
> Are you using the Makefile?
>
> Did you look at the Makefile variables and check that your copy
> of ucos-ii is in the right location, eg.,
>
> UCOS = ../ucos-ii-v2.52
>
> in the folder ucos\ucos-ii-v2.52?
>
> You should be able to cd into ex1 and just type make.
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - David Hawkins - Sep 7 14:13:20 2012
Hi Sangmeshwar,
> Dear Sir, Thank you. I have compiled the code
successfully as per
> your guide lines. Once again thank you for your quick response.
Glad to hear it.
Keep in mind that the code was written for an LPC2138, not
an LPC2148, so you may need to adjust the linker file
accordingly.
Cheers,
Dave
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 8 4:22:25 2012
Dear Sir,
As i have compiled your code and tested the output by using Proteus
simulator, i did not get the output. But when i give your folder's ex1.hex file
then as per your ex1 logic LEDs are blinking.
Please help me to solve the problem. I have given the compilation output
as:
E:\ARM\RTOS\TestUcos\ex1>make
arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
-I../ucos-ii-v2.52
-c ../arm-gcc-nested/os_cpu_a.s
arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
-I../ucos-ii-v2.52
-c ../arm-gcc-nested/os_cpu_c.c
arm-elf-ld -r os_cpu_a.o os_cpu_c.o -o port.o
arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
-I../ucos-ii-v2.52
-c ../ucos-ii-v2.52/ucos_ii.c
../ucos-ii-v2.52/os_core.c:68: warning: 'OS_InitTaskStat' declared 'static'
but
never defined
arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
-I../ucos-ii-v2.52
-c bsp.c
arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
-I../ucos-ii-v2.52
-Tlpc2138_flash.ld -nostartfiles \
start.s ex1.c port.o ucos_ii.o bsp.o -o ex1.elf
arm-elf-objcopy -O ihex ex1.elf ex1.hex
E:\ARM\RTOS\TestUcos\ex1>
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
>
> Hi Sangmeshwar,
>
> > Dear Sir, Thank you. I have compiled the code successfully as per
> > your guide lines. Once again thank you for your quick response.
>
> Glad to hear it.
>
> Keep in mind that the code was written for an LPC2138, not
> an LPC2148, so you may need to adjust the linker file
> accordingly.
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - David Hawkins - Sep 10 12:39:36 2012
Hi Sangmeshwar,
> As i have compiled your code and tested the output by
using Proteus
> simulator, i did not get the output. But when i give your folder's
> ex1.hex file then as per your ex1 logic LEDs are blinking. Please
> help me to solve the problem. I have given the compilation output
> as:
>
> E:\ARM\RTOS\TestUcos\ex1>make arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi
> -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52 -c
> ../arm-gcc-nested/os_cpu_a.s arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi
> -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52 -c
> ../arm-gcc-nested/os_cpu_c.c arm-elf-ld -r os_cpu_a.o os_cpu_c.o -o
> port.o arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
> -I../ucos-ii-v2.52 -c ../ucos-ii-v2.52/ucos_ii.c
> ../ucos-ii-v2.52/os_core.c:68: warning: 'OS_InitTaskStat' declared
> 'static' but never defined arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./
> -I../arm-gcc-nested -I../ucos-ii-v2.52 -c bsp.c arm-elf-gcc -Wall -O2
> -mcpu=arm7tdmi -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52
> -Tlpc2138_flash.ld -nostartfiles \ start.s ex1.c port.o ucos_ii.o
> bsp.o -o ex1.elf arm-elf-objcopy -O ihex ex1.elf ex1.hex
Sorry, I'm not familiar with the Proteus simulator. I assume its
some form of ARM simulator. Have you configured it to emulate an
LPC2138?
I cannot aid in debugging this code. However, I can provide suggestions.
1) Read the warning messages from the compiler:
warning: 'OS_InitTaskStat' declared 'static' but never defined
Resolve this issue.
2) Use the debug features of the simulator to see how far the code gets.
Then try to determine what is not working.
I wrote this port of uCOS-II for fun; I had the board and wanted to
look at an ARM core processor. I have subsequently given the board
away, and don't have access to it anymore.
You'll have to debug this problem yourself. However, given the fact
that you have a simulator, this should be fairly easy.
Cheers,
Dave
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 15 23:41:07 2012
Dear Sir,
Thank you. VSM Proteus is Simulation software. Finally i have suceed in
using uCOS-II in Keil uVision4 for ARM7. I have simulated Semaphore, mailbox etc
examples with Keil MDK simulation as well as executed on ARM LPC2148 kit
sucessfully.
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
>
> Hi Sangmeshwar,
>
> > As i have compiled your code and tested the output by using Proteus
> > simulator, i did not get the output. But when i give your folder's
> > ex1.hex file then as per your ex1 logic LEDs are blinking. Please
> > help me to solve the problem. I have given the compilation output
> > as:
> >
> > E:\ARM\RTOS\TestUcos\ex1>make arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi
> > -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52 -c
> > ../arm-gcc-nested/os_cpu_a.s arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi
> > -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52 -c
> > ../arm-gcc-nested/os_cpu_c.c arm-elf-ld -r os_cpu_a.o os_cpu_c.o -o
> > port.o arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
> > -I../ucos-ii-v2.52 -c ../ucos-ii-v2.52/ucos_ii.c
> > ../ucos-ii-v2.52/os_core.c:68: warning: 'OS_InitTaskStat' declared
> > 'static' but never defined arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./
> > -I../arm-gcc-nested -I../ucos-ii-v2.52 -c bsp.c arm-elf-gcc -Wall -O2
> > -mcpu=arm7tdmi -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52
> > -Tlpc2138_flash.ld -nostartfiles \ start.s ex1.c port.o ucos_ii.o
> > bsp.o -o ex1.elf arm-elf-objcopy -O ihex ex1.elf ex1.hex
>
> Sorry, I'm not familiar with the Proteus simulator. I assume its
> some form of ARM simulator. Have you configured it to emulate an
> LPC2138?
>
> I cannot aid in debugging this code. However, I can provide suggestions.
>
> 1) Read the warning messages from the compiler:
>
> warning: 'OS_InitTaskStat' declared 'static' but never defined
>
> Resolve this issue.
>
> 2) Use the debug features of the simulator to see how far the code gets.
> Then try to determine what is not working.
>
> I wrote this port of uCOS-II for fun; I had the board and wanted to
> look at an ARM core processor. I have subsequently given the board
> away, and don't have access to it anymore.
>
> You'll have to debug this problem yourself. However, given the fact
> that you have a simulator, this should be fairly easy.
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - David Hawkins - Sep 15 23:51:19 2012
Hi Sangmeshwar,
> Finally i have suceed in using uCOS-II in Keil
uVision4 for ARM7. I
> have simulated Semaphore, mailbox etc examples with Keil MDK
> simulation as well as executed on ARM LPC2148 kit sucessfully.
That's excellent!
Did you have to modify the code in the port I provided (other than
the linker scripts)? Was there any bugs I should fix?
Were you planning on documenting your software development?
If you are, please send me a copy of the report, or add it
to the files area of this group.
Cheers,
Dave
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 16 0:07:03 2012
Dear Sir,
Very soon i will provide documentation. For Keil uCOS-II i have gone through
your code as well as i have searched on internet. I have used Micrium port for
LPC2148 as basic port.
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
>
> Hi Sangmeshwar,
>
> > Finally i have suceed in using uCOS-II in Keil uVision4 for ARM7. I
> > have simulated Semaphore, mailbox etc examples with Keil MDK
> > simulation as well as executed on ARM LPC2148 kit sucessfully.
>
> That's excellent!
>
> Did you have to modify the code in the port I provided (other than
> the linker scripts)? Was there any bugs I should fix?
>
> Were you planning on documenting your software development?
> If you are, please send me a copy of the report, or add it
> to the files area of this group.
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - mohsin - Sep 17 4:12:52 2012
Hi,
i was also trying for porting ucos-ii on lpc2148 using keil but i didnt
succeeded that time.
can you plz provide me with some guidelines & code for the same.
i'll be very thankful to you.
regards,
Mohsin Madki.
Pune.
--- In l..., "sskendre_lect" wrote:
>
> Dear Sir,
> Thanking you for providing the link of your project. I have studied and
tried to compile by using GNUARM. I am able to compile and create the hex files
for examples(without uCOS). When i compile the examples of uCOS then i get the
following errors. Please help me to solve the error.
>
> E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2 -mcpu=arm7tdmi -nostartfiles -T
lpc213
> 8_flash.ld start.s ex1.c bsp.c -o ex1test.elf
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`irq_addr':
> (.text+0x20): undefined reference to `OS_CPU_IRQ_ISR'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`fiq_addr':
> (.text+0x24): undefined reference to `OS_CPU_FIQ_ISR'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask2':
> ex1.c:(.text+0x24): undefined reference to `OSTimeDlyHMSM'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask1':
> ex1.c:(.text+0x54): undefined reference to `OSTaskCreate'
> ex1.c:(.text+0x74): undefined reference to `OSTimeDlyHMSM'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `main':
> ex1.c:(.text+0xc4): undefined reference to `OSInit'
> ex1.c:(.text+0xd8): undefined reference to `OSTaskCreate'
> ex1.c:(.text+0xdc): undefined reference to `OSStart'
> /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/cce4EsAU.o: In function
`OS_CPU_FIQ_ISR
> _Handler':
> bsp.c:(.text+0xa0): undefined reference to `OSTimeTick'
> collect2: ld returned 1 exit status
>
> Thanking you,
>
> With regards,
> Sangmeshwar
>
> --- In l..., David Hawkins wrote:
> >
> >
> > > Dear Sir, Please give me step by step guidelines for porting uCOS-II
> > > for NXP LPC2148 using Keil uVision4 IDE which helps me more. Please
> > > give small code as example as early as possible.
> >
> > Here's the 'step-by-step' guidelines, however, they are for GCC
> > (and an LPC2138).
> >
> > http://www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf
> > http://www.ovro.caltech.edu/~dwh/ucos/gcc_and_ucosii.zip
> >
> > You should be able to figure out how to get it working for
> > the uVision tools (or just select the GCC compiler as the
> > backend for those tools).
> >
> > Cheers,
> > Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - "Kartheek G.r" - Sep 17 8:12:04 2012
Dear sir ,
I am new to rtos,i know theoretical knowledge but i dont have practica=
l knowledge ,i am having ngx tech lpc2148 blue board and i had basic knowle=
dge about lpc2148
now i just started to do rtos (ucosII) programs ,will you please guide me a=
nd suggest me any quick start guides or manuals ...
Thank you
________________________________
From: sskendre_lect
To: l...
Sent: Sunday, 16 September 2012 9:11 AM
Subject: [lpc2000] Re: uCOS-II for LPC2148 using Keil uVision4
Dear Sir,
Thank you. VSM Proteus is Simulation software. Finally i have suceed in usi=
ng uCOS-II in Keil uVision4 for ARM7. I have simulated Semaphore, mailbox e=
tc examples with Keil MDK simulation as well as executed on ARM LPC2148 kit=
sucessfully.
Thanking you,
With regards,
Sangmeshwar
--- In l..., David Hawkins wrote:
>
> Hi Sangmeshwar,
>
> > As i have compiled your code and tested the output by using Proteus
> > simulator, i did not get the output. But when i give your folder's
> > ex1.hex file then as per your ex1 logic LEDs are blinking. Please
> > help me to solve the problem. I have given the compilation output
> > as:
> >
> > E:\ARM\RTOS\TestUcos\ex1>make arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi
> > -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52 -c
> > ../arm-gcc-nested/os_cpu_a.s arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi
> > -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52 -c
> > ../arm-gcc-nested/os_cpu_c.c arm-elf-ld -r os_cpu_a.o os_cpu_c.o -o
> > port.o arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./ -I../arm-gcc-nested
> > -I../ucos-ii-v2.52 -c ../ucos-ii-v2.52/ucos_ii.c
> > ../ucos-ii-v2.52/os_core.c:68: warning: 'OS_InitTaskStat' declared
> > 'static' but never defined arm-elf-gcc -Wall -O2 -mcpu=arm7tdmi -I./
> > -I../arm-gcc-nested -I../ucos-ii-v2.52 -c bsp.c arm-elf-gcc -Wall -O2
> > -mcpu=arm7tdmi -I./ -I../arm-gcc-nested -I../ucos-ii-v2.52
> > -Tlpc2138_flash.ld -nostartfiles \ start.s ex1.c port.o ucos_ii.o
> > bsp.o -o ex1.elf arm-elf-objcopy -O ihex ex1.elf ex1.hex
>
> Sorry, I'm not familiar with the Proteus simulator. I assume its
> some form of ARM simulator. Have you configured it to emulate an
> LPC2138?
>
> I cannot aid in debugging this code. However, I can provide suggestions.
>
> 1) Read the warning messages from the compiler:
>
> warning: 'OS_InitTaskStat' declared 'static' but never defined
>
> Resolve this issue.
>
> 2) Use the debug features of the simulator to see how far the code gets.
> Then try to determine what is not working.
>
> I wrote this port of uCOS-II for fun; I had the board and wanted to
> look at an ARM core processor. I have subsequently given the board
> away, and don't have access to it anymore.
>
> You'll have to debug this problem yourself. However, given the fact
> that you have a simulator, this should be fairly easy.
>
> Cheers,
> Dave
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: uCOS-II for LPC2148 using Keil uVision4 - sskendre_lect - Sep 29 11:34:34 2012
Hi,
As i had told in previous post, i am preparing the documentation. I will soon
post.
With regards,
Sangmeshwar
--- In l..., "mohsin" wrote:
>
> Hi,
>
> i was also trying for porting ucos-ii on lpc2148 using keil but i didnt
succeeded that time.
>
> can you plz provide me with some guidelines & code for the same.
>
> i'll be very thankful to you.
>
> regards,
> Mohsin Madki.
> Pune.
>
> --- In l..., "sskendre_lect" wrote:
> >
> > Dear Sir,
> > Thanking you for providing the link of your project. I have studied and
tried to compile by using GNUARM. I am able to compile and create the hex files
for examples(without uCOS). When i compile the examples of uCOS then i get the
following errors. Please help me to solve the error.
> >
> > E:\ARM\RTOS\ucos\ucos\ex1>arm-elf-gcc -O2 -mcpu=arm7tdmi -nostartfiles -T
lpc213
> > 8_flash.ld start.s ex1.c bsp.c -o ex1test.elf
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`irq_addr':
> > (.text+0x20): undefined reference to `OS_CPU_IRQ_ISR'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccN4iuAJ.o: In function
`fiq_addr':
> > (.text+0x24): undefined reference to `OS_CPU_FIQ_ISR'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask2':
> > ex1.c:(.text+0x24): undefined reference to `OSTimeDlyHMSM'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function
`TestTask1':
> > ex1.c:(.text+0x54): undefined reference to `OSTaskCreate'
> > ex1.c:(.text+0x74): undefined reference to `OSTimeDlyHMSM'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/ccjCVpv6.o: In function `main':
> > ex1.c:(.text+0xc4): undefined reference to `OSInit'
> > ex1.c:(.text+0xd8): undefined reference to `OSTaskCreate'
> > ex1.c:(.text+0xdc): undefined reference to `OSStart'
> > /cygdrive/c/DOCUME~1/Shree/LOCALS~1/Temp/cce4EsAU.o: In function
`OS_CPU_FIQ_ISR
> > _Handler':
> > bsp.c:(.text+0xa0): undefined reference to `OSTimeTick'
> > collect2: ld returned 1 exit status
> >
> > Thanking you,
> >
> > With regards,
> > Sangmeshwar
> >
> > --- In l..., David Hawkins wrote:
> > >
> > >
> > > > Dear Sir, Please give me step by step guidelines for porting uCOS-II
> > > > for NXP LPC2148 using Keil uVision4 IDE which helps me more. Please
> > > > give small code as example as early as possible.
> > >
> > > Here's the 'step-by-step' guidelines, however, they are for GCC
> > > (and an LPC2138).
> > >
> > > http://www.ovro.caltech.edu/~dwh/ucos/project_AR1803.pdf
> > > http://www.ovro.caltech.edu/~dwh/ucos/gcc_and_ucosii.zip
> > >
> > > You should be able to figure out how to get it working for
> > > the uVision tools (or just select the GCC compiler as the
> > > backend for those tools).
> > >
> > > Cheers,
> > > Dave
> > >
>
(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )