[Skyeye-developer] [ Repository Update] LPC is supported now.
Joel Sherrill
joel.sherrill at oarcorp.com
Tue Aug 28 21:17:27 CST 2007
Ray... I cc'ed you since this is close and you wrote this BSP.
The RTEMS BSP looks close to working but the it is looping
infinitely waiting for the PLLSTAT to change during
initialization:
167 while((PLLSTAT & (1 << 10)) == 0);
Cutting and pasting the code executed from within gdb:
PINSEL2 =0x0f814914;
BCFG0 = 0x1000ffef;
BCFG1 = 0x1000ffef;
MEMMAP = 0x2; //debug and excute outside chip
PLLCON = 1;
#if (Fpclk / (Fcclk / 4)) == 1
VPBDIV = 0;
#endif
#if (Fcco / Fcclk) == 4
PLLCFG = ((Fcclk / Fosc) - 1) | (1 << 5);
#endif
PLLFEED = 0xaa;
PLLFEED = 0x55;
while((PLLSTAT & (1 << 10)) == 0);
According the the README in the BSP, this worked with a board
that is compatible with an Olimex board.
" The board used to develop the BSP is compatible with
LPC-E2214/LPC-E2294 boards from http://www.olimex.com. The board has
a 512K SRAM (256K used to store the .text for debugging purposes)
and two serial ports."
--joel
Michael.Kang wrote:
> On 8/27/07, Joel Sherrill <joel.sherrill at oarcorp.com> wrote:
>
>> Michael.Kang wrote:
>>
>>> Hi:
>>> After add remap features in SkyEye for LPC simulation , now
>>> lpc porting of uClinux-dist-20040408 can run on both SkyEye and real
>>> hardware.
>>> The instructions about how to run LPC on SkyEye , please visit :
>>> http://skyeye.wiki.sourceforge.net/uClinux
>>>
>>>
>> This is good news. :)
>>
>> RTEMS has a BSP for an LPC2210 which isn't running for me yet
>> using this morning's SVN. Here is my conf:
>>
>> cpu: arm7tdmi
>> mach: lpc2210
>> mem_bank: map=M, type=RW, addr=0x81000000, size=0x00080000
>> mem_bank: map=M, type=RW, addr=0x40000000, size=0x0004000
>> log: logon=1, logfile=/tmp/sk1.log, start=2000000, end=3000000
>>
>>
>> The RTEMS hello world executable for this BSP gets this output
>> from Skyeye:
>>
>> $ ./binary/skyeye -c ~/skyeye/rtl22xx.conf -e /tmp/hello.exe
>> big_endian is false.
>> arch: arm
>> cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
>> mach info: name lpc2210, mach_init addr 0x8062fa0
>> log_info: log is on.
>> log_info:log file is /tmp/sk1.log, fd is 0x8626238
>> log_info: log start clock 2000000
>> log_info: log end clock 3000000
>> uart_mod:0, desc_in:, desc_out:, converter:
>> SKYEYE: use arm7100 mmu ops
>> start addr is set to 0x81000000 by exec file.
>> SKYEYE:NumInstrs 2330, mem_write_byte addr = e01fc040 no bank
>>
>> I looked at out linker script and apparently there is a bank of registers
>> at that address range. Did I miss something in the conf file? Or are
>> we using some hardware that is not simulated yet.
>>
> I guess an IO bank is needed to be defined according to the memory
> map in hardware manual. You can add a folloing line to config file:
> mem_bank: map=I, type=RW, addr=0xe0000000, size=0x20000000
>
>> I can email an executable directly if someone wants it. This
>> is RTEMS from our CVS head.
>>
>> Thanks.
>>
>> --joel
>>
>>> -- Thanks
>>> -- Michael.Kang
>>>
>>>
>>>
>>>
>> _______________________________________________
>> Skyeye-developer mailing list
>> Skyeye-developer at lists.gro.clinux.org
>> http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
>>
>>
>
>
>
More information about the Skyeye-developer
mailing list