Re: Changes in Common Line Editor

2023-03-10 Thread Gregory Nutt
On 3/10/2023 4:55 AM, Sebastien Lorquet wrote: Well, there it is https://github.com/apache/nuttx-apps/issues/1653 Note that I dont get this behaviour with readline. We can continue to discuss this in the issue. Sebastien There are bandaid fixes going in that try to recover from the primary

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
they can't hand carry any significant amount of boards.  This probably 5-6 freight boxes of boards.  I will not be giving or sending anyone individual boards.  Take all or none. On 3/10/2023 6:54 AM, Alan C. Assis wrote: Hi Tomek, That is a good idea too! Greg, my uncle and my cousin will be

Re: [Breaking change] Echo character by serial driver

2023-03-10 Thread Gregory Nutt
How do you plan to handle incoming vt100 escape sequences.  I see you kludged around one, but there are hundreds.  TheY are used in BAS, pdcurses and other apps extensively. You are ruining that critical vt100 capability and breaking a lot of things Has anyone done any serious CLE editing

Re: NuttX Hardware

2023-03-10 Thread Gregory Nutt
I'm guessing it is around 5-6 freight boxes of hardware, perhaps more.  It is not really possible to hand carry any meaningful part of that. On 3/10/2023 6:54 AM, Alan C. Assis wrote: Hi Tomek, That is a good idea too! Greg, my uncle and my cousin will be in Costa Rica in the following weeks.

Re: Serial console BROKEN

2023-03-09 Thread Gregory Nutt
If CONFIG_SERIAL_TERMIOS is not selected then non-consoles will do nothing. In order to restore legacy behavior you would have to do this: +#ifdef CONFIG_SERIAL_TERMIOS if ( -#ifdef CONFIG_SERIAL_TERMIOS dev->tc_iflag & ECHO -#else - dev->isconsole -

Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-09 Thread Gregory Nutt
First of all, people never respect pull request formats if this is not enforced. So enforcement is required as well. No member of the PMC has authority over any other.  An Apache project is ultra democratic bordering on anarchistic.  Each member is basically a "sovereign citizen." So we c

Re: NuttX Hardware

2023-03-08 Thread Gregory Nutt
Sometime ago I was talking with Brennan about listing the board that I have here and he surprised me showing this board listing spreadsheet on google docs. Maybe we can organize a listing to see who has board X, Y, or Z and to make it possible to test NuttX on all possible boards. I have almos

Re: Serial console BROKEN

2023-03-08 Thread Gregory Nutt
At some point NuttX will grow too large for deep embedded platforms. My concern exactly. Yes, POSIX compliance is super important because it provides portability: I regularly write a program and run it on PC and embedded with almost no changes. This is one of the big selling points of NuttX f

Re: Serial console BROKEN

2023-03-08 Thread Gregory Nutt
You are right about posix compliance, this is a valuable goal, but at the same time it raises the hard remark: At some point NuttX will grow too large for deep embedded platforms. That may or may not be true.  Certainly NuttX has outgrown most old architectures with 16-bit address space lim

Re: Serial console BROKEN

2023-03-08 Thread Gregory Nutt
architecture support, increased code size, forced redesigns, etc.   So I think it is pretty hard to come with a truly convincing argument why we should support a clearly non-compliant behavior (or lack or behavior). On 3/8/2023 2:35 PM, Nathan Hartman wrote: On Wed, Mar 8, 2023 at 3:20 PM Gregory Nutt

Re: Serial console BROKEN

2023-03-08 Thread Gregory Nutt
POSIX defines the TERMIOS options and, I suspect that those TERMIOS options are required, not optional (need to check that). If that is true, then there should be no CONFIG_SERIAL_TERMIOS option; it should always be enabled. On 3/8/2023 2:15 PM, Nathan Hartman wrote: On Wed, Mar 8, 2023 at 2:

Re: Serial console BROKEN

2023-03-08 Thread Gregory Nutt
I imagine that this is occurring because readline also echos the input: https://github.com/apache/nuttx-apps/blob/master/system/readline/readline_common.c#L644 The low-level serial driver should not echo just because /isconsole /is true. Console echo is always handled by the application.

Re: Manjaro Distro

2023-03-08 Thread Gregory Nutt
Hi, I think that some key information is missing like what is the NuttX version used. Is it mainline or some release or custom. Best regards, Petro It would be helpful to understand where and why the crash occurs too.  You can get that information by analyzing the stack.  See https://cwik

Re: Serial console BROKEN

2023-03-08 Thread Gregory Nutt
I imagine that this is occurring because readline also echos the input: https://github.com/apache/nuttx-apps/blob/master/system/readline/readline_common.c#L644 The low-level serial driver should not echo just because /isconsole /is true. Console echo is always handled by the application. I

Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-08 Thread Gregory Nutt
I think that there are two different kinds of discussion that we need to have and these are probably best done in different forums. /*Black Box*/ By black box I mean the externally observed behavior and characteristics of the OS:  Interfaces, performance, driver facilities, build changes etc.

Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-08 Thread Gregory Nutt
On 3/8/2023 9:17 AM, Gregory Nutt wrote: ``There's a saying here that "if it didn't happen on list, it didn't happen." '' (yes, probably from someone that develops or sales a mailing list software) Hehehe No.  That is official ASF policy summarized as a m

Re: DISCUSSION - Usage of mailing lists for apache projects

2023-03-08 Thread Gregory Nutt
``There's a saying here that "if it didn't happen on list, it didn't happen." '' (yes, probably from someone that develops or sales a mailing list software) Hehehe No.  That is official ASF policy summarized as a motto: https://community.apache.org/newbiefaq.html#NewbieFAQ-IsthereaCodeofCond

Re: Build system is broken

2023-03-07 Thread Gregory Nutt
Agreed! The dev list is the only official way to communicate with all users of NuttX.  I would think ALL important discussions need to occur there. Github is for developers; dev is for everyone. On 3/7/2023 11:43 AM, Nathan Hartman wrote: On Tue, Mar 7, 2023 at 12:27 PM Alan C. Assis wrote:

Re: Serial console BROKEN

2023-03-07 Thread Gregory Nutt
I imagine that this is occurring because readline also echos the input: https://github.com/apache/nuttx-apps/blob/master/system/readline/readline_common.c#L644 The low-level serial driver should not echo just because /isconsole /is true.  Console echo is always handled by the application.  I wo

Re: Build system is broken

2023-03-07 Thread Gregory Nutt
It is likely that the issue with the SIGNAL number was introduced by commit e6227e19433c4999d500437d0a8a5c05f476ceb1 Author: chenrun1 Date:   Wed Feb 1 17:17:43 2023 +0800     include/signal.h:Expanding SIGNAL to be consistent with Linux There is nothing inherently wrong with the

Re: CONFIG_DEBUG_ASSERTIONS

2023-03-06 Thread Gregory Nutt
Put a breakpoint on up_assert. You can also then set the PC and SP to the saved value to see the context of the assertion. On 3/6/2023 1:01 PM, Tim Hardisty wrote: Am I being dumb again? With CONFIG_DEBUG_ASSERTIONS set, the system doesn't halt with a DEBUGASSERT (in a driver), and ends up i

OT: Who Writes Linux and Open Source Software?

2023-03-03 Thread Gregory Nutt
Interesting: https://news.slashdot.org/story/23/02/26/1950212/who-writes-linux-and-open-source-software I've often complained on list about the near disappearance of individual contributors to the OS.  It was created by individual contributors and most of the early, critical designs came fro

Re: Help me understand file open/close behaviours?

2023-03-03 Thread Gregory Nutt
On 3/3/2023 12:56 PM, Gregory Nutt wrote: On 3/3/2023 12:36 PM, Nathan Hartman wrote: On Fri, Mar 3, 2023 at 1:07 PM Tim Hardisty wrote: The bug I thought I had in a driver I'm developing (well, one of them!) appears to be related to file closing. - I have a related example-type ap

Re: Help me understand file open/close behaviours?

2023-03-03 Thread Gregory Nutt
On 3/3/2023 12:36 PM, Nathan Hartman wrote: On Fri, Mar 3, 2023 at 1:07 PM Tim Hardisty wrote: The bug I thought I had in a driver I'm developing (well, one of them!) appears to be related to file closing. - I have a related example-type app I'm using to exercise and check the driver. It open

Re: W25Nx NAND flash support

2023-03-01 Thread Gregory Nutt
If the cost isn't affordable and the company doesn't want to public all source code, he can try this approach: 1. Enable userfs to move yaffs from kernel to userspace 2. Build yaffs as wasm module and run it in: https://github.com/apache/nuttx-apps/tree/master/interpreters/wamr Th

Re: NuttX domains available

2023-02-25 Thread Gregory Nutt
Why not redirect them to https://nuttx.apache.org and crowdfund the bills ? :-) Anyone who wants to pay for the domains is welcome to do that.  I am finished paying.

Re: W25Nx NAND flash support

2023-02-25 Thread Gregory Nutt
Maybe LittleFS or SmartFS could be extended to handle NAND. I believe that LittleFS has been used with NAND with a NAND FLASH translation layer.  I am not sure of the state of that work, but I know that people have tried it.  Google "LittleFS on NAND flash" and see the hits. If a NAND fla

NuttX domains available

2023-02-25 Thread Gregory Nutt
I have two pre-Apache NuttX domains that are parked and one of them expires soon. /I will not be renewing them/ so if someone has a legitimate use for these domains, I will transfer them to you.  These are available: * /nuttx.com/ will expire April 2, 2023.  This would would be a good plac

Re: Maximum file descriptor number in select()?

2023-02-18 Thread Gregory Nutt
> >..l. I could not find where > > select() or poll() are implemented in the nuttx repository. Is there > some > > kind of magic going on with that? > > > > > They hare here: > https://github.com/apache/nuttx/blob/master/fs/vfs/fs_select.c > https://github.com/apache/nuttx/blob/master/fs/vfs/fs_p

Re: Maximum file descriptor number in select()?

2023-02-18 Thread Gregory Nutt
mber is hardcode to 256: > https://github.com/apache/nuttx/blob/master/include/sys/select.h#L38-L91 > it's better to define FD_SETSIZE to OPEN_MAX. > > > On Sun, Feb 19, 2023 at 9:53 AM Gregory Nutt wrote: > > > That is okay. My answer is possibly wrong anyway. OPEN_MAX

Re: Maximum file descriptor number in select()?

2023-02-18 Thread Gregory Nutt
gt; > best regards, > KIKUCHI Takeyoshi > > > On 2023/02/19 9:20, Gregory Nutt wrote: > > The maximum number of file descriptors is a constant value provided by > > the preprocessor definition OPEN_MAX. > > > > On 2/16/2023 5:44 PM, KIKUCHI Takeyoshi wrote: >

Re: Maximum file descriptor number in select()?

2023-02-18 Thread Gregory Nutt
The maximum number of file descriptors is a constant value provided by the preprocessor definition OPEN_MAX. On 2/16/2023 5:44 PM, KIKUCHI Takeyoshi wrote: currently porting the Nim language to NuttX. (It has been merged into the Nim devel branch) When using select/epoll, it is necessary to de

Re: Maximum file descriptor number in select()?

2023-02-16 Thread Gregory Nutt
Other POSIX-based systems use getrlimit(RLIMIT_NOFILE) to derive maxDescriptor. ulimit(4, nn) should also work but is old and obsolete (/like me ;)/ ). https://man7.org/linux/man-pages/man3/ulimit.3.html In terms of "POSIX compliant", the same system calls could be used for a clean impleme

Re: Maximum file descriptor number in select()?

2023-02-16 Thread Gregory Nutt
In NuttX, the current number of file descriptions is held in the fl_rows field of struct filelist.  Access to that field is provided only through the /proc file file system. Hmm.. the test is   if (row * CONFIG_NFILE_DESCRIPTORS_PER_BLOCK > OPEN_MAX)     {   return -EMFILE;     } So th

Re: Maximum file descriptor number in select()?

2023-02-16 Thread Gregory Nutt
Since the available memory capacity varies from device to device, Is there any way to find the best value for each build config? The maximum number of file descriptors for a task is OPEN_MAX which is determined by CONFIG_LIBC_OPEN_MAX.  The actual number may vary from task to task. In Lin

Re: Telnet broken?

2023-02-10 Thread Gregory Nutt
On 2/10/2023 3:19 PM, Nathan Hartman wrote: You know what, I think that might be it. I think I did notice that CLE was enabled and didn't think about it. Let me look into it... Even if that is the case, it is still and error if the escape sequence from the host appears on the NSH console.  It

Re: Telnet broken?

2023-02-10 Thread Gregory Nutt
#x27;, (v), ';', (h), 'R'}  /* Response: cursor is at v,h */ I don't know why this is showing up on the NSH console.  It should be invisible.  That is a bug. On 2/10/2023 2:42 PM, Gregory Nutt wrote: On 2/10/2023 2:24 PM, Nathan Hartman wrote: I think so. I'm

Re: Telnet broken?

2023-02-10 Thread Gregory Nutt
On 2/10/2023 2:24 PM, Nathan Hartman wrote: I think so. I'm using Konsole and I'm pretty sure this worked before. What's surprising is that the board boots fine, finds its IP address through DHCP, prints the NSH title and prompt... only then does it get messed up. ... That is the point in time

Re: Telnet broken?

2023-02-10 Thread Gregory Nutt
Looks like a terminal control sequence.  Most of the VT100 commands begin with every prompt like "nsh> " is followed by a VT100 clear to end of line command. Do you have VT100 support enabled in your terminal? On 2/10/2023 10:54 AM, Nathan Hartman wrote: I have a board configured with NSH_TEL

Re: Short delay

2023-01-28 Thread Gregory Nutt
On 1/28/2023 7:15 AM, Max Kriegleder wrote: I am using the tickless OS setting with 1 USEC_PER_TICK and ultimately I want to control a stepper motor where I need to delay toggling of pins for very short and accurate amounts of time to achieve a certain movement profile of the motor - just for i

Re: Pass interrupt status to handler

2023-01-27 Thread Gregory Nutt
On 1/27/2023 12:15 PM, Nathan Hartman wrote: Is there a global structure where you retain state information where it would be appropriate to save the most refent known state in a volatile variable? Good, modular design would discourage the use of global variables in such a way.

Re: Pass interrupt status to handler

2023-01-27 Thread Gregory Nutt
Typically, if you want to pass a small amount of information from an interrupt handler to a task, you would use a normal IPC like sigqueue() (https://pubs.opengroup.org/onlinepubs/7908799/xsh/sigqueue.html) which allows to send a type union sigval to the task. The task would have to catch the

Re: PING

2023-01-26 Thread Gregory Nutt
On 1/26/2023 1:52 PM, Gregory Nutt wrote: Perhaps you need a driver on Windows? It appears so from a quick Google where I find articles like: https://learn.microsoft.com/en-us/windows-hardware/drivers/network/overview-of-remote-ndis--rndis- https://supportcommunity.zebra.com/s/article

Re: PING

2023-01-26 Thread Gregory Nutt
pings without problem. But this may be more relevant once I can get the NuttX ping to Windows available. Linux not even seeing my board with RNDIS, but think I found that when I last tried this, years ago. On 25/01/2023, 19:11, "Gregory Nutt" mailto:spudan...@gmail.com> <mailto:s

Re: PING

2023-01-25 Thread Gregory Nutt
The windows firewall usually blocks pings (at least incoming pings).  May sure that you configure the firewall to permit this operation. On 1/25/2023 1:01 PM, Tim Hardisty wrote: Hi all, I'm trying to get RNDIS working. It nearly does - Windows sees the "gadget" and it has the right IP addres

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
An embarrassingly large number of typos: On 1/19/2023 2:19 PM, Gregory Nutt wrote: Should be pretty easy.  I think that you just need to add a HID report descriptor to the USB keyboard driver. https://wiki.osdev.org/USB_Human_Interface_Devices#Protocol. Shouldn't really require any

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
On 1/19/2023 2:13 PM, Tim Hardisty wrote: Ultimately I need to make sure it works with most/any USB-C keyboard that customers might choose to plugin (or, at least, a style/type of keyboard that is widely available), but it’s not a priority right now. Should be pretty easy.  I think that you j

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
On 1/19/2023 1:12 PM, Alan C. Assis wrote: I think the currently NuttX USB Keyboard driver needs to be extended to support more keyboards. Do do that someone need to inspect the USB communication and figure out what is going on. Unless someone has extended the driver, the USB keyboard driver on

Re: How to automatically kill all children threads when the main thread die

2023-01-16 Thread Gregory Nutt
> But nuttx doesn't support task sesion/group yet, so the simple solution is extend kill command instead. Wouldn't you have to introduce a non-standard interface behavior to that? I would think you would want to avoid that. > In fact, I was citing threads, but all children were tasks created

Re: How to automatically kill all children threads when the main thread die

2023-01-15 Thread Gregory Nutt
If you kill a process in Linux. All of its child processes should continue to run as orphan processes. This is the Linux compatible behavior for the case that Alan presented. On Sun, Jan 15, 2023 at 10:31 PM Gregory Nutt wrote: > That wouldn’t be consistent with how Linux works, would

RE: How to automatically kill all children threads when the main thread die

2023-01-15 Thread Gregory Nutt
d tasks. We can extend kill to support -P flag like pkill: https://linux.die.net/man/1/pkill -P ppid,... Only match processes whose parent process ID is listed. On Mon, Jan 16, 2023 at 10:14 AM Gregory Nutt wrote: > he > > > Ooops. No, you a re asking about tasks, not thre

Re: How to automatically kill all children threads when the main thread die

2023-01-15 Thread Gregory Nutt
he > Ooops. No, you a re asking about tasks, not threads. That is easier. > The answer is no: One task exiting has not effect at all any other tasks. > The question is confusing because it asks about killing other threads (aka pthreads) when the main (task) exits. But the example shows only t

Re: How to automatically kill all children threads when the main thread die

2023-01-15 Thread Gregory Nutt
NuttX On Sun, Jan 15, 2023 at 7:59 PM Gregory Nutt wrote: > Xaio Xiang problem will know the current behavior better then me, But I > think you need: only pthread support. See use of HAVE_GROUP_MEMERS in > sched/task/exit.c. see include/nuttx/sched.h for definition of > HAVE_G

Re: How to automatically kill all children threads when the main thread die

2023-01-15 Thread Gregory Nutt
Xaio Xiang problem will know the current behavior better then me, But I think you need: only pthread support. See use of HAVE_GROUP_MEMERS in sched/task/exit.c. see include/nuttx/sched.h for definition of HAVE_GROUP_MEMBERS. (seems to depend only on phtreads). On Sun, Jan 15, 2023 at 5:25 PM A

Re: Version when building the latest NuttX

2023-01-03 Thread Gregory Nutt
Look at the hidden file .version.  You will need to modify that file as you see fit.  It is not controlled under GIT (but is provided with each new  release package). On 1/3/2023 2:38 AM, Jernej Turnsek wrote: Hi All, when building the latest NuttX OS from git, I am having problems with .vers

Re: Article: NuttX for PinePhone: LCD Panel

2022-12-28 Thread Gregory Nutt
How would you handle the numerous color resolutions (mono, greyscale, various 8, 16, 24,32 color formats)? How would you handle different color representations (RGB multiplexed, CMYK multiplexed, planar colors, etc.). Rotations? Interleaved pixels? If it does not work with all video hardware, it

Re: ESP32 Memory Allocation

2022-12-19 Thread Gregory Nutt
POSIX does not support this capability with any uniform, standard interfaces. NuttX, however, does permit you to create and use as many separate heaps as you would like to.  See interfaces in include/nuttx/mm/mm.h For an example, look at the standard malloc/free implementation:  mm/umm_heap/

Re: Intertask communication in NuttX

2022-12-17 Thread Gregory Nutt
I think that I can't use a shared memory with my embedded system (nucleo-144), because I can't see the CONFIG_BUILD_KERNEL=y in my .config file. You can use "shared memory" in other build modes too.  The APIs to management shared memory don't exist in other build modes because they are use

Re: Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-12 Thread Gregory Nutt
Do you have the compiler option -mlong-calls selected? That is necessary in order to call from the FLASH address space (at 0xxx ) to the SRAM address space (2xxx ).

Re: SAM-E70 progmem - in system programming and RAMFUNCS

2022-12-08 Thread Gregory Nutt
On 12/8/2022 5:55 AM, David Sidrane wrote: Is the NVIC_VTABLE repointed to the RAM vectors? The RAM functions are like .bss:  There is a storage area of code that that is copied into RAM only power up.  But the symbols associated with the RAMFUNCs are defined by the linker script to be the ad

Re: New names of repositories

2022-11-22 Thread Gregory Nutt
+1 Let's do it! On 11/22/2022 7:30 AM, Nathan Hartman wrote: After hearing back from Infra about the repository naming convention, all the recent feedback has been to stay with the default and just remove "incubator-" from our repo names, giving: https://github.com/apache/nuttx https://github.c

Re: New names of repositories

2022-11-20 Thread Gregory Nutt
On 11/20/2022 1:18 PM, Tim Hardisty wrote: Might I humbly suggest that "if it isn't broken, don't fix it"? Just stick with the names already in use (minus the incubator, as will happen anyway). Just tried searching the Apache website for "RTOS" and NuttX is top of the list; searching the Apach

Re: New names of repositories

2022-11-20 Thread Gregory Nutt
On 11/20/2022 6:21 AM, Nathan Hartman wrote: ... Are we ready to call a [VOTE] thread or does anyone have more input/arguments/suggestions? ... Good job, Nathan.  I think you have summarized the options and issues well. Could we simplify the options before a vote be discussing the possibiliti

Re: New names of repositories

2022-11-19 Thread Gregory Nutt
On 11/19/2022 9:02 AM, Tomek CEDRO wrote: On Sat, Nov 19, 2022 at 3:53 PM Thiago Costa de Paiva wrote: From these, the valid argument is that it would be non-standard (not a top level name) related to Appache rules, which I think is indeed not acceptable. It would not imply any source code or

Re: New names of repositories

2022-11-19 Thread Gregory Nutt
On 11/19/2022 8:31 AM, Tomek CEDRO wrote: As we have this honor and pleasure to talk directly with the NuttX RTOS author.. maybe really we should listen to Gregory Nutt himself as the most experienced person in the room? There was a discussion in this area and the choice is strongly reasoned not

Re: New names of repositories

2022-11-19 Thread Gregory Nutt
> I am not attached to the name itself, I was just trying to solve the problem with special characters. Would the following work? > > nuttx/core > nuttx/apps Again, We need to verify, but I do not think that the Apache github repository supports directories like nuttx/ with repositories under the

Re: New names of repositories

2022-11-19 Thread Gregory Nutt
On 11/19/2022 8:12 AM, Gregory Nutt wrote: We need to verify, but I do not think that the Apache github repository supports directories Technically, NuttX is NOT a kernel in most build modes.  A kernel is a very specific architectural implementation involving protected resources: https

Re: New names of repositories

2022-11-19 Thread Gregory Nutt
y tentative idea! BR, ---Original--- From: "Gregory Nutt" it.  I was VERY strongly opposed to the idea then and I still am. - apps is NOT part of NuttX.  It is an achitecturally unrelated, mish mash or useful applications for NuttX, but it is not NuttX. - I consists of mostly 3rd

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
> Isn't it possible to merge the nuttx and apps into only one repository?e.g: > |-rtos > |-apps We discussed this option a couple of years ago and decided against it. I was VERY strongly opposed to the idea then and I still am. - apps is NOT part of NuttX. It is an achitecturally unrelated, mi

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
The advantage of nuttx?kernel et nuttx?apps that both repository are together in listing or folders. You can replace ‘?’ by as you want. I don't see any other examples of folders.  We would have to ask, I suppose. PS:  Pierre-Noel:  Good to see your name in print.  It has been awhile.

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
Isn’t nuttx supposed to be the Apache RTOS? rtos/nuttx rtos/apps ? The are other Apache RTOSs, or at OSs.  There is, at least, https://mynewt.apache.org/ MyNewt uses several repositories, one for each major subsystem. Their naming uses hyphens: mynewt-core, mynewt-newt, mynewt-nimble,

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
why can’t we just have : nuttx, apps as it has been for a long time (before Apache) … Ultimately, the repository names would appear here: https://github.com/orgs/apache/repositories nuttx/ would probably be fine, but apps/ probably would not be appropriate at that level.

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
I see all the other two-word Apache repositories use hyphens not underscores, and on GitHub they are URLs which as has been pointed out should ideally be hyphenated? To me the underscore looks wrong...but, in the grand scheme of things, it's just a name and, like Sebastien, I will not lose

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
But NuttX has more features than traditional RTOS(e.g. FreeRTOS). Actually, Xiaomi uses it in the IoT space which has less real time requirements. Other similar OS(e.g. Zephyr) doesn't append rtos suffix. So, I prefer keep nuttx and nuttx-apps. I just endorsed nuttx_rtos and nuttx_apps, but X

Re: New names of repositories

2022-11-18 Thread Gregory Nutt
+1 for nuttx_rtos and nuttx_apps On 11/18/2022 8:39 AM, Tomek CEDRO wrote: nuttx_rtos and nuttx_apps :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: Native Windows build

2022-11-12 Thread Gregory Nutt
On Sat, Nov 12, 2022 at 9:28 AM Gregory Nutt wrote: > There was also IAR/uVision IDE support in the repository for STM32. All > of the IAR/uVision helper tools are still present (I think), but the IAR > board support was removed > https://bitbucket.org/patacongo/o

Re: Native Windows build

2022-11-12 Thread Gregory Nutt
On 11/12/2022 9:05 AM, Brennan Ashton wrote: I can probably help revive my past effort to run some native builds in CI to at least prevent it from getting fully broken. One of the blockers last time, was just how slow it was and the limited number of Windows workers. Did we ever really have a n

Re: [VOTE] Apache NuttX Community Graduation

2022-10-21 Thread Gregory Nutt
+1: Apache NuttX is ready to graduate to TLP Gregory Nutt On 10/21/2022 6:46 AM, Nathan Hartman wrote: Dear Apache NuttX Community, Following the [DISCUSS] thread which has gone 72 hours without any further issues raised [1]: This is a call to VOTE on Graduation of Apache NuttX from the

Re: Get control of NSH serial port?

2022-10-20 Thread Gregory Nutt
> > But the simplest thing that comes to mind is just to kill the NSH task, > run modbus, and restart NSH when you are finished with modbus. > Maybe even simpler: Run the modbus task at a higher priority than NSH. Then all of the serial into should go to Modbus and not to NSH

Re: Get control of NSH serial port?

2022-10-20 Thread Gregory Nutt
I suppose there are lots of ways to do that by closing and redirecting NSH's standard I/O. But the simplest thing that comes to mind is just to kill the NSH task, run modbus, and restart NSH when you are finished with modbus. On Thu, Oct 20, 2022 at 6:05 PM Daniel Pereira Carvalho wrote: > Hi g

RE: [apache/incubator-nuttx] tools/configure.sh: Update USAGE for custom out-of-tree boards (PR #7103)

2022-10-11 Thread Gregory Nutt
> If external is historic, what is the preferred way to include a custom out-of-tree (i.e. non-public) App in a build, in a way that won't get trashed if a distclean or Nuttx upgrade merge is done? Distclean will not affect any untracked files/directories/symbolic links. If an untracked director

Re: [apache/incubator-nuttx] tools/configure.sh: Update USAGE for custom out-of-tree boards (PR #7103)

2022-10-11 Thread Gregory Nutt
Did you check the "external" directory or are you looking for something else? Basically the external directory allows you to symlink an out of tree repository (or repositories) that should contain, at least, the minimal build glues (Makefile and Make.defs). The build system should pick up the

Re: [RESULT] Release Apache NuttX (Incubating) 11.0.0 [RC2]

2022-10-11 Thread Gregory Nutt
On 10/11/2022 3:14 AM, Tomek CEDRO wrote: On Tue, Oct 11, 2022 at 12:49 AM Gregory Nutt wrote: Several years ago Mike Smith did a 68000 port of NuttX. I’m not sure if he completed it or not, but the port never came upstream. Mike is no longer involved with NuttX and probably not contactable

Re: [RESULT] Release Apache NuttX (Incubating) 11.0.0 [RC2]

2022-10-10 Thread Gregory Nutt
Several years ago Mike Smith did a 68000 port of NuttX. I’m not sure if he completed it or not, but the port never came upstream. Mike is no longer involved with NuttX and probably not contactable. If anyone out there in PX4 land knows where Mike kept his code, that might be helpful. A port t

Re: Unicode characters in codebase.

2022-10-10 Thread Gregory Nutt
I am not a attorney, but I seem to recall that a legal reference reference to a copyright or a trademark require the © and small tm superscript . This -- plus the names that Brennan mentions -- are some of the reasons why unicode really needs to be permitted within comments.  None of these sh

Re: Unicode characters in codebase.

2022-10-10 Thread Gregory Nutt
nxstyle should only complain if this is a source or build file, right?  And only if if the unicode is outside of a comment.  Unicode characters are useful in .txtf, .md, a probably other file typles and also in code comments. There are flags in nxstyle that tells if you the type of file (by e

Re: NxWidgets

2022-10-04 Thread Gregory Nutt
com/apache/incubator-nuttx/blob/master/libs/libnx/nxmu/nxmu_sendserver.c> function using the queues, from there it shouldn't be difficult to do a networked implementation. On Tue, Oct 4, 2022 at 12:47 PM Gregory Nutt wrote: Yes, NX is a server within the OS. The server side is in direct

Re: NxWidgets

2022-10-04 Thread Gregory Nutt
other frameworks like ImGUI too since I have some experience with it On Tue, Oct 4, 2022 at 12:13 PM Gregory Nutt wrote: NxWidgets is a drawing tool in C++ that supports graphics objects. It integrates naturally with NX. NX is the graphics server that supports multi-threaded 3D windowed displays (

Re: NxWidgets

2022-10-04 Thread Gregory Nutt
NxWidgets is a drawing tool in C++ that supports graphics objects.  It integrates naturally with NX. NX is the graphics server that supports multi-threaded 3D windowed displays (3D in the since that X/Y windows exists in a Z plane).  NX is the embedded, moral equivalent of X in Linux.  It is N

Re: NxWidgets

2022-10-04 Thread Gregory Nutt
More screenshots here: https://cwiki.apache.org/confluence/display/NUTTX/NuttX+Presentations https://cwiki.apache.org/confluence/display/NUTTX/Graphics NxWidgets is a port of Whoopsi which was a Nintendo DS GUI framework.  I don't think that the original is still supported.  It contains many,

Re: NXTerm with USB console

2022-09-27 Thread Gregory Nutt
I wonder if this is some interaction between the USB console and NxTerm?  Both are rather special cases.  Have you tried NxTerm with a serial console.  There are quite a few examples that worked in the past: $ find boards -name defconfig | xargs grep CONFIG_NXTERM=y boards/arm/lpc17xx_40xx/open

Re: malloc, free, strdup and kernel builds

2022-09-21 Thread Gregory Nutt
This does not seem like a technical issue but rather awkward usage/naming that is prone to misuse. Yes, free() should be called to release the memory allocated by strdup. But applications cannot use the kernel heap and, for reasons of protection, the kernel should not store anything in the use

Re: g_inode_sem.holder = -1

2022-09-14 Thread Gregory Nutt
> The only clue I have is that g_inode_sem.holder is set to -1, which intuitively seems wrong to me, but this is way beyond me at this time of my NuttX journey! The value -1 is not an error. It means that one thread is waiting to take a count from the semaphore. The value of the semaphore was 0

Re: SAMA5D3 and D4 DMA

2022-09-12 Thread Gregory Nutt
I did the D3 and D4 ports years ago and I am not aware of any other use of those boards. DMA was partially functional then, but was not well tested and was still buggy. There were problems documented in https://github.com/apache/incubator-nuttx/blob/master/boards/arm/sama5/sama5d4-ek/README.txt

Re: Question about ESP32 PC address.

2022-09-06 Thread Gregory Nutt
Might be a corrupted address; 0x7278 is ASCII "rx". Could be stack overflow corrupting the address. On Tue, Sep 6, 2022 at 5:37 PM Nathan Hartman wrote: > On Tue, Sep 6, 2022 at 6:35 PM Victor Benso wrote: > > Besides all the SMP related issues that most likely I failed to figure > out, > > I

Re: About enabling multiple NET_SOCK_FAMILY at the same time

2022-09-02 Thread Gregory Nutt
No, that logic is not limiting the number of socket families, it is simply picking a valid socket family to access socket IOCTLs. See line 78 in that same file: /* The address family that we used to create the socket really does not * matter. It should, however, be valid in the current configurat

Re: Re: Reevaluate the C89 Requirement

2022-08-31 Thread Gregory Nutt
> There used to be one defining inline to be nothing for ZDS-II . It would > > only be necessary to restore it for ZDS-II. This does not fix the > function > > duplication of static inline functions in header files, however. > > Is the duplication really a problem, though? > > After all, the whole

Re: Re: Reevaluate the C89 Requirement

2022-08-30 Thread Gregory Nutt
Since SDCC supports Zilog chipset very well, why not switch from ZDS-II to > SDCC? > SDCC supports z80 and z180 but none of the other ZiLOG chipsets. ez80 has an unverified GCC port but ZDS-II is the only compiler option for the remaining parts. See http://sdcc.sourceforge.net/ > > compiler.h

Re: Re: Reevaluate the C89 Requirement

2022-08-30 Thread Gregory Nutt
Yes. 2.95 > > Classic Z80 is probably not viable due to the 64Kb address limitation but > > is still relevant for Z80 derived parts with MMUs such as Z180 and the ZX > > Spectrum Next or with wider address buses such as the eZ80. z8 was never > > well tested. But eZ80 and ZNEO have been importa

Re: Re: Reevaluate the C89 Requirement

2022-08-30 Thread Gregory Nutt
> Just FYI, based on what Byron points out with regard to the Zilog families needing C89 (and possibly other archs that weren't mentioned), I would probably vote -1 unless... There have been several other cases over the years where there were ports to classic architectures no longer supported by c

<    1   2   3   4   5   6   7   8   9   10   >