Re: Error with stm32f4discovery:usbnsh

2021-04-26 Thread Max Kriegleder
Hi Alan, I don't think that it is a config issue. I am on branch nuttx-10.0.1 for both my nuttx and apps repo, and I did $ make distclean $ ./tools/configure.sh stm32f4discovery:usbnsh $ make It compiles without errors (otherwise I could not have tested the code on my board). I assume the

Re: Error with stm32f4discovery:usbnsh

2021-04-22 Thread Masayuki Ishikawa
Hi, all, I noticed that we need to backport the following PRs to the nuttx-10.0 branch. https://github.com/apache/incubator-nuttx/pull/2540 https://github.com/apache/incubator-nuttx-apps/pull/521 https://github.com/apache/incubator-nuttx-apps/pull/523 So, I've just added the backport/10.0 label

Re: Error with stm32f4discovery:usbnsh

2021-04-22 Thread Alan Carvalho de Assis
Hi Max, it appears you are using an outdated NuttX and/or board config During the compilation using out .config I got some errors: In file included from nuttxspace/nuttx/sched/mqueue/mqueue.h:38, from group/group_leave.c:44: nuttxspace/nuttx/include/nuttx/mqueue.h:103:26:

Re: Error with stm32f4discovery:usbnsh

2021-04-22 Thread Max Kriegleder
Yes, I am getting this error. NuttShell (NSH) NuttX-10.1.0 nsh> nsh: nsh_session: readline failed: 9 I haven't used NuttX on this board for a while, so I cannot say when this broke. I have attached the .config file, should be the auto-generated config file based on

Re: Error with stm32f4discovery:usbnsh

2021-04-21 Thread Flavio Castro Alves Filho
Hello, To have usbnsh working I used, as a workaround, the implementation done in this pull request: https://github.com/apache/incubator-nuttx-apps/pull/521 In my application I don't use nsh. And USB-CDC works fine accessing directly the device. Hope it helps, Best regards, Flavio Em ter.,

Re: Error with stm32f4discovery:usbnsh

2021-04-20 Thread Alan Carvalho de Assis
Are you getting this error: "nsh> nsh: nsh_session: readline failed: 9" Could you please share your .config file? BR, Alan On 4/20/21, Max Kriegleder wrote: > Strange.. I have sent two mails prior to this one and apparently they > did not make it to the list. Trying again: > > Were you able

Re: Error with stm32f4discovery:usbnsh

2021-04-20 Thread Max Kriegleder
Strange.. I have sent two mails prior to this one and apparently they did not make it to the list. Trying again: Were you able to fix this problem? I am running nuttx-10.0.1 on a stm32f4discovery board and I have the same issue. Thanks! On 2021/04/17 22:56:48, Alan Carvalho de Assis

Re: Error with stm32f4discovery:usbnsh

2021-04-17 Thread Alan Carvalho de Assis
I just received it! Try to submit a new email On 4/17/21, Max Kriegleder wrote: > Is anybody reading this? I am not sure why my messages get lost.. how > can I post to the message list? > > On 2020/12/13 22:19:01, Brennan Ashton wrote: > > Yeah 100% agree which is why I need to look when I

Re: Error with stm32f4discovery:usbnsh

2021-04-17 Thread Brennan Ashton
Max your message came through, are you having an issue with this configuration. I believe this issue was resolved. --Brennan On Sat, Apr 17, 2021, 3:27 PM Max Kriegleder wrote: > Is anybody reading this? I am not sure why my messages get lost.. how > can I post to the message list? > > On

Re: Error with stm32f4discovery:usbnsh

2021-04-17 Thread Max Kriegleder
Is anybody reading this? I am not sure why my messages get lost.. how can I post to the message list? On 2020/12/13 22:19:01, Brennan Ashton wrote: > Yeah 100% agree which is why I need to look when I have a little more> > time to understand what is going on.> > > On Sun, Dec 13, 2020 at 2:12

Re: Error with stm32f4discovery:usbnsh

2020-12-13 Thread Brennan Ashton
Yeah 100% agree which is why I need to look when I have a little more time to understand what is going on. On Sun, Dec 13, 2020 at 2:12 PM Gregory Nutt wrote: > > See >

Re: Error with stm32f4discovery:usbnsh

2020-12-13 Thread Gregory Nutt
See https://mail-archives.apache.org/mod_mbox/nuttx-dev/202012.mbox/%3CCAKFLXYwes3pcDA2zXsL2FcwgCS4PecdmiP9srkGEtTaOoLEhMg%40mail.gmail.com%3E I don't think this is the correct solution since with Xiao Xiang's recent changes, stdin should never be closed.  But it does give some clues about

Re: Error with stm32f4discovery:usbnsh

2020-12-13 Thread Brennan Ashton
This is impacting all the usbnsh configurations. I can take another look later this evening https://github.com/apache/incubator-nuttx/pull/2526 --Brennan On Fri, Dec 11, 2020 at 5:05 AM Gregory Nutt wrote: > > Several other PRs specifically removed support for fclose (stdin). Are > you

Re: Error with stm32f4discovery:usbnsh

2020-12-11 Thread Gregory Nutt
Several other PRs specifically removed support for fclose (stdin).  Are you certain you want to restore it?  I think this needs more analysis and resolution with the previous changes that removed the fclose() of stdin, stdout, and stderr. On 12/10/2020 5:37 PM, Masayuki Ishikawa wrote:

Re: Error with stm32f4discovery:usbnsh

2020-12-10 Thread Masayuki Ishikawa
Suzuki-san, Please send a PR (Pull Request) to https://github.com/apache/incubator-nuttx-apps/ On Thu, Dec 10, 2020 at 5:24 PM SUZUKI Keiji wrote: > Hi, > > I use STM32F407G-DISC1 (MB997D) and build nuttx on macOS Mojave (10.14.6). > > The following error occurs with the default configuration

Re: Error with stm32f4discovery:usbnsh

2020-12-10 Thread Brennan Ashton
Suzuki, There were a handful of changes in the 10.0.0 release related to this that are discussed here: https://github.com/apache/incubator-nuttx/issues/2203 If you could comment there it might be easier to get the attention of the people involved in the change. I had not followed it as closely so

Error with stm32f4discovery:usbnsh

2020-12-10 Thread SUZUKI Keiji
Hi, I use STM32F407G-DISC1 (MB997D) and build nuttx on macOS Mojave (10.14.6). The following error occurs with the default configuration of stm32f4discovery:usbnsh. NuttShell (NSH) NuttX-10.0.0 nsh> nsh: nsh_session: readline failed: 9 The reason seems that instream->fs_fd is -1 instead of