IOB Configuration

2023-08-05 Thread Fotis Panagiotopoulos
Hello,

I am using IO buffers in my application.
As far as I can tell, they are only used by buffered TCP and syslog for my
configuration.

Checking in Kconfig, I see the following relevant configs:

* CONFIG_IOB_NBUFFERS
* CONFIG_IOB_BUFSIZE
* CONFIG_IOB_NCHAINS
* CONFIG_IOB_THROTTLE
* CONFIG_NET_TCP_NWRBCHAINS

The question is, how to tune these settings?
How do they affect the system performance?

Is there any specific test I can run, or any strategy to follow to
fine-tune them,
or check system stability?

Thank you,
Fotis


New application to Nuttx

2023-08-05 Thread Gustavo Soares
Hello everyone!

I'm implementing a new application to Nuttx as my final college project: a 
assembly interpreter webserver. I've finished the code and it is running 
normally on Linux, but when I try to run the app on NuttX the following error 
occours: dump_stack: ERROR: User Stack pointer is not within the stack.

[cid:02804ca4-8157-4452-90e4-4698450b0158]

[cid:6394cebd-f2bb-415e-9655-e93ff246eeeb]
The last line in the second print is my application status.

Does anyone know what could be causing this problem? Is it possible to increase 
the stack size?


Re: New application to Nuttx

2023-08-05 Thread Tiago Medicci Serrano
Hello Gustavo!

Good to know you are using NuttX to explore new applications!

This error is a simple stack overflow problem. Applications on NuttX
contain an associated stack with the application task that is usually set
by the Kconfig associated with the application.
Please check
https://github.com/apache/nuttx-apps/blob/master/games/shift/Makefile#L27
for an example.

Probably, the `M_THREE_PLUS` task is the one associated with your
application (and the stack coloration shows that its stack is not enough
for it). Try rising this value ;)

I hope you can find the right value for it with these tips!

Best regards and welcome to NuttX!

Em sáb., 5 de ago. de 2023 às 13:38, Gustavo Soares <
gustavo.felipesoa...@hotmail.com> escreveu:

> Hello everyone!
>
> I'm implementing a new application to Nuttx as my final college project: a
> assembly interpreter webserver. I've finished the code and it is running
> normally on Linux, but when I try to run the app on NuttX the following
> error occours: *dump_stack: ERROR: User Stack pointer is not within the
> stack.*
>
>
>
>
> The last line in the second print is my application status.
>
> Does anyone know what could be causing this problem? Is it possible to
> increase the stack size?
>


-- 
Tiago Medicci Serrano

Embedded Software Engineer
MSc Electronics/Microelectronics
m: +55 (19) 981403886 <+55+(19)+981403886>
e: tiago.medi...@gmail.com
a: Campinas, Brazil
Follow me:




Re: NuttX on FreeBSD survey

2023-08-05 Thread Bernd Walter
On Mon, Jul 31, 2023 at 09:52:16AM +0200, Milan Obuch wrote:
> Hi,
> 
> I'd like to know who else builds NuttX on FreeBSD - right now I know
> just one. Also, I'd like to know which hardware they use NuttX on.
> Could you please share? I'd like to create some FreeBSD port(s) to make
> user experience easier, so any comments on this are more than welcome
> as well.

I use FreeBSD to build NuttX.
My major target are several ARM platforms, SAMD21, SAM4, RP2040.
I also build for ESP32.
But I have a very static build jail.

> For me, NuttX is simple nice OS for small devices. I started to use it
> for Raspberry Pi Pico boards, recently did some small experiments with
> Espressif ESP32 based boards and maybe some more devices in preparation.
> 
> Regards,
> Milan

-- 
B.Walter  https://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.