On Sat, Mar 21, 2020 at 11:34:41PM +0100, Bernd Walter wrote: > On Sat, Mar 21, 2020 at 09:54:15PM +0100, Bernd Walter wrote: > > I have a SAM4S16C, which has 128kB RAM and an ILI9325 display. > > After some initial problems (the Panel I use is wired to 16-bit bus) > > and several hardware problems I got it fully initialized with a testpattern > > instead of the normal background color. > > The code is based on the SAM4E driver. > > > > ... > > board_lcd_initialize: Initializing > > LCD Initializing > > sam_lcd_initialize: LCD ID: 9325 > > sam_setpower: power: 48 > > sam_getvideoinfo: fmt: 11 xres: 320 yres: 240 nplanes: 1 > > sam_getplaneinfo: planeno: 0 bpp: 16 > > nxhello_initialize: nx_connect failed: 28 > > nxhello_main: NX handle=0 > > nxhello_main: Failed to get NX handle: 28 > > > > If this is errno then it would be ENOSPC. > > Do I need enough RAM for a shadow display memory or could it be > > something else? > > This is without framebuffer. > > I'm not running the latest code though because I need some local > > stability first. > > this is with full graphic debug on: > nxmu_start: Starting server task > board_lcd_initialize: Initializing > LCD Initializing > sam_lcd_initialize: LCD ID: 9325 > sam_setpower: power: 48 > sam_getvideoinfo: fmt: 11 xres: 320 yres: 240 nplanes: 1 > sam_getplaneinfo: planeno: 0 bpp: 16 > nxmu_setup: ERROR: mq_open(nxs) failed: 28 > nx_server: nx_run returned: -28 > nxhello_initialize: nx_connect failed: 28 > nxhello_main: NX handle=0 > nxhello_main: Failed to get NX handle: 28 > > I guess I should check my config about message queue setting. >
NX requires a max message size of >=64 and mine was set to 32. Now it does something. No Hello World on the screen though, but that might be a problem somewhere else. -- B.Walter <be...@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.