The screen is Portrait view actually. I have enabled the screen in LoLo with the following registry values:
Quote:
dev_config->screen[0]: test x: 480 y: 640
LCCR0: 0x063018f8
LCCR1: 0x4e5605df
LCCR2: 0x0206067f
LCCR3: 0x0470ef01
LCCR4: 0x00000000
LCCR5: 0x00000000
Frame Buffer: 0xa0100000
This works within LoLo. In order to get the display to work in WinCE, I amended the registry file located at: ...\WINCE500\PLATFORM\LoCE\bin\lpd_drivers\lpd_pxa27x_lcdc_gpe_pxa270_50_0_3_2\
Here I changed the default display to Mode0 and the clear screen color to black (00):
Quote:
[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
"Display"="lpd_pxa27x_lcdc_gpe_pxa270_50_0_3_2.dll"
[HKEY_LOCAL_MACHINE\Drivers\Display\PXA27X_LCDC_GPE]
"DisplayNumber"=dword:0
"SkipLCDCInit"=dword:0
"ClearScreenColor"=dword:00
"EnableCursor"=dword:1
"FbPhyAddr"=dword:A0100000
"FbSize"=dword:EA600 ; Room enough for 800x600 at 16 Bpp.
I then added Mode0 at the end of the file:
Quote:
; Mode0: Custom Panel Settings (copy and modify from above)
; (Sharp LCD-3.7-VGA Display, LS037V7DW01)
[HKEY_LOCAL_MACHINE\Drivers\Display\PXA27X_LCDC_GPE\0]
"Width"=dword:1E0 ;480 Horizontal
"Height"=dword:280 ;640 Vertical
"nom_freq"=dword: 60 ;not used - place holder
"EGPEFormat"=dword: 4 ;16bpp format
"Bpp"=dword:10 ;16bpp
"lccr0"=dword: 063018F8
"lccr1"=dword: 4E5605DF
"lccr2"=dword: 0206067F
"lccr3"=dword: 0470EF01
"lccr4"=dword: 00000000
"lccr5"=dword: 3F3F3F3F
; "EGPEFormat"=dword: 3 ;8bpp
; "Bpp"=dword: 8 ;8bpp
; "lccr3"=dword: 03000007 ;8bpp
The LCCR values match those I used in LoLo except for LCCR5 which appears as "00000000" in LoLo. The "3F3F3F3F" value is used for LCCR5 in all modes in the reg file and I figured I should leave it as such (plus I've tried changing it to 0's which yields the same results).
The image compiles successfully with no errors and 6 warnings. After loading the image to the board and executing, I get the following error which repeats forever until I reset the board:
Quote:
Exception 'Prefetch Abort' Thread=83fff024 AKY=00000001 PC=00000000 BVA=00000000
R0=00000000 R1=00000000 R2=00000000 R3=00000000
R4=00000000 R5=00000000 R6=00000000 R7=00000000
R8=00000000 R9=00000000 R10=00000000 R11=00000000
R12=00000000 SP=00000000 Lr=00000000 Psr=8000001f
Prefetch Abort: Thread=83fff024 Proc=8124b1e0 'NK.EXE'
AKY=00000001 PC=00000000(???+0x00000000) RA=80207a08(NK.EXE+0x00007a08) BVA=0000
0000 FSR=00000400
I've tried several different bootscripts (one with skiplcdcinit:1, one without it, one with disp_num:0:, and one with no display commands) and they all yield the same error.
I am still new to developing for WindowsCE and appreciate the help. Thanks.