AW: Debugging Nuttx

2020-04-07 Thread Schock, Johannes - NIVUS GmbH
If I recall correctly I created a folder named C:\mnt\ with a link (junction) to D:\ named "d" inside. (If the working disk of your IDE is D:\ try to put the junction into D:\mnt\) That allowed Eclipse to parse the file structure when I was testing Nuttx on Ubuntu Bash. Does this work with

Re: Should we relax precheck a little bit?

2020-03-15 Thread Schock, Johannes - NIVUS GmbH
Hello, I filed a pull request that introduces an idea of controlling the behaviour of nxstyle from inside the file under test. https://github.com/apache/incubator-nuttx/pull/569 This would allow to address some special requirements that are needed in cornercases (e.g. whitelisting), and, by

Re: Should we relax precheck a little bit?

2020-03-16 Thread Schock, Johannes - NIVUS GmbH
Part of the discussion on whitelisting for nxstyle went on on the Github PR: https://github.com/apache/incubator-nuttx/pull/569 To draw a conclusion from my side, I withdraw my supposal, because of "no metadata in source files". I will have a look at the .nxignore solution and if I find time I

RE: Compilation paths

2020-05-14 Thread Schock, Johannes - NIVUS GmbH
annes > -----Original Message- > From: Schock, Johannes - NIVUS GmbH > [mailto:johannes.sch...@nivus.com] > Sent: Thursday, May 14, 2020 10:50 AM > To: dev@nuttx.apache.org > Subject: Compilation paths > > Hello, > Just a short question because of a lack of unders

Compilation paths

2020-05-14 Thread Schock, Johannes - NIVUS GmbH
Hello, Just a short question because of a lack of understanding: During make process there are symlinks created: For an ARM target at least "arch/arm/src/chip" and "arch/arm/src/board". What I don't understand: Why is the chip stuff compiled in the virtual folder, but the board stuff is compiled

nuttx-testing PR discussions on dev list

2020-03-22 Thread Schock, Johannes - NIVUS GmbH
Sorry if I missed something. Is there a reason why nuttx-testing PR discussions on github are being forwarded to the dev list? I think either all PR discussions should be forwarded or none. I would prefer none. Regards, Johannes

Re: nuttx-testing PR discussions on dev list

2020-03-22 Thread Schock, Johannes - NIVUS GmbH
> -Ursprüngliche Nachricht- > Von: Abdelatif Guettouche [mailto:abdelatif.guettou...@gmail.com] > Gesendet: Sonntag, 22. März 2020 15:58 > An: dev@nuttx.apache.org > Betreff: Re: nuttx-testing PR discussions on dev list > > Hi, > Today I filled a JIRA issue to forward them to the commit

Re: let's discuss about the file system and nand flash driver

2020-03-10 Thread Schock, Johannes - NIVUS GmbH
Just for reference another nand FTL, I found it some time ago, but never tried it: https://github.com/dlbeer/dhara Johannes

Recent nxstyle changes

2020-03-10 Thread Schock, Johannes - NIVUS GmbH
I just like to discuss my recent nxstyle changes in regards to check the alignment of right of code comments according to coding standard. https://cwiki.apache.org/confluence/display/NUTTX/Coding+Standard#comments I checked against /sched before PR and everything looked good. But know I see at

Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Schock, Johannes - NIVUS GmbH
Hello, I think there's a problem with set_errno() in nx_start(), when CONFIG_TLS_ALIGNED is not set: I disabled SERIAL_CONSOLE and DEV_CONSOLE, because I wanted to test CDCACM_CONSOLE. Now calling fs_fdopen() in group_setupstreams() leads to a call of set_errno(). But since tls_get_info()

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Schock, Johannes - NIVUS GmbH
Another try with ".txt" extension. > -Original Message- > From: Schock, Johannes - NIVUS GmbH > [mailto:johannes.sch...@nivus.com] > Sent: Friday, May 22, 2020 1:40 PM > To: 'dev@nuttx.apache.org' > Subject: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Schock, Johannes - NIVUS GmbH
ot.c:static void > go_nx_start(void *pv, unsigned int nbytes) > ./arm/src/xmc4/xmc4_start.c:static void > go_nx_start(void *pv, unsigned int nbytes) > So, it become a block issue and need immedately fix now. > > On Fri, May 22, 2020 at 7:40 PM Schock, Johannes -

RE: Query on USB Hub device node creation

2020-09-11 Thread Schock, Johannes - NIVUS GmbH
> There will be no entry available in /dev directory for the USB Hub device. > > Is my understanding correct? > > Is this the expected behaviour of NuttX? I have no hardware around that weekend, so I can't verify. But as far as I can remember there's no node in /dev for a hub. Johannes

Kinetis QSPI MTD driver

2020-09-14 Thread Schock, Johannes - NIVUS GmbH
Hello, I'd like to integrate a QSPI MTD driver for the MT25QU256 Nor Flash on Freedom-K28F board. Since the Kinetis QSPI module features memory mapping of the flash and XIP, it works using a lookup table, and therefore the driver will be very architecture specific. Where should I place the

RE: Stack overflow during system init.

2020-10-07 Thread Schock, Johannes - NIVUS GmbH
Hi, I've been nearly completely out of order for the last week and a half, and I still have to fix #1900. Since your issue could be related: Is nxsig_initialize really causing a stack overflow in your case, or is it a false positive? Johannes > -Original Message- > From: Fotis

LPWORK Queue and USB Host Serial

2020-08-25 Thread Schock, Johannes - NIVUS GmbH
Hello, A short question concerning the use of LPWORK queue in FT232R and CDCACM USB Host drivers: Both block one LPWORK task per opened instance permanently. The FT232R rxdata_work USB transfer returns after each 16ms (USBHOST_FT232R_LATENCY) but since there are always at least two status bytes

Re: LPWORK Queue and USB Host Serial

2020-08-26 Thread Schock, Johannes - NIVUS GmbH
> -Original Message- > From: Gregory Nutt [mailto:spudan...@gmail.com] > Sent: Wednesday, August 26, 2020 3:34 PM > You must be using an STM32, right? The USB host on STM32 is garbage. No, I'm using a Kinetis K28 with EHCI, and I'm sure that problem is by design of the serial drivers:

NuttX Online Workshop

2020-08-15 Thread Schock, Johannes - NIVUS GmbH
Just a hint: If I'm correct, https://nuttx.events/ is broken at the moment: There's no link to register for N.O.W. (or is registration closed?) and the countdown is only showing some html garbage. JOhannes

RE: Stack size alignment on arm

2020-09-25 Thread Schock, Johannes - NIVUS GmbH
Is this happening on master as well? I've commited a change (#1562 ) to ARM stack management not long ago. Perhaps I missed something. I'll have a look. Johannes > I just encountered a problem with do_stackcheck(), and wanted to ask for > an opinion... > > In my (PX4) software I have got some

RE: Stack size alignment on arm

2020-09-25 Thread Schock, Johannes - NIVUS GmbH
> 1. Set the stack size as aligned already in > arch/arm/src/common/arm_createstack.c: > > -  tcb->adj_stack_size = stack_size; > +  tcb->adj_stack_size = STACK_ALIGN_DOWN(stack_size); > > 2. fix the do_stackcheck in a way that it doesn't start at (unaligned) > top, but at the first

RE: Stack size alignment on arm

2020-09-27 Thread Schock, Johannes - NIVUS GmbH
> So in px4, I end up seeing stack usage 100% on some threads (in "ps"), which > I want to fix. PR #1900 (https://github.com/apache/incubator-nuttx/pull/1900) fixes the issue. > In the past (9 or so years ago) there was an issue with floating point that > required the stack to be 8 byte

RE: MSYS2 build slow

2020-05-27 Thread Schock, Johannes - NIVUS GmbH
$ git bisect bad 7e5b0f81e93c7e879ce8434d57e8bf4e2319c1c0 is the first bad commit commit 7e5b0f81e93c7e879ce8434d57e8bf4e2319c1c0 Author: Xiang Xiao Date: Tue May 19 17:43:29 2020 +0800 build: Replace -I with INCDIR > -Original Message- > From: Schock, Johannes - NIVU

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-26 Thread Schock, Johannes - NIVUS GmbH
> -Original Message- > From: Gregory Nutt [mailto:spudan...@gmail.com] > Sent: Tuesday, May 26, 2020 4:20 PM > To: dev@nuttx.apache.org > Subject: Re: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED > not set > > > Today I had time to return to nuttx and rebased to master. > >

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-26 Thread Schock, Johannes - NIVUS GmbH
Thanks a lot for the fixes. Yes I know that I won't have stdio in this configuration. I followed the README of stm32f429i-disco concerning CDC/ACM console, and it's for testing/playing anyway. Today I had time to return to nuttx and rebased to master. But after doing a distclean and

RE: MSYS2 build slow

2020-05-29 Thread Schock, Johannes - NIVUS GmbH
Would please someone do the following command on Linux and Cygwin? time tools/incdir.sh -s arm-none-eabi-gcc /home/Schock/nuttx/nuttx/include (Replace the path with your NuttX path.) For MSYS2 it's in the range of: real0m0,189s user0m0,061s sys 0m0,045s Thanks, Johannes > From:

RE: MSYS2 build slow

2020-05-29 Thread Schock, Johannes - NIVUS GmbH
in MSYS2 Isn't there a possibility to cache the results of the system checks inside incdir.sh? Regards, Johannes > -Original Message- > From: Schock, Johannes - NIVUS GmbH > [mailto:johannes.sch...@nivus.com] > Sent: Friday, May 29, 2020 3:14 PM > To: dev@nuttx.apache.or

RE: MSYS2 build slow

2020-05-29 Thread Schock, Johannes - NIVUS GmbH
> From: Xiang Xiao [mailto:xiaoxiang781...@gmail.com] > Could you try the method I said before? Immediate make variable could > avoid invoke the shell script at every reference location which is some form > of cache inside make instead of incdir.sh. It's real22m50,526s user1m37,024s sys

RE: MSYS2 build slow

2020-05-30 Thread Schock, Johannes - NIVUS GmbH
For MSYS2 on my i7-3770 it's (every tests with jobs enabled): # make distclean # tools/configure.sh stm32f4discovery/nsh # time make -j real6m24,970s user1m5,615s sys 3m18,369s # make clean -j # time make -j real4m26,780s user0m58,376s sys 2m54,523s For comparison I

RE: MSYS2 build slow

2020-05-30 Thread Schock, Johannes - NIVUS GmbH
Without specifying -g CONFIG_HOST_LINUX is assumed. This worked well in the past with MSYS2. But I will try -g later today. Johannes > -Original Message- > From: Gregory Nutt [mailto:spudan...@gmail.com] > > For MSYS2 on my i7-3770 it's (every tests with jobs enabled): > > # make

MSYS2 build slow

2020-05-27 Thread Schock, Johannes - NIVUS GmbH
Just as an intermediate result: MSYS2 make distclean tools/configure.sh stm32f4discovery/nsh time make current master real35m54,957s user2m29,879s sys 6m31,525s releases/9.0 real4m39,324s user0m28,553s sys 1m23,113s The build is much slower than it used to be. Does

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-26 Thread Schock, Johannes - NIVUS GmbH
> From: Gregory Nutt [mailto:spudan...@gmail.com] > I just configured a new computer and I am having problems with MSYS2.  I > can't even create the "symbolic" links needed at start up.  I am not > sure why.  Probably some priveleges issues. I activate Windows 10 Developer Mode, and create an

RE: MSYS2 build slow

2020-06-02 Thread Schock, Johannes - NIVUS GmbH
Sorry for being so unresponsive, we had bank holidays and I've been away from my computer for 3 days. > -Original Message- > From: Gregory Nutt [mailto:spudan...@gmail.com] > Not if CONFIG_HOST_WINDOWS=y in the defconfig file.  That is what is set > in stm32f4discovery:nsh: > > $ grep

Re: USB host mass storage class automount.

2020-08-06 Thread Schock, Johannes - NIVUS GmbH
Would it be acceptable that the automount handler is called from usbhost_storage.c, from a modularity point of view? Because that way it would be only a notification towards the work queue, using a mechanism that is already in place. I don't like the idea to have another kthread that does only

Re: USB host mass storage class automount.

2020-08-07 Thread Schock, Johannes - NIVUS GmbH
> ... and shows a > profound lack of understanding of the OS architecture. > Thanks a lot, but what do you think why I'm asking questions? Would you please review PR #1531? I added a new USB mass storage class notifier. Johannes

RE: Some questions related PR#1478

2020-07-31 Thread Schock, Johannes - NIVUS GmbH
> From: Gregory Nutt [mailto:spudan...@gmail.com] > fsync on any open file descriptor will flush the file system since data > is only buffered for for metadata and one file at a time. This explains why my problem seems gone after I introduced a fsync on the file in my test case. I will have

Re: Some questions related PR#1478

2020-07-31 Thread Schock, Johannes - NIVUS GmbH
macOS (sim)" complaining? Johannes > -Original Message- > From: Nathan Hartman [mailto:hartman.nat...@gmail.com] > Sent: Friday, July 31, 2020 4:15 PM > To: dev@nuttx.apache.org > Subject: [!!Mass Mail]Re: Some questions related PR#1478 > > On Fri, Jul 31, 2020 at 9:4

Some questions related PR#1478

2020-07-31 Thread Schock, Johannes - NIVUS GmbH
Hello, I have two questions related PR#1478 (https://github.com/apache/incubator-nuttx/pull/1478): 1. I think there's a configuration error with "Build / macOS (sim)" since it is using -Wempty-body, or is this intentional? It gives errors for for (namelen = 0; dirinfo->fd_lfname[namelen] !=

Re: Some questions related PR#1478

2020-07-31 Thread Schock, Johannes - NIVUS GmbH
As a conclusion for me: If you don't want to force braces, the macos/sim build test needs to be fixed. Importantly: It's not a style test that is failing, it's a build test. Nevertheless I will change the code in my PR to use braces, because it seems to be the preferred way (at least by Greg and

USB host mass storage class automount.

2020-08-06 Thread Schock, Johannes - NIVUS GmbH
Hello, just a short question: I'd like to have my USB stick attached to USB high speed host automounted as vfat. Would it be acceptable to call mount/umount directly in the usbhost_storage.c where the blockdriver is registered/unregistered? For sure switchable with Kconfig options. I tried to

Re: RNDIS Kinetis

2020-07-24 Thread Schock, Johannes - NIVUS GmbH
It seems sometimes reading the readme could save from heavy debugging and writing an email. But nevertheless, I filed a PR: https://github.com/apache/incubator-nuttx/pull/1456 RNDIS is working now, I have TCP/IP Telnet access through USB on Kinetis K28. Regards, Johannes > -Original

RNDIS Kinetis

2020-07-21 Thread Schock, Johannes - NIVUS GmbH
Hello, I have again a little bit time to try out NuttX. Now I'm facing a problem with the RNDIS driver under Kinetis USB device (K28-Freedom), it is not working. If I'm not wrong I think I tracked it down: The Kinetis USB device driver doesn't support accompanying data in an nonstandard OUT