> So the only thing you needed to change was that
small
> section of startup code, is that correct?
Yes, I used some other startup module from other examples
I have removed the PLL and MAM code out off the startup and placed it
in the C code initalisation module
I have added some code in the very start of the start.s to initialise
the 2294 external memory configuartion so that all my memory
variables can be mapped to external memory before the main code
starts. I ran out of memory (16K). Only the Stack pointers are now in
internal ram.
I have used your test4.c example and added loads of other tasks.
I am running two timers, 1ms timer0 for my I/O interface and 10ms
timer1 for the task switching. All interrupts are running using IRQ
including UART0 interrupts.
I had to move to V2.83 because the version from the book was unstable
for some reasons.
Would you like me to send you the relevant code modules etc
Regards
Jean-Jacques
--- In l..., David Hawkins wrote: >
> Hi Jean-Jacques,
>
> > I have now got it all working OK now with V2.83
> >
> > Thanks for your help
> >
> > Can we re-publish the port?
>
> Sure. But first I should rebuild the examples and update
> the documentation.
>
> I'll setup my laptop and take the keil board home tonight
> to retest.
>
> So the only thing you needed to change was that small
> section of startup code, is that correct?
>
> I'll take a look in the ARM reference manual and see what
> the slight difference was in the startup instructions you
> ended up using.
>
> Did you ever create a small example that exhibited the
> problem? It probably had to do with an empty section in
> the elf file, however, without a specific example, I can't
> be sure. If you don't have any example code that exhibits
> the problem, I'll see if I can break one of the example.
>
> Thanks,
> Dave
>
Reply by David Hawkins●October 29, 20072007-10-29
Hi Jean-Jacques,
> I have now got it all working OK now with V2.83
>
> Thanks for your help
>
> Can we re-publish the port?
Sure. But first I should rebuild the examples and update
the documentation.
I'll setup my laptop and take the keil board home tonight
to retest.
So the only thing you needed to change was that small
section of startup code, is that correct?
I'll take a look in the ARM reference manual and see what
the slight difference was in the startup instructions you
ended up using.
Did you ever create a small example that exhibited the
problem? It probably had to do with an empty section in
the elf file, however, without a specific example, I can't
be sure. If you don't have any example code that exhibits
the problem, I'll see if I can break one of the example.
Thanks,
Dave
Reply by Jean-Jacques Dauchot●October 28, 20072007-10-28
Hi Dave
I have now got it all working OK now with V2.83
Thanks for your help
Can we re-publish the port?
Regards
Jean-Jacques
_____
From: l... [mailto:l...] On Behalf Of
David Hawkins
Sent: 17 October 2007 23:36
To: l...
Subject: Re: [lpc2000] Re: Micrium UCOS-II
Hi Kenny,
> I've been using the linker script to "ensure"
(to the extent that it
> appears impossible, unfortunately, to use relative LENGTH directives
> in MEMORY sections) this:
Yeah, I'd wanted to find a way to use the linker script,
or some form of parameter that I could place in the Makefile
to generate the RAM size, and then stack location.
I'd been meaning to look at the WinAVR linker files to
see how they do it ... I seem to recall being able
to set a processor type and having things 'taken care of'.
But alas, LPCs and AVRs are playthings for me, and I've
had no time to play with them.
Maybe I'll get to play with your technique, or maybe we'll
get to see some of the other options people use to make their
linker/startup code independent of the processor memory size.
Cheers,
Dave
Reply by jdauchot●October 19, 20072007-10-19
Hi Dave
I have now got ten tasks running with this code without this init
code in the start.s
It would be interesting to find out why this is
I will be happy to send this code to you which is yours to to see
what is the problem
if I can get this code to work with yagarto tools chain that would be
great.
I have manage to to this with other projects
Regards
Jean-Jacques
--- In l..., David Hawkins wrote: > > /* LPC SRAM starts at 0x40000000, and there is 32Kb
= 8000h */
> > STACK_START: .word 0x40008000
>
> If your processor has less SRAM, then you'd better
> make sure your stack pointer is located appropriately.
>
> Here I've stuck it at the end of memory. You'd want
> to make sure you did the same.
>
> Cheers,
> Dave
>
Reply by jdauchot●October 19, 20072007-10-19
Hi Dave
Which other versions of UCOS-II you have used
Regards
Jean-Jacques
--- In l..., Kenneth Crudup wrote: > On Wed, 17 Oct 2007, David Hawkins wrote:
>
> > I'd been meaning to look at the WinAVR linker files to
> > see how they do it ... I seem to recall being able
> > to set a processor type and having things 'taken care of'.
>
> Probably pre-defined tables.
>
> -Kenny
>
> --
> Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Los Angeles > O: 3630 S. Sepulveda Blvd. #138, L.A., CA 90034-6809
(888) 454- 8181 >
Reply by David Hawkins●October 18, 20072007-10-18
> This is the startup code I modified to use now
Thanks, I'll look through it to find the differences.
> Now I can get on with the project feeding pigs.
>
> Thanks for your help
No problem.
I'll take some bacon, please.
:)
Reply by jdauchot●October 18, 20072007-10-18
Hi Dave
This is the startup code I modified to use now
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/* ucos_ex1_start.s */
.global main
.global _start
/* Symbols defined by the linker script */
.global _etext
.global _data
.global _edata
.global _bss
.global _ebss
/* ----------------------------
* 32-bit constants (and storage)
* ----------------------------
*
* These 32-bit constants are used in ldr statements.
*/
/* LPC SRAM starts at 0x40000000, and there is 16Kb = 4000h */
STACK_START: .word 0x40004000
/* ----------------------------
* 8-bit constants
* ----------------------------
*
* These 8-bit constants are used as immediate values and offsets.
*/
I do the PLL and MAM init in the init c code
some of the code in the start.s need to me removed
Now I can get on with the project feeding pigs.
Thanks for your help
Regards
Jean-Jacques
--- In l..., David Hawkins wrote: >
> Hi Jean-Jacques,
>
> > I have now got a startup code that works with initialisation code
>
> Could you please post what you needed to fix, thanks.
>
> Dave
>
Reply by David Hawkins●October 18, 20072007-10-18
Hi Jean-Jacques,
> I have now got a startup code that works with
initialisation code
Could you please post what you needed to fix, thanks.
Dave
Reply by jdauchot●October 18, 20072007-10-18
Hi Dave and rest of group
I have now got a startup code that works with initialisation code