Re: Sleep Resolution

2021-03-24 Thread Gregory Nutt
The way the logic in clock_nanosleep() is written, the minimum delay ends up being 2 such ticks. I don't remember why and I can't seem to find it in the code right now, but I know this because I checked into it recently and found out that that's how it works. See https://cwiki.apache.org/conf

Re: Sleep Resolution

2021-03-24 Thread Gregory Nutt
Is the Tickless mode considered stable enough for production use now? IIRC it had some caveats when I last looked into it and I haven't had a chance to study it again. I believe so.  I am not aware of any issues.  It has been around for several years and has been used by a lot of NuttX users. 

Re: Sleep Resolution

2021-03-24 Thread Gregory Nutt
Weird behavior: Simply changing loop counter variable from uint16_t to volatile uint16_t causes initial delay (with variable delay = 0) going from ~500 ns to ~120 us The code is uint16_t delay; select_function(); for(delay = 0; delay < transfer->dev->afterstart; delay++); Any ideas? I ima

Re: avoiding pitfal of reuse of globals in FLAT mode?

2021-03-24 Thread Gregory Nutt
Thanks for all answers. I don't entirely understand most of them though as I'm not really familiar with the implications of TLS or how to use it correctly. Also, do we need per-thread or per-task data here? You would expect getopt() to be used only on the many thread since that is the only threa

Re: avoiding pitfal of reuse of globals in FLAT mode?

2021-03-24 Thread Gregory Nutt
What I'm thinking is that, besides the TLS based solution, adding a non-standard getopt() seems to be a good option anyway, since it is a lightweight solution to this particular function. Why do you think TLS is not lightweight.  It is very lightweight.  The non-standard, non-portable appr

Re: avoiding pitfal of reuse of globals in FLAT mode?

2021-03-24 Thread Gregory Nutt
What I'm thinking is that, besides the TLS based solution, adding a non-standard getopt() seems to be a good option anyway, since it is a lightweight solution to this particular function. Why do you think TLS is not lightweight.  It is very lightweight. The non-standard, non-portable appr

Re: avoiding pitfal of reuse of globals in FLAT mode?

2021-03-24 Thread Gregory Nutt
What I'm thinking is that, besides the TLS based solution, adding a non-standard getopt() seems to be a good option anyway, since it is a lightweight solution to this particular function. Why do you think TLS is not lightweight.  It is very lightweight. The non-standard, non-portable appr

Re: Sleep Resolution

2021-03-24 Thread Gregory Nutt
Why not call up_udelay or up_mdelay? The arch/soc should provide a best implementation for you. I was wondering that too. Also, as a side note, it is very important to calibrate the delay loop using in those functions.  If the delay loop is properly calibrated, these can be very accurate (

Re: How to ensure HEAP will not overlap static DMA buffer?

2021-03-25 Thread Gregory Nutt
Just don't add it to the primary heap:  Add the region below and the region above the DMA buffers with two calls to mm_addregion(). addregion (DMABUF_END, SRAM4_END - DMABUF_END, "SRAM4-A"); addregion (SRAM4_START, DMABUF_START- SRAM4_START, "SRAM4-B"); You can also create a different heap for

Re: How to ensure HEAP will not overlap static DMA buffer?

2021-03-25 Thread Gregory Nutt
Just don't add it to the primary heap: Add the region below and the region above the DMA buffers with two calls to mm_addregion(). addregion (DMABUF_END, SRAM4_END - DMABUF_END, "SRAM4-A"); addregion (SRAM4_START, DMABUF_START- SRAM4_START, "SRAM4-B"); Where should I call mm_addregion() fro

Re: How to ensure HEAP will not overlap static DMA buffer?

2021-03-26 Thread Gregory Nutt
Speaking of the linker, is there a way to use a combination of the linker script and __attribute__ incantations in the code to detect automatically the size that g_sram4_reserve should be and entirely eliminate the need for the user to specify the start and end of each region in Kconfig? Are y

Re: How to ensure HEAP will not overlap static DMA buffer?

2021-03-26 Thread Gregory Nutt
So, if I understand correctly, anyone can declare a static buffer like this: static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN locate_data(".sram4"); and automatically the heap will not overlap it? Yes provided that: 1. The .sram_resevere section is origined at SRAM

Re: How to ensure HEAP will not overlap static DMA buffer?

2021-03-26 Thread Gregory Nutt
Missing bit of logic: Speaking of the linker, is there a way to use a combination of the linker script and __attribute__ incantations in the code to detect automatically the size that g_sram4_reserve should be and entirely eliminate the need for the user to specify the start and end of each regi

Re: userspace assert?

2021-03-27 Thread Gregory Nutt
Isn't what you describe basically the same as Linux behavior.  assert() is like exit() and should cause the task to end, should it not? Per OpenGroup: https://pubs.opengroup.org/onlinepubs/009695399/functions/assert.html: When it is executed, if /expression/ (which shall have a *scalar* type)

Re: userspace assert?

2021-03-27 Thread Gregory Nutt
Or maybe is sim's up_assert() wrong to exit simulation? Thinking about it, doing up_assert() (which would just print the error) and exit() would indeed exit the app only. What do you mean by exit the simulation.  It should exit the task that caused the assertion but the simulation should co

Re: userspace assert?

2021-03-27 Thread Gregory Nutt
Yes, it seems that is the issue. I will make a PR to remove those lines (I tried removing them and works as expected). It still should return to __assert() under the conditions where an application assertion occurs.  __assert will exit.  The normal normal conditions are not in an interrupt

Re: Running the simulator with the MM debug features enabled causes assertion to fail.

2021-03-29 Thread Gregory Nutt
The system has never worked reliably with either memory manager or scheduler debug enabled.  That is because the debug output interferes with the normal operation of those sub-systems. On 3/29/2021 6:22 AM, Tanushree Baindur wrote: I am taking a look at issue #246 in nuttx-apps: Illegal calls

Re: ESP32S?

2021-04-02 Thread Gregory Nutt
One thing that we have always been missing is a video subsystem. This would be something similar to the audio/ subsystem which is basically a way of connecting audio streams between audio sources (like apps/system/nxplayer), audio processors (codecs, equalizers, etc. which would go in audio/),

Re: ESP32S?

2021-04-03 Thread Gregory Nutt
My idea was to do something similar to the framebuffer device, using map to access image data and ioctl's to control camera parameters and wait for a frame. Is this mostly how v4l works? Do you see a need for something more? Not sure what other aspects of video handling require a specific so

Re: Why _freerun_initialize() inits running variable as false?

2021-04-07 Thread Gregory Nutt
PR #3476 removes the unused variable from all other architectures. On 4/7/2021 3:59 PM, Sara da Cunha Monteiro de Souza wrote: Yes, I agree. Because I took a look at some codes that are using the freerun driver (tickless, dhtxx and hcsr) and no one use this var. I think I will "deviate", save

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
Normally this is done using the PHY driver at nuttx/drivers/net/phy_notify.c that provides PHY-related events to applications via signals.  It requires board-level support to handle PHY interrupts. The network monitor thread at apps/netutils/netinit (see CONFIG_NETINIT_MONITOR) will handle ta

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
:29 AM, Gregory Nutt wrote: Normally this is done using the PHY driver at nuttx/drivers/net/phy_notify.c that provides PHY-related events to applications via signals.  It requires board-level support to handle PHY interrupts. The network monitor thread at apps/netutils/netinit (see

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
4/14/21, Gregory Nutt wrote: Normally this is done using the PHY driver at nuttx/drivers/net/phy_notify.c that provides PHY-related events to applications via signals. It requires board-level support to handle PHY interrupts. The network monitor thread at apps/netutils/netinit (see

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
_phy_irq(FAR const char *intf, xcpt_t handler, void *arg, On 4/14/2021 7:59 AM, Flavio Castro Alves Filho wrote: The netinit_monitor code is self-explanatory :-/ I could understand what must be done ... and, naturally, it is in accord with the documents. In my case, I cannot easily enable it

Re: DALI Interface Proposal

2021-04-15 Thread Gregory Nutt
Before you start writing code, I think you should talk with the group about the architecture that you would develop. One of the essential, unbend-able rules is that any new development must not add new operating system interfaces that are not standard, not documented at OpenGroup.org, or are n

Re: IMXRT1064 and 2 Ethernet interfaces

2021-04-16 Thread Gregory Nutt
I don't have any good input for your specific problem, but the dual Ethernet configuration was well tested in the past with the SAMA5Dx configurations.  Those boards have two Ethernet interfaces on board and no problems like your have been noted. Most testing used apps/examples/bridge: $ f

Re: DALI Interface Proposal

2021-04-17 Thread Gregory Nutt
and suggestions. I see a very good road-map in your answer. On the other hand I ( probably together with Alan and somebody else interested in participating us) will appreciate all other comments and suggestions. Best regards, Murat On 2021/04/15 20:40:32, Gregory Nutt wrote: Before you start

Re: DALI Interface Proposal

2021-04-19 Thread Gregory Nutt
test our own slave hardware - software as well. I will share my experiments of course. Unfortunately this is not my main occupation, I am doing in my spare time, therefore may go slow. Best regards, Murat On 2021/04/17 19:18:17, Gregory Nutt wrote: Hi, Murat, When you decide on your develop

Re: DALI Interface Proposal

2021-04-19 Thread Gregory Nutt
/product&product_id=50) has a USB HID interface.  That is probably a proprietary interface and not an embedded friendly solution. While the Dali bus may be well standardiazed, clearly there is no standard host interface. Greg On 4/19/2021 12:56 PM, Gregory Nutt wrote: Hi, Murat, A

Re: DALI Interface Proposal

2021-04-19 Thread Gregory Nutt
be an Arduino form-factor) see: http://www.saelig.com/product/lw14-02mod.htm I think the shipping cost will be higher the the product. BR, Alan On 4/19/21, Gregory Nutt wrote: Hi, Murat, At 95 euros that could be a turn off for some hobbyist. I looked around for a low cost solution and found two p

Re: Using NuttX with custom bootloader

2021-04-21 Thread Gregory Nutt
But I don't know if there is anything to be done directly in NuttX source code. Nothing other than setting the VBAR register (called NVIC_VECTAB in NuttX).  This is already done so I guess the real answer is No.

Re: DALI Interface Proposal

2021-04-22 Thread Gregory Nutt
Both the Microchip solution and the example I've mentioned above uses the UART to communicate with DALI Interface. I think we can consider the same. A better design would be independent of the physical transport layer .

Re: Nonexistent CONFIG_FILE_MODE?

2021-04-25 Thread Gregory Nutt
I noticed several instances of preprocessor logic like this example from register_driver() in fs_registerdriver.c: #ifdef CONFIG_FILE_MODE node->i_mode= mode; #endif But there doesn't seem to be such a Kconfig option. Did I miss something? Or is this a remnant from a bygone era?

Re: Nonexistent CONFIG_FILE_MODE?

2021-04-25 Thread Gregory Nutt
Covered in this Issue: https://github.com/apache/incubator-nuttx/issues/3399 On 4/25/2021 12:29 PM, Gregory Nutt wrote: I noticed several instances of preprocessor logic like this example from register_driver() in fs_registerdriver.c: #ifdef CONFIG_FILE_MODE    node->i_mode    = m

Re: Nonexistent CONFIG_FILE_MODE?

2021-04-25 Thread Gregory Nutt
On 4/25/2021 12:31 PM, Alan Carvalho de Assis wrote: Hehehe, you are not the first one to notice it, in fact I commented that this kind of code exist but is not implemented: https://issues.apache.org/jira/browse/NUTTX-8 To be a POSIX, Unix-like system, NuttX should support privileges.  Addi

Re: Trying to build nxflat example in simulator

2021-04-25 Thread Gregory Nutt
It seams the error is related to documentation, maybe if you disable generating it the binutils will compile. NxFLAT is currently only supported on ARM 32-bit and ARM Thumb ISAs.  Some development would be required to extend that to other architectures.

Re: Running applications from dataflash

2021-04-25 Thread Gregory Nutt
1. Can an ELF file be executed from dataflash too? No.  ELF cannot run XIP (eXecute In Place) in NOR FLASH.  That is because the ELF module is only partially linked and requires run-time relocations to the ELF image to access the data area arbitrarily located in RAM. An option is to use

Re: tty philosophy

2021-04-28 Thread Gregory Nutt
I am sorting out flexcom support for the SAMA5D2 as there are issues with the arch files as well as Kconfig. In doing so, I would like to do it “right”. If flexcoms are assigned as USARTs is the correct philosophy to register them sequentially or as per flexcom port number? For example,

Re: How to use small I2C EEPROMs the NuttX way?

2021-04-29 Thread Gregory Nutt
There are several Microchip/Atmel boards that come with an Atmel MAC in AT24MAC402 EEPROM.  You should be able to clone that logic (including setting the MAC address).  See: samv7/samv71-xult/src/sam_ethernet.c samv7/same70-xplained/src/sam_ethernet.c These keep the MAC address in the AT24MAC4

Re: How to use small I2C EEPROMs the NuttX way?

2021-04-29 Thread Gregory Nutt
I assumed that the MAC is held in extended memory like the Atmel parts (otherwise, not much in the previous email makes sense). 183   /* Put the AT24 back in normal memory access mode */ 184 185   ret = at24->ioctl(at24, MTDIOC_EXTENDED, 0); 186   if (ret < 0) 187 {

Re: How to use small I2C EEPROMs the NuttX way?

2021-04-29 Thread Gregory Nutt
... The main reason is that the AT24XX MTD driver only can handle one type of devices on a single bus. .. The is a deficiency in the driver and should be pretty easy to fix by passing the I2C address during driver initialization.  Other drivers do that.

Re: How can I use I2C?

2021-04-30 Thread Gregory Nutt
On 4/30/2021 6:34 AM, yuta wrote: Hi all, I'm trying to use I2C. I configured below in menuconfig. - System Type > STM32 Peripheral Support > [*] I2C1 - Device Drivers > [*] I2C Driver Support then compilation was done successfully. But no I2C device( like /dev/i2c1 ) showed up when I tried ls /d

Re: tty philosophy

2021-04-30 Thread Gregory Nutt
And FYI, not exactly related to this topic but correlated: Console will always be at ttyS0, even if the UART peripheral is not 0. That is true for all architectures except for the STM32 families (all of them).  For the STM32's, that is true by default.  For example, if the console is on US

Re: CAN example crashes

2021-05-08 Thread Gregory Nutt
Is there any description somewhere about this example ? There is some in apps/examples/README.md, but not a lot of info.

Re: CAN example crashes

2021-05-08 Thread Gregory Nutt
No, I mean on top of that: CANopen, UAVCAN, other? Are we still talking about apps/examples/can?  apps/examples/can is a low-level driver test that does not use any intervening protocol and only operates in loopback mode.  It just verifies the loopback in its "normal" configuration...  What

Re: Dev environment

2021-05-11 Thread Gregory Nutt
All this starts from the CAN init code crashing (SAMA5D27) when it makes any call to print debug messages. Printf itself is fine. These kinds of crashes are often due to stack overrun.  It might be worth increasing the stack size of the task that calls CAN init. Has anyone got NuttX to succes

Re: Dev environment

2021-05-11 Thread Gregory Nutt
It seems that it is possible to run JLink from Windows in WSL. I used J-Link under Windows to bring up the SAMA5Dx.  The only tricky thing was booting from an SD card with U-boot.

Re: NuttX system load

2021-05-12 Thread Gregory Nutt
Dave Marples was using Orbuculum with some success in the past: https://groups.google.com/g/nuttx/c/XwzRjsgq1rA/m/Kcpe4vydAgAJ https://nuttx.events/wp-content/uploads/2019/11/DMarples_nx2019.pdf On 5/12/2021 12:43 AM, David S. Alessio wrote: On May 11, 2021, at 11:22 PM, James Dougherty wrote:

Re: Debug nuttx port with IAR

2021-05-17 Thread Gregory Nutt
IAR support was, apparently, working in May/August of 2016 when it was incorporated, but I am not aware of anyone that has used it since then.  Support was included in the repository for the STM3220G-EVAL (and for a couple of other STM32 boards), but was removed in November 2017 because it was

Re: Sharing libc in ELF modules.

2021-05-18 Thread Gregory Nutt
The way that has been done in the past was too add the libc functions to the base FLASH symbol table.  That symbol table draws the libc functions into the base FLASH image*.  Then there is one copy of the libc functions in base FLASH and no libc functions in the ELF module.  The ELF module is

Re: Ethernet cable (network interface availability) detection

2021-05-19 Thread Gregory Nutt
Considering this scenario, is there any alternative approach that I could use to have this detection? Polling the phy, or something similar? As I recall, David Sidrane submitted a PR to do just this but it was not incoporated.  I don't recall why.   I recall having some concerns that pollin

Re: (Standard | Recommended) way to create NuttX applications

2021-05-22 Thread Gregory Nutt
This question is more of a curiosity. Which is the most used, or recommended to implement and deploy an application in a NuttX environment? I saw that it is possible to have several applications to be called by NuttShell, and you can set applications to run when NuttShell starts. It is also p

Re: (Standard | Recommended) way to create NuttX applications

2021-05-22 Thread Gregory Nutt
In my application, I am not using nutshell. But I was wondering if is it the best, or correct or recommended way to do. I don't think there is a best or recommended in this case.  You should do what is best for you and for the final product. Often people build NSH in their development bui

Re: Port of project from NuttX 7.30 to 10.1 RC1: Unexpected IRQ

2021-05-25 Thread Gregory Nutt
irq_unexpected_isr: ERROR irq: 3 ... My guess is that AN external IRQ is triggered (possibly not the PHY IRQ) but the ISR handler for that one is not ready yet. I will add debug messages. IRQ 3 is a Hardfault, not an external IRQ or peripheral interrupt. I would expect that situation to be

Re: Nimble on U-blox Nina B112 (Nrf52832)

2021-05-25 Thread Gregory Nutt
The failure doesn't seem to have anything to do with nimBLE.  The nimble app is not running at all! Put a breakpoint on nimble_main().  I doubt that you ever get there.  But I don't know why. The error report is probably misleading too...  I seem to recall that that there is an issue that th

Cygwin build broken again

2021-05-28 Thread Gregory Nutt
The Cygwin build is broken again.  It is broken in the current master, in 10.0.0, and 10.0.1.  See https://github.com/apache/incubator-nuttx/issues/3799 for more details. This is the commit that broke the build: d5b6ec450fde069a4e64569b0eb7e4fcb3b96e83 is the first bad commit commit d5b6ec450f

Re: ESP8266 support

2021-06-03 Thread Gregory Nutt
Looking at NuttX source code, I couldn't find any example of an application that implements the ESP8266 functions. Is there any place where I can find reference for this use? There is a separate application in apps/netutils/esp8266. I've never tried it though, so I don't now about its state.

Re: ESP8266 support

2021-06-03 Thread Gregory Nutt
Then I had 2 doubts: 1. How to use the UART interface inside a device driver? Do you mean the apps/netutils/esp8266 code?  That is not a device driver, it is an application.  It uses the serial driver interface /dev/ttySx:  open(), close(), read(), write(), etc. Inside of the OS under nu

Re: Memory locations

2021-06-07 Thread Gregory Nutt
I will, I believe, need to declare - place - MCAN related structures such that they (or at least some elements of them) are in SRAM. You will need to exercise care.  SRAM (called isram in the linker scripts) is already used for other things including the MMU page table: https://github.com/pa

Re: [Discuss] Migrate the build system to CMake

2021-06-09 Thread Gregory Nutt
I think that there a lot of people like myself who are opposed to the CMake change but are remain silent to let the community make the decision.  I suspect that the advocates of CMake are having a larger voice in the decision. On 6/9/2021 7:38 AM, Sebastien Lorquet wrote: Hello, I believe in

Re: [Discuss] Migrate the build system to CMake

2021-06-09 Thread Gregory Nutt
Opponents should raise their voice. They are part of this "community" and have the ability to weight in this decision. My case may be different.  It is difficult to relinquish control of a project and I am training myself to not care so much about anything that happens in the project (wh

Re: Undefined reference to longjmp/setjmp

2021-06-09 Thread Gregory Nutt
There is also a configuration option that must be set to use the setjmp in NuttX.  It is in the top-level Kconfig as I recall. You don't get a compilation error so you are probably including the toolchain's setjmp.h.  So most likely you have -nostdlib or something like that on the command line

Re: Undefined reference to longjmp/setjmp

2021-06-09 Thread Gregory Nutt
Lua has been ported to NuttX several times.   If you Google for "lua+NuttX" you find lots of hits, many from https://nuttx.yahoogroups.narkive.com. This is from 2018:  https://github.com/tokoro10g/lua-nuttx We really ought to talk to the Lua team and see if we can upstream the changes.  Unsup

Re: Socket programming: send() function blocked

2021-06-26 Thread Gregory Nutt
Do you have CONFIG_NET_TCP_WRITE_BUFFERS=y selected?  It is required for TCP non-blocking send.

Re: Socket programming: send() function blocked

2021-06-26 Thread Gregory Nutt
Is there any chance that the broker didn't like the mqtt connect message and shutdown the connection and leaving my device alone ... all during send call? If the peer disconnects, the socket should be marked disconnected and the send() should fail with an error.

Re: LPC1769 Progmem

2021-07-08 Thread Gregory Nutt
The pagesize should be the same as the erase block size.. 4k. You will probably want 512b sectors (pages, or whatever we call them now) at the file system interface. You can also read-modify-write operations to "simulate" smaller erase blocks.  Most MTD drivers do that.  In that case they repo

Re: Tickless mode for iMXRT MCU

2021-07-11 Thread Gregory Nutt
The other source of the inaccuracy can be in clock frequency. I use 32 kHz clock source, but this value cannot be properly represented by CONFIG_USEC_ PER_TICK, which I set to 31 (which is aproximately 32.25 kHz). But 32 kHz clock source seems to be the only possible in iMXRT as others are to h

Re: Tickless mode for iMXRT MCU

2021-07-11 Thread Gregory Nutt
, this will result in small errors as you have noted.  However, in a very busy system with man timers, that error builds up and can be quite large... like 50% error!  See the above reference. That huge error is not acceptable in most cases. On 7/11/2021 9:16 AM, Gregory Nutt wrote: The other

Re: Tickless mode for iMXRT MCU

2021-07-11 Thread Gregory Nutt
To avoid the accumulation of conversion error, the count in timer driver should use the same time unit as the hardware. BTW, your timer driver has to implement the up_alarm_xxx functions. Unfortunately, 32.768KHz is a very common clock frequency and it cannot be handled by the current logic.

Re: Tickless mode for iMXRT MCU

2021-07-11 Thread Gregory Nutt
To avoid the accumulation of conversion error, the count in timer driver should use the same time unit as the hardware. BTW, your timer driver has to implement the up_alarm_xxx functions. Unfortunately, 32.768KHz is a very common clock frequency and it cannot be handled by the current lo

Re: Documentation in CWIKI: bring into nuttx tree?

2021-07-19 Thread Gregory Nutt
I think we need a place where the community can simply contribute documentation without going through the entire PR process.  I wrote 90+% of the wiki content and really like how responsive the wiki format is.  Moving it to the repository is a project decision and is fine with me. However, I pe

Re: Documentation in CWIKI: bring into nuttx tree?

2021-07-19 Thread Gregory Nutt
Instead removing the Wiki content en masse, a better approach might be to move a few key wiki pages that have proven value into to documents?  Retaining the Wiki for easy contribution? On 7/19/2021 4:10 PM, Gregory Nutt wrote: I think we need a place where the community can simply contribute

Re: sama5D2 class D audio

2021-08-19 Thread Gregory Nutt
I implemented audo on the SAMA4D3 and D4: ./sama5d3x-ek/configs/nxplayer/defconfig:CONFIG_DRIVERS_AUDIO=y ./sama5d4-ek/configs/elf/defconfig:CONFIG_DRIVERS_AUDIO=y ./sama5d4-ek/configs/ipv6/defconfig:CONFIG_DRIVERS_AUDIO=y ./sama5d4-ek/configs/nsh/defconfig:CONFIG_DRIVERS_AUDIO=y ./sama5d4-ek/con

Re: SPI EEPROM

2021-08-24 Thread Gregory Nutt
That’s AT24 I2C not AT25 SPI EEPROM unfortunatel,  and from a quick look it “just worked” ☹ There is support for the AT24 in other SAM boards.  Search for AT24 in defconfigs, I find boards/arm/samv7/same70-xplained/ boards/arm/samv7/samv71-xult/ boards/arm/xmc4/xmc4500-relax There is eve

Re: which filesystem?

2021-08-25 Thread Gregory Nutt
m25p_initialize() does not generate a block driver.  I creates an MTD driver.  To get a block driver, you have to wrap the MTD driver instances in an FTL (FLASH Translation Layer) instance.  These should be examples: $ find . -name "*.c" | xargs grep -l ftl_initialize | xargs grep -l nxffs_in

Re: which filesystem?

2021-08-25 Thread Gregory Nutt
You won't have the block drive unless you do what Greg suggested. But for mounting nxffs on an MTD partition you don't need the block driver. Thanks, Sara. Yes, we double faulted on that.  The sequences of operations would not produce a block driver BUT a block driver is not needed. The s

Re: which filesystem?

2021-08-25 Thread Gregory Nutt
To answer your question – which was the original intent of this help request, the aim is fundamentally data logging. Users will log data (at 20Hz, say; multiple parameters) then occasionally pull them off for external analysis, delete, and start again. So I don’t think wear levelling is actu

Re: which filesystem?

2021-08-25 Thread Gregory Nutt
2. If using FAT, as Greg suggested, take care of respecting the 8.3 convention name: https://en.wikipedia.org/wiki/8.3_filename#:~:text=An%208.3%20filename%20(also%20called,for%20compatibility%20with%20legacy%20programs . That should not be necessary, the NuttX FAT supports long file name, m

Re: Workshop: Put on nuttx.apache.org?

2021-08-26 Thread Gregory Nutt
My recollection is not good.  Perhaps some of you recall better than I. When NuttX graduates, the name "NuttX" will be owned by the ASF and will be protected from unauthorized use.  I will pass the trademark to the ASF.  I recall that all non-ASF websites that currently use the name NuttX in w

Re: NuttX Monthly Meetup

2021-09-25 Thread Gregory Nutt
I believe that the subject matter discussed in these meetings is inappropriate for an Apache project and must be stopped. The video conference is not fully open and it is not inclusive and it does not meet an of the requirements for use with an Apache project. On Sat, Sep 25, 2021 at 6:13 AM Alin

Re: NuttX Monthly Meetup

2021-09-25 Thread Gregory Nutt
Greg, nobody here want to take NuttX from you or destroy it. You can't take NuttX away from me because I have already given it to the community and to the world.  I did not give it to you personally. We all must fight to prevent people from usurping control by discussing and making privat

Re: NuttX Monthly Meetup

2021-09-25 Thread Gregory Nutt
Greg, nobody here want to take NuttX from you or destroy it. You can't take NuttX away from me because I have already given it to the community and to the world. I did not give it to you personally. No, it is not a completely community driven project yet, you still on control of it and you

Re: Which control version software are you using? //was Re: Poll: Which OS are you using to compile NuttX?

2021-09-26 Thread Gregory Nutt
Specifically we should avoid making git a requirement for configuring or building NuttX. Not all developers manage their sources (and electronic designs and other file formats) with git, and use of git in the build system would also be problematic for anyone who is using release tarballs. Agr

Re: Which control version software are you using? //was Re: Poll: Which OS are you using to compile NuttX?

2021-09-26 Thread Gregory Nutt
I wonder what is the purpose of this question. The problem with these polls is that everyone sees right through them.. at least at some level.  They are all really the question , "Who can we f*ck over."

Re: FreeBSD / BSD

2021-10-08 Thread Gregory Nutt
I don't think that there is any particular reason to "forbid" Python in the build. The current build does not depend on Python and, hence, adding the requirement for Python would probably affect many people in the community. Historically, the project has avoided adding new build tool requirements

Re: FreeBSD / BSD

2021-10-10 Thread Gregory Nutt
At the time, the proposed change was controversial, and as you've said about stability and why you work with FreeBSD you can understand that this would have introduced a major change to how our build system works, but that caused work on this PR to stop and I think some feelings were hurt, whic

Re: LCD display power on and off

2021-10-12 Thread Gregory Nutt
I'm using a framebuffer to display data on an SSD1306 display via NuttX. During a low power mode I need to disable the screen to save power. Actually it would be better to uninitialize the display before the power down. I see that the OS has functions in the kernel to turn off or on the displa

Re: LCD display power on and off

2021-10-12 Thread Gregory Nutt
What would be the best way to access this setpower() kernel function for the display via the application space? Normally that would be done inside of logic in board/xx/xx/src using the Power Management (PM) callback logic.  There is an example here: https://github.com/apache/incubator-nuttx/b

Re: FreeBSD / BSD

2021-10-12 Thread Gregory Nutt
Matias N. made some progress before; Unified device interface, callback based initialization and devicetree (DTS) · Issue #3031 · apache/incubator-nuttx (github.com) [RFC] Using devicetree (DTS) to improve board support · Issue #1020 · apa

Re: NET_TCP_SPLIT removal

2021-10-12 Thread Gregory Nutt
For people that need some background, this Wikipedia article may be helpful: https://en.wikipedia.org/wiki/TCP_delayed_acknowledgment. The SPLIT packet change is intended to work around issues when the unbuffered send is used with a peer that supports RFC 1122. In the unbuffered send case, the s

Re: NET_TCP_SPLIT removal

2021-10-12 Thread Gregory Nutt
stack? On Tue, Oct 12, 2021 at 8:35 PM Gregory Nutt wrote: > For people that need some background, this Wikipedia article may be > helpful: https://en.wikipedia.org/wiki/TCP_delayed_acknowledgment. The > SPLIT packet change is intended to work around issues when the unbuffered >

Re: FreeBSD / BSD

2021-10-14 Thread Gregory Nutt
Democracy as we see today is vulnerable to manipulation by "mass migration". I saw many good open-source projects being hurt by "new fancy trends" to the point where solid old developers left the project and it was taken over by the "progress is achieved by enforcing changes"^TM* folks simply r

Re: FreeBSD / BSD

2021-10-14 Thread Gregory Nutt
Being member of PMC / PPMC seems to be the kind of Voting Rank I was describing.. except it is more bureaucratic / social based rather than result based.. because it depends on the membership rather than overall lines of code added to the project.. on the other hand input to the project may be

Re: FreeBSD / BSD

2021-10-14 Thread Gregory Nutt
Being member of PMC / PPMC seems to be the kind of Voting Rank I was describing.. except it is more bureaucratic / social based rather than result based.. because it depends on the membership rather than overall lines of code added to the project.. on the other hand input to the project may b

Re: FreeBSD / BSD

2021-10-14 Thread Gregory Nutt
The Linux Foundation and the ASF are both not-for-profit organizations, but they different significantly in their legal organizations.  I forget the non-project corporation types but basically, the Linux Foundation is dedicated to free business development.  Projects are controlled throu

Re: FreeBSD / BSD

2021-10-14 Thread Gregory Nutt
The Linux Foundation and the ASF are both not-for-profit organizations, but they different significantly in their legal organizations.  I forget the non-project corporation types but basically, the Linux Foundation is dedicated to free business development.  Projects are controlled thr

Re: NET_TCP_SPLIT removal

2021-10-14 Thread Gregory Nutt
d you please say where I could read that discussion about > removing / retaining the unbuffered send in more details? > > Best regards, > Alexander Lunev. > > > On Thu, 2021-10-14 at 16:49 +0800, Gregory Nutt wrote: > > For people that need some background, this Wikipedia

Re: NET_TCP_SPLIT removal

2021-10-14 Thread Gregory Nutt
> Currently I'm using "unbuffered" send mode as in my case it > surprisingly provides twice as high throughput as "buffered" one. > Though, I initially expected that "buffered" send mode should have > better performance compared to "unbuffered" one It should not be faster. I suspect that is some

Re: NET_TCP_SPLIT removal

2021-10-14 Thread Gregory Nutt
> > Currently I'm using "unbuffered" send mode as in my case it > > surprisingly provides twice as high throughput as "buffered" one. > > Though, I initially expected that "buffered" send mode should have > > better performance compared to "unbuffered" one > > It should not be faster. I suspect t

Re: FreeBSD / BSD

2021-10-14 Thread Gregory Nutt
> ,,, I certainly hope that (original) NuttX always > remains POSIX-like/Unix-like, with support for multiple architectures, > multiple compilers, ... These features are among the biggest reasons I've > adopted NuttX. Getting rid of them would defeat the whole purpose! That is why the INVIOLABLES

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