If you press enter a few time in the serial terminal do you get the nsh> prompt? There might been some buffer issue. I use screen, but that should not be a problem.
If this does not work you will likely need to use a debugger like gdb to see if you are actually getting to the shell. You can use the openocd to start gdb (this openocd config works for both the h745 and h743 boards). The one you used is out dated which is why you got the error. openocd -f board/stm32h745i-disco.cfg You may want to refer to some of the documentation here to use gdb with this. Note that you will at a minimum want to enable debug symbols in your build. https://nuttx.apache.org/docs/latest/quickstart/debugging.html#debugging-with-openocd-and-gdb With gdb you will want to use the nuttx file instead of the nuttx.bin as it is the elf. I would recommend starting with nsh_main as the breakpoint, but you may need to dig earlier. --Brennan On Tue, Aug 10, 2021, 11:53 PM rushi ghatkar <rushighatka...@gmail.com> wrote: > Hi Brennan Sir, > > > Thank you for your help. > > So, am I missing something? Means why it is not working on my board ? > > I have followed these steps properly as per this Nuttx channel video, > Link: > > https://www.youtube.com/watch?v=heSkSd-_70g&list=PLd73yQk5Fd8JEsVD-lhwYRQKVu6glfDa8&index=1 > > And for another try I have followed this also from Apache Nuttx documents > for installation, compilation and configuration, > Link: https://nuttx.apache.org/docs/10.0.0/quickstart/index.html# > > And as per these two links I have followed, successfully created > *nuttx.bin* and *nuttx.hex* files in nuttx directory. > > Still neither minicom is working nor picocom. > > Please help me with this. > > > > Thanks & Regards, > Rushikesh Ghatkar > > > On Wed, Aug 11, 2021, 10:56 AM Brennan Ashton <bash...@brennanashton.com> > wrote: > > > Ok I verified this is still working correctly. > > > > Here is a short asciinema of how I flash it using the artifacts > > generated in CI (same as what you should get from a local build) using > > a recent build of openocd. > > In the description there is a short script people might find useful > > for fetching these artifacts as well. > > > > https://asciinema.org/a/429943 > > > > --Brennan > > > > On Tue, Aug 10, 2021 at 8:16 PM Brennan Ashton > > <bash...@brennanashton.com> wrote: > > > > > > This board is part of my 30 or so boards I test for releases. I suspect > > there is something else up although later tonight I could give it a go. > I > > usually test via the artifacts that are attached to the CI build job so > it > > is faster to check and also makes sure there is nothing special about my > > configuration. > > > > > > Some of this testing is automated for sim and for the basic ST boards > > where I do not have to set up a debugger. > > > > > > --Brennan > > > > > > On Tue, Aug 10, 2021, 7:38 PM Murat Tologlu <mtolo...@hotmail.com> > > wrote: > > >> > > >> Hi @acassis > > >> > > >> Who is/are responsible for Nucleo-h743zi2 board? > > >> > > >> I think, If this is an officially supported board, then there should > be > > at least 1 person having this board and testing all the published > > configurations for every release and take the speech at situations like > > this. > > >> > > >> Perhaps you may remember when I started dealing with Nuttx about a > year > > ago I had similar problems with running stm32f746g-disco:lvgl > configuration > > and I asked help here > > https://github.com/apache/incubator-nuttx/issues/1643 , I couldn't get a > > help but fortunately Jonathan Gonzaga gave a hint upon my question here > at > > LvGL forum > > https://forum.lvgl.io/t/lvgl-nuttx-touch-screen-performance/1498 , I > > changed my arm toolchain (arm-none-eabi-xxx) to a suitable release then > my > > firmware worked very well. I thanks to Jonathan very much because on this > > occasion I learned that changing the toolchain may be a solution sometime > > and I recently used the same trick in an esp32 project successfully. > > >> > > >> There may be a similar toolchain mismatch here so I think it would be > > proper if one of maintainers tests my nuttx.bin and his own compiled > > firmware with the present master branch on his Nucleo-H743zi2 board. > > >> > > >> BR, > > >> Murat > > >> > > >> -----Original Message----- > > >> From: Alan Carvalho de Assis <acas...@gmail.com> > > >> Sent: Tuesday, August 10, 2021 3:38 PM > > >> To: dev@nuttx.apache.org > > >> Subject: Re: Nuttx RTOS with Nucleo-H743ZI2 board > > >> > > >> Hi Rushikesh, > > >> > > >> I think you are doing the right steps, but just to confirm: > > >> > > >> $ make distclean > > >> > > >> $ ./tools/configure.sh nucleo-h743zi2:nsh > > >> > > >> $ make menuconfig (this step is optional, just confirm that Device > > >> Drivers ---> [*] Serial Driver Support ---> Serial console (USART3) > > is correctly defined) > > >> > > >> $ make > > >> > > >> (flash firmware nuttx.bin in your board: you can use openocd or other > > tool, no problem) > > >> > > >> Besides the "nsh>" another indication that NuttX is starting is a > solid > > LED turning ON, if it is crashing you should see an LED blinking. > > >> > > >> BR, > > >> > > >> Alan > > >> > > >> On 8/10/21, rushi ghatkar <rushighatka...@gmail.com> wrote: > > >> > Hi Sir, > > >> > > > >> > Thanks for your reply. > > >> > > > >> > I have a Nucleo-H743ZI2 board and followed a youtube video of Nuttx > > >> > channel to configure, compile and flash Nuttx rtos in Nucleo-H743ZI2 > > board. > > >> > Youtube Link : > > >> > > > https://www.youtube.com/watch?v=heSkSd-_70g&list=PLd73yQk5Fd8JEsVD-lhw > > >> > YRQKVu6glfDa8&index=1 > > >> > > > >> > I did exactly as it is and finally the nuttx.bin file has been > created > > >> > and I have flashed it by using STM32CubeProgrammer. > > >> > > > >> > For Nuttx configuration and compilation, I'm using Ubuntu 20.04. > > >> > Picocom or minicom is not working, so I'm working on it to get it > > work. > > >> > > > >> > But now I have doubts, > > >> > 1. How to create our own driver? I want to create my own driver > like > > >> > PWM, ADC and for other peripherals, for this where I should start to > > >> > create? and how?? > > >> > 2. To create our own driver, where do we have to create it like in > > >> > Ubuntu or is there any other IDE we can use in ubuntu? > > >> > 3. After flashing the nuttx.bin file into Nucleo-H743ZI2 board, is > it > > >> > possible to do programming in STM32CubeIDE while the nuttx.bin file > is > > >> > already on board? > > >> > > > >> > > > >> > Thanks & Regards, > > >> > Rushikesh Ghatkar > > >> > > > >> > > > >> > On Tue, Aug 10, 2021 at 3:52 PM Simon Filgis > > >> > <si...@ingenieurbuero-filgis.de> > > >> > wrote: > > >> > > > >> >> Hi Sir, > > >> >> > > >> >> split you problem: > > >> >> > > >> >> Have you verified that you're able to receive data with your PC > from > > >> >> any known working embedded device. > > >> >> > > >> >> Best, > > >> >> > > >> >> Simon > > >> >> > > >> >> > > >> >> On Tue, Aug 10, 2021 at 12:11 PM rushi ghatkar > > >> >> <rushighatka...@gmail.com> > > >> >> wrote: > > >> >> > > >> >> > Hi Sir, > > >> >> > > > >> >> > Thanks. Appreciate for your help. > > >> >> > > > >> >> > I have flashed your firmware file, nuttx.bin , but still I'm not > > >> >> > getting > > >> >> > nsh> prompt. > > >> >> > > > >> >> > Its ok sir. Thanks for your help. > > >> >> > > > >> >> > > > >> >> > > > >> >> > Thanks & Regards, > > >> >> > Rushikesh Ghatkar > > >> >> > > > >> >> > On Tue, Aug 10, 2021 at 3:29 PM Murat Tologlu > > >> >> > <mtolo...@hotmail.com> > > >> >> > wrote: > > >> >> > > > >> >> > > Hi, > > >> >> > > > > >> >> > > Your nuttx.bin is probably different than the nuttx.bin file > > >> >> > > which I > > >> >> sent > > >> >> > > to you that's why I configured and compiled an sent to you a > new > > >> >> > > one > > >> >> for > > >> >> > > your sake; If you still can't get the nsh> prompt with the > > >> >> > > firmware I > > >> >> > sent > > >> >> > > to you I don't have any more answer for you. Maybe someone else > > >> >> > > can contribute. > > >> >> > > > > >> >> > > Good luck. > > >> >> > > > > >> >> > > From: rushi ghatkar <rushighatka...@gmail.com> > > >> >> > > Sent: Tuesday, August 10, 2021 12:24 PM > > >> >> > > To: dev@nuttx.apache.org > > >> >> > > Subject: Re: Nuttx RTOS with Nucleo-H743ZI2 board > > >> >> > > > > >> >> > > > > >> >> > > > > >> >> > > On Tue, Aug 10, 2021 at 2:52 PM rushi ghatkar < > > >> >> rushighatka...@gmail.com > > >> >> > > <mailto:rushighatka...@gmail.com>> wrote: > > >> >> > > Hi Sir, > > >> >> > > > > >> >> > > Thanks for your reply. Really appreciate it. > > >> >> > > > > >> >> > > When i configured and compiled nuttx rtos then in my system > > >> >> > > nuttx.bin > > >> >> > file > > >> >> > > was created. And I have flashed that file also. Please find the > > >> >> > > nuttx directory image attachment. > > >> >> > > > > >> >> > > Your firmware file, nuttx bin file I have flashed successfully > > >> >> > > using STM32CubeProgramer. > > >> >> > > > > >> >> > > But the issue is, > > >> >> > > 1. picocom or minicom is not working. > > >> >> > > 2. I want to create my own driver like PWM, ADC and for other > > >> >> > peripherals, > > >> >> > > for this where I should start to create? and how? > > >> >> > > > > >> >> > > > > >> >> > > Thanks & Regards, > > >> >> > > Rushikesh Ghatkar > > >> >> > > > > >> >> > > > > >> >> > > > > >> >> > > > > >> >> > > On Tue, Aug 10, 2021 at 2:33 PM Murat Tologlu > > >> >> > > <mtolo...@hotmail.com <mailto:mtolo...@hotmail.com>> wrote: > > >> >> > > Hi Rushikesh, > > >> >> > > > > >> >> > > Flash and try attached firmware ( you may try bin and hex > files ) > > >> >> > > and > > >> >> > tell > > >> >> > > us what happens. > > >> >> > > > > >> >> > > Good luck, > > >> >> > > Murat > > >> >> > > > > >> >> > > From: rushi ghatkar <rushighatka...@gmail.com<mailto: > > >> >> > > rushighatka...@gmail.com>> > > >> >> > > Sent: Tuesday, August 10, 2021 9:42 AM > > >> >> > > To: dev@nuttx.apache.org<mailto:dev@nuttx.apache.org> > > >> >> > > Subject: Re: Nuttx RTOS with Nucleo-H743ZI2 board > > >> >> > > > > >> >> > > Hi, > > >> >> > > > > >> >> > > Thanks for your reply. > > >> >> > > > > >> >> > > I have followed this youtube video from Nuttx Channel, > > >> >> > > > > >> >> > > > > >> >> > > > >> >> > > https://www.youtube.com/watch?v=heSkSd-_70g&list=PLd73yQk5Fd8JEsVD-lh > > >> >> wYRQKVu6glfDa8&index=1 > > >> >> > > > > >> >> > > From the above link I have followed each step exactly as it is. > > >> >> > > > > >> >> > > I'm using Nucleo-H743ZI2 board which has stlink-v3, for this in > > >> >> > > the > > >> >> end I > > >> >> > > was trying to execute command "openocd -f > interface/stlink-v3.cfg > > >> >> > > -f target/stm32h7x.cfg" but this gives error. Please find the > > >> >> > > error image attachment. > > >> >> > > As you asked, use STM32CubeProgrammer to flash nuttx.bin into > the > > >> >> > > Nucleo-H743ZI2 board. And I used it and the nuttx.bin file has > > >> >> > > been > > >> >> > flashed > > >> >> > > successfully. > > >> >> > > > > >> >> > > After all this I was trying to open the nutshell using picocom, > > >> >> > > but nothing happened. No nutshell prompt appeared. > > >> >> > > > > >> >> > > Please help me to solve this issue. > > >> >> > > > > >> >> > > > > >> >> > > Thanks & Regards, > > >> >> > > Rushikesh Ghatkar > > >> >> > > > > >> >> > > > > >> >> > > On Tue, Aug 10, 2021 at 11:39 AM murat tologlu > > >> >> > > <mtolo...@hotmail.com <mailto:mtolo...@hotmail.com>> wrote: > > >> >> > > Hi Rushikesh, > > >> >> > > > > >> >> > > If you copy paste and share in a file attachment all the > command > > >> >> > > line content from "$ cd nuttxspace/nuttx" to the end - not only > > >> >> > > picocom > > >> >> > output " > > >> >> > > but everything that you did to configure and compile fooling "a > > >> >> > > video" > > >> >> ( > > >> >> > > which video? ) , perhaps we help can you. > > >> >> > > > > >> >> > > Regards, > > >> >> > > Murat > > >> >> > > > > >> >> > > On 2021/08/10 05:00:36, rushi ghatkar < > rushighatka...@gmail.com > > >> >> <mailto: > > >> >> > > rushighatka...@gmail.com>> wrote: > > >> >> > > > Hi, > > >> >> > > > > > >> >> > > > I have followed a youtube video from Nuttx Channel to > configure > > >> >> > > > and > > >> >> > > compile > > >> >> > > > Nuttx rtos with Nucleo-H743ZI2. And with the help of > > >> >> > STM32CUbeProgrammer > > >> >> > > I > > >> >> > > > have also flashed the nuttx.bin file into the board. > > >> >> > > > But when I was trying to use minicom or picocom, I'm unable > to > > >> >> > > > use > > >> >> it. > > >> >> > > > After executing this command "*sudo picocom /dev/ttyACM0 -b > > 115200" > > >> >> *, > > >> >> > > > nutshell prompt is not appearing, please find the attachment. > > >> >> > > > Need help for this. > > >> >> > > > > > >> >> > > > > > >> >> > > > Regards, > > >> >> > > > Rushikesh Ghatkar > > >> >> > > > > > >> >> > > > On Mon, Aug 9, 2021 at 8:17 PM murat tologlu > > >> >> > > > <mtolo...@hotmail.com > > >> >> > > <mailto:mtolo...@hotmail.com>> wrote: > > >> >> > > > > > >> >> > > > > Hi Rushi, > > >> >> > > > > > > >> >> > > > > Unless we know what you are trying to do we can't help you. > > >> >> > > > > There > > >> >> may > > >> >> > > be a > > >> >> > > > > mistake anywhere! > > >> >> > > > > > > >> >> > > > > Explain what did you try so far, how ? Give us the links of > > >> >> > > > > the application you're trying.. So may be we can discover > > >> >> > > > > your mistake. > > >> >> > > > > > > >> >> > > > > Regards, > > >> >> > > > > Murat > > >> >> > > > > > > >> >> > > > > On 2021/08/09 04:36:22, rushi ghatkar > > >> >> > > > > <rushighatka...@gmail.com > > >> >> > > <mailto:rushighatka...@gmail.com>> wrote: > > >> >> > > > > > Hi, > > >> >> > > > > > > > >> >> > > > > > I'm totally new to NUttx RTOS and I have started to work > > on it. > > >> >> > > > > > I > > >> >> > > have a > > >> >> > > > > > Nucleo-H743ZI2 board and followed a youtube video of > Nuttx > > >> >> channel > > >> >> > to > > >> >> > > > > > configure, compile and flash Nuttx rtos in Nucleo-H743ZI2 > > >> >> > > > > > board. > > >> >> > > After > > >> >> > > > > > compilation nuttx.bin file has been created but to flash > > >> >> > > > > > that on > > >> >> > > board, > > >> >> > > > > > flash command is not working so I tried > STM32CubeProgrammer > > >> >> > > > > > to > > >> >> > flash > > >> >> > > and > > >> >> > > > > it > > >> >> > > > > > got flash successfully. > > >> >> > > > > > But after that "sudo picocom/dev/ttyACM0 -b 115200" , > after > > >> >> > > executing and > > >> >> > > > > > resetting the board it's just waiting but the nsh> > prompt > > >> >> > > > > > isn't > > >> >> > > > > appearing. > > >> >> > > > > > What to do about it? > > >> >> > > > > > > > >> >> > > > > > Is there anyone who has worked on Nuttx RTOS with > > >> >> > > > > > Nucleo-H743ZI2 > > >> >> > > board > > >> >> > > > > and > > >> >> > > > > > can help me with this issue? > > >> >> > > > > > Please help me to solve this issue. > > >> >> > > > > > And also I want to create my own driver using nuttx rtos > on > > >> >> > > > > > a > > >> >> > > > > Nucleo-H73ZI2 > > >> >> > > > > > board . How to create our own driver and which IDE we > have > > >> >> > > > > > to > > >> >> use? > > >> >> > > > > > > > >> >> > > > > > Please help me. > > >> >> > > > > > > > >> >> > > > > > > > >> >> > > > > > > > >> >> > > > > > Thanks & Regards, > > >> >> > > > > > Rushikesh Ghatkar > > >> >> > > > > > > > >> >> > > > > > > >> >> > > > > > >> >> > > > > >> >> > > > >> >> > > >> > > > >