nsh> free
procfs_open: Open 'meminfo'
meminfo_open: Open 'meminfo'
procfs_read: buffer=0x100006d0 buflen=512
meminfo_read: buffer=0x100006d0 buflen=512
total used free largest
Umem: 192576 7696 184880 124848
procfs_read: buffer=0x100006d0 buflen=512
meminfo_read: buffer=0x100006d0 buflen=512
nsh>
priv->fbmem = 0
-----Oorspronkelijk bericht-----
Van: Gregory Nutt <[email protected]>
Verzonden: zaterdag 4 januari 2020 19:38
Aan: [email protected]
Onderwerp: Re: NX Graphics
Do you have enough memory to allocate the framebuffer? What is the value of
priv->fblen? What is the size of the allocated heap? Try "nsh> free"
On 1/4/2020 11:44 AM, [email protected] wrote:
> priv->fbmem = (FAR uint8_t *)kmm_zalloc(priv->fblen);
>
> if (priv->fbmem == NULL)
>
> {
>
> lcderr("ERROR: Failed to allocate frame buffer memory\n");
>
>
>
> I dont seem to get fbmem filled. tried all config options, but it
> stays empty. I do not have NX(WM) activated. The framebuffer should be
> made before this application stack right?
>
>
>
>
>
> Van: [email protected] <[email protected]>
> Verzonden: zaterdag 4 januari 2020 14:49
> Aan: '[email protected]' <[email protected]>
> Onderwerp: NX Graphics
>
>
>
> All,
>
>
>
> I am trying to get a ILI9341 working and a tip from Dave gave me the
> option to implement it as a generic SPI driver. Before I have tried to
> do this with LTDC and FMC like on the STM32F429i.
>
>
>
> But in both cases I get in pdccurses:
>
> * Unable to create SP: in pdc_initscr.c its not really clear to me
> what the cause could be..
>
>
>
> In both casus in NX I get:
>
> nsh> nxhello
>
>
> nxmu_start: Starting server task
>
>
> lcddrv_spiif_initialize: initialize lcddrv spi subdriver
>
>
> board_lcd_getdev: SPI port 2 bound to LCD 0
>
>
> spi_send: Sent: 0001 Return: 00ff Status: 02
>
>
> spi_send: Sent: 0001 Return: 00ff Status: 02
>
>
> stm32_spi2select: devid: 262144 CS: assert
>
>
> nxbe_configure: WARNING: NX configured for 1 planes, controller only
> needs 0
>
>
> nxmu_setup: ERROR: mq_open(nxs) failed: 28
>
>
> nx_server: nx_run returned: -28
>
>
> nx_connectinstance: ERROR: mq_open(nxc1) failed: 28
>
>
> nxhello_initialize: nx_connect failed: 28
>
>
> nxhello_main: NX handle=0
>
>
> nxhello_main: Failed to get NX handle: 28
>
>
>
> What am I doing wrong? My SPI signals seem to be correct.
>
>
>
>
>
>