Hello everyone,

Currently working on an application for a network controlled switch box. So far 
everything has gone great and we've
finally completed our application that is capable of sending switch commands 
over the network using NuttX on the
W5500-EVB Pico.

I have one last hurdle left for this project, and that is automatically booting 
into our application instead of
`nsh_main`. I have done this before for other less involved applications and 
typically only needed to do some `boardctl`
calls to start up the USB shell. This time, however, I need to start up 
networking at boot time without relying on NSH's
initialization.

I read through the docs and found that this is done in `nsh_netinit()` (since 
renamed `netinit_bringup` I believe).
After reading through some of the code I see it performs some important tasks 
like setting the MAC address (W5500 has
software MAC only), etc. I am wondering if there is a suggested way for me to 
perform all these task without needing to
use NSH. I suppose I can include the `netutils.h` file into my application and 
call it myself? Is there anyway to
initialize the networking infrastructure within board code, like 
`board_appinit()`? I can't access the `netutils`
library from board code, and it appears that networking is one of the few 
initialization tasks without a `boardctl`
call.

Any help is appreciated! Thank you,

-- 
Matteo Golin

Attachment: signature.asc
Description: PGP signature

Reply via email to