On Fri, Sep 18, 2020 at 3:17 PM Flavio Castro Alves Filho <flavio.al...@gmail.com> wrote: > I am studying NuttX for a new project. I am using Nucleo-F429ZI as > reference, which is quite a complete board and has a large memory for > testing. > > I followed some instructions from the internet (mostly from NuttX > website) and I could compile and run a binary on the board. Including > executing a Hello Application located at the menuconfig. > > My question is if there is an initial configuration file (defconfig) > for this board that initializes the base features of the board. > Something similar to an initial configuration on the STM32CubeIDE new > project, where all the base peripherals (leds, buttons, ethernet, usb, > serial, ...) are previously initialized. > > In my first test here, serial was not enabled, compilation failed and > ls command in Nuttshell didn't work (only the call for the > application).
Hi Flavio, What version of NuttX are you working with, or are you working from git master? There is a configuration called nucleo-f429zi:nsh but I have not tried it (I don't have this board) so I don't know how well it works. I'm looking at git master. I don't know if this configuration exists in any released version. It looks like this was added in April. It appears this board is missing a README file, which is annoying. :-/ I'm a bit confused because you said serial was not enabled, but you mentioned 'ls' was not working in NuttShell. If serial is not working, how are you accessing NuttShell? You might want to check your board's board.h file, to see if there's an incorrect mapping, e.g., maybe you're trying to use the wrong alternate pins for the serial, so it's happily sending bits out the wrong pin of the STM32. Alternatively perhaps the serial settings are not correct. I recently had a problem with a different board where serial wasn't working because I was starting NuttX from a serial bootloader that leaves the USART enabled, so NuttX could not initialize it properly. That was a bug and is fixed for stm32 family very recently (a couple of weeks ago), but that is in git master. It will be in the next release of NuttX. If serial is working now and you have a working NuttShell: When you type 'help' at the NuttShell nsh> prompt, is 'ls' listed among the known commands? There are settings in Kconfig that allow you to exclude commands from the build, such as Application Configuration -> NSH Library -> Disable Individual Commands. In addition, instead of saying ls command didn't work, can you show us the output of what happened? Was there an error message and if so, what did it say? It is possible there is no filesystem configured? There are Kconfig options for things like that, too. Let us know, and try to include as much information as possible. If possible, consider showing your config file or any other relevant information. If you find mistakes in the documentation, bugs in the software, etc., please feel free to create a PR or report the issues here... Hope this helps, Nathan