Double erase in flash drivers

2025-04-05 Thread Javier Casas Marin
Hi, We are using the FTL driver over a MTD device (flash memory at45db641e). When we write something to flash, eventually the ftl_flush function is called and it does an erase (MTD_ERASE) and then the write (MTD_BWRITE). But in the at45db driver (at45db.c) the write uses command 0x82 ("Main Memory

Re: GSoC 2025

2025-04-05 Thread Tomek CEDRO
Okay so in order to register as Mentor interested person should send email to priv...@nuttx.apache.org and ment...@community.apache.org something like this: Hi NuttX PMCs, Please acknowledge my request to become a mentor for GoogleSummer of Code 2025 projects for Apache NuttX RTOS. I would like t

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-04-05 Thread Tomek CEDRO
On Wed, Mar 19, 2025 at 9:58 AM Luchian Mihai wrote: > Hello all, > First, a few conclusions I've drawn: > * Keep indent checking fully decoupled, indent style may or may not change > in future. > * For the moment we'll keep gnu style. Code style change will have a big > impact over the code base.

Re: Discuss NXBoot

2025-04-05 Thread Alan C. Assis
Hi Tim, there is already an open issue about it: https://github.com/apache/nuttx/issues/11390 Please take a look at that discussion, POSIX SIGNALS are still required for PSE51, but for NXBoot it could be disabled as well. BR, Alan On Tue, Mar 25, 2025 at 6:47 AM Tim Hardisty wrote: > I think

Re: Arduino R4 Minima

2025-04-05 Thread Alan C. Assis
Hi Roberto, I tested NuttX on an Arduino R4 Minima board and it worked like a charm! The point is: we don't have the serial console at the USB connector by default (I think we just need to change the port in the menuconfig). So to get the serial console working you need to use the RX and TX pins

Re: Can NSEC_PER_USEC in clock.h be changed to 1000L?

2025-04-05 Thread kr . git
Dne 2025-04-02 06:43, Takashi Yamamoto napsal: After some debugging I found out that up_alarm_tick_cancel in sched/sched/sched_timerexpiration.c reads an incorrect ticks value from clock_time2ticks macro. It received 0 seconds, 0x77358ns as a parameter, which - rounded up - should yield 1 tick

Re: RP2040 multiple GPIO interrupts

2025-04-05 Thread Alan C. Assis
Hi Matteo, I think RP2040 and new RP2350 are good MCUs, but Raspberry Pi Foundation did some terribles mistakes, like using a serial port control that doesn't have indication of transmission done (useful for RS485 support) and GPIO INT with both edges support. When I created the ultrasound sensor

Re: [EXT] Re: [PROPOSAL] New nxstyle tool roadmap

2025-04-05 Thread Michał Łyszczek
Peter van der Perk: > The main issue I was facing with clang-format was the indentation with NuttX > BreakBeforeBraces style see > https://github.com/llvm/llvm-project/issues/44188 Maybe it's time to say it out loud. GNU indent style for curly brackets should die ;). Changing these to Allman style