Re: NuttX Code Quality Improvement 2025Q1

2025-02-05 Thread Michal Lenc
Hi Tomek, I think most of the points make sense, just few notes to some of them. > * Number of required code reviews should be increased from 2 to 4. > This will ensure cross-checks and filter out faulty changes. Perhaps I would limit this to larger commits only (and all affecting Build / Kernel

Re: GSoC 2025

2025-02-04 Thread Michal Lenc
Hi, there is still a possible work to do though. We could try to design an alternative algorithm that would not need three partitions. There are advantages of the current design (fast update even for big images, low flash wear, you always have a recovery present etc.), but it is mostly intend

Re: GSoC 2025

2025-01-29 Thread Michal Lenc
Hello all, I would like to propose the PWM upper-layer driver refactorization as a possible GSoC topic for this year. The idea has already been discussed in a GitHub issue and some solutions and steps have been proposed. The current PWM driver has

Using external libraries with NuttX

2024-07-11 Thread Michal Lenc
Hello all, I am currently facing the problem of using external library with NuttX. The support is already prepared in mainline in directory external/ which is compiled if Kconfig and Makefile are present in the directory. This is all fine as I symlink my library to external/ directory so I get to

Re: System time issue with external RTC

2024-05-31 Thread Michal Lenc
Hi, the right way to keep the system time in sync with external RTC is adjtime() function. https://man7.org/linux/man-pages/man3/adjtime.3.html NuttX also has its own implementation of adjtime() https://github.com/apache/nuttx/blob/master/sched/clock/clock_adjtime.c, so you can use it. Just en

Access GPIO pins over Lua

2024-03-15 Thread Michal Lenc
work for GPIO? Thanks. Best regards, Michal Lenc

Re: PCF8575 driver for NuttX

2023-10-07 Thread Michal Lenc
). But accessing pins one by one should be straightforward with CONFIG_GPIO_ LOWER_HALF option. Hope this helps. Best regards, Michal Lenc

Re: RTC synchronization with system time

2023-03-21 Thread Michal Lenc
as ever been tested and used. Thank you for the link and issue about adjtime(), that seems like a good alternative and way to go. Best regards, Michal Lenc -- Původní e-mail -- Od: Gregory Nutt Komu: dev@nuttx.apache.org Datum: 21. 3. 2023 0:20:43 Předmět: Re: RTC synchro

RTC synchronization with system time

2023-03-20 Thread Michal Lenc
e time after N reads however this would add some computation complexity to gettime (I2C communication delay for external RTC etc.) and I am not sure if we really want this inside  clock_gettime(). Best regards, Michal Lenc

Configuration of external RTC results in build error

2023-03-13 Thread Michal Lenc
ommit/bc04eb9 d891c44a6b41bb0badf34636e24e63b61). Some ideas or objections? I am not sure if there was not some other change that would require different configuration of external RTC. Best regards, Michal Lenc

Re: W25Nx NAND flash support

2023-02-25 Thread Michal Lenc
Hi, thank you all for your inputs and links. I will take a look into it. Best regards, Michal Lenc -- Původní e-mail -- Od: Simon Filgis Komu: dev@nuttx.apache.org Datum: 25. 2. 2023 14:43:33 Předmět: Re: W25Nx NAND flash support "Hi Michael, In addition, if you want to

W25Nx NAND flash support

2023-02-25 Thread Michal Lenc
implementation of w25nx flash require some further involvement in file system support or just the implementation of w25nx driver itself (similar to already implemented w25q NOR flash)? Thanks. Best regards, Michal Lenc

Re: ADC device close and IRQ

2022-09-15 Thread Michal Lenc
his would ensure the interrupt is enabled and attached when the driver is opened and disabled and detached when it is closed. Best regards, Michal Lenc

Re: Wikipedia: "Proposal deletion of NuttX"

2022-07-21 Thread Michal Lenc
reason to delete the page. For now I would reccomend to ask user MrsSnoozyTurtle on his talk page (https://en.wikipedia.org/wiki/User_talk:MrsSnoozyTurtle) what parts of the article does he consider to be promotional so we know what we need to change. Best regards, Michal Lenc

Re: Anyone using SAMv7 PWM?

2022-05-18 Thread Michal Lenc
0 it will be skipped. I will let you know when I discover what causes this. The driver is mostly a derivate from imxRT PWM driver and single PWM worked fine there if I recall correctly. Best regards, Michal Lenc" "

Re: Anyone using SAMv7 PWM?

2022-05-16 Thread Michal Lenc
n a PWM example app in this config too. The pins setup in board level section can be found here: <https://github.com/apache/incubator-nuttx/blob/master/boards/arm/samv7/same 70-xplained/include/board.h#L345> I will double check tomorrow if the configuration does not work for you.

RE: Serial RX DMA polling

2022-03-07 Thread Michal Lenc
Hi David, > https://github.com/PX4/PX4-Autopilot/blob/master/boards/px4/fmu-v5x/src/ init.cpp#L243-L247 that´s exactly what I was looking for, thanks! Best regards, Michal Lenc -- Původní e-mail -- Od: David Sidrane Komu: dev@nuttx.apache.org Datum: 7. 3. 2022 15:20

Serial RX DMA polling

2022-03-06 Thread Michal Lenc
there any consensus on how to use the periodic polling? Thanks. Best regards, Michal Lenc

Re: SPI with DMA on SAME70

2022-02-20 Thread Michal Lenc
ice way to find if there are some further DMA TX bugs. Best regards, Michal Lenc -- Původní e-mail -- Od: Simon Filgis Komu: dev@nuttx.apache.org Datum: 14. 2. 2022 16:33:32 Předmět: Re: SPI with DMA on SAME70 "Dear all, I started to follow up this topic. Found that one

Re: SPI with DMA on SAME70

2022-02-08 Thread Michal Lenc
ut it could be one of the problems. You can also take a look into sam_afec.c file, the DMA is working fine there. Hope this helps. Best regards, Michal Lenc -- Původní e-mail -- Od: Simon Filgis Komu: dev@nuttx.apache.org Datum: 8. 2. 2022 11:52:38 Předmět: SPI with DMA on S

Re: Implementing QSPI driver in SPI mode

2021-10-15 Thread Michal Lenc
Hi, yes, I think the code duplication should not be that bad. Having separate drivers sam_spi.c for classic SPI, sam_qspi.c for QSPI in serial memory mode (current implementation) and sam_qspi_spi.c or something like that for SPI over QSPI would be an option then. Thanks. Best regards, Michal

Implementing QSPI driver in SPI mode

2021-10-14 Thread Michal Lenc
based on the configuration option for the chip and would operate with that structure. Would this be a suitable option or were there some other plans regarding implementing SPI functions to QSPI? Thanks   Best regards, Michal Lenc

Re: Possibility of merging few lcd drivers into one file

2021-08-30 Thread Michal Lenc
be many of them. I will get into this perhaps later this week or during the next, firstly I want to figure out what went wrong with Tickless Mode for iMXRT (desrcibed here https://github.com/apache/ incubator-nuttx/issues/4442). Best regards, Michal Lenc -- Původní e-mail -

Possibility of merging few lcd drivers into one file

2021-08-30 Thread Michal Lenc
copies of st7735.c. Perhaps drivers for ST7565 and ST7567 could be also merged into ST75XX, but that would take more job as the source codes seems to be different. Thanks Best regards, Michal Lenc

Option to break for loop in PWM driver code by -1 channel number

2021-07-22 Thread Michal Lenc
dardized and documented somewhere (probably extend this page https://nuttx.apache.org/docs/latest/components/ drivers/character/pwm.html). If there is no major problem with adding -1 as a "stop" value to all PWM drivers I can create a PR during the following days. Best regards, Michal Lenc

Using PWM with less channels than defined in CONFIG_PWM_NCHANNELS

2021-07-21 Thread Michal Lenc
should actually work? Thanks for your inputs. Best regards, Michal Lenc

Re: Tickless mode for iMXRT MCU

2021-07-11 Thread Michal Lenc
inaccuracies I was having with 32.768 kHz clock source are not a problem now. I will do some further tests before creating the PR thought. Best regards, Michal Lenc

Re: Tickless mode for iMXRT MCU

2021-07-11 Thread Michal Lenc
Hi Alan, thanks for the link! I will take a look into it. Best regards, Michal Lenc -- Původní e-mail -- Od: Alan Carvalho de Assis Komu: dev@nuttx.apache.org Datum: 11. 7. 2021 16:19:59 Předmět: Re: Tickless mode for iMXRT MCU "Hi Michal, Please take a look at this

Tickless mode for iMXRT MCU

2021-07-11 Thread Michal Lenc
But 32 kHz clock source seems to be the only possible in iMXRT as others are to hight (tens or hundreds of MHz) and can´t be represended by the timer prescaler divider. Did anyone have similar problems when implementing tickless mode for some platforms? Thanks for your inputs. Best regards, Michal Lenc

Re: Troubles with CAN bus on STM32 Nucleo-F446RE

2021-07-08 Thread Michal Lenc
roblems. I haven´t tried receiving thought. I hope this helps. Best regards, Michal Lenc -- Původní e-mail -- Od: Roberto Bucher Komu: dev@nuttx.apache.org Datum: 7. 7. 2021 17:23:35 Předmět: Troubles with CAN bus on STM32 Nucleo-F446RE "Hi I'm trying to send messages

iMXRT boards linker scrips

2021-02-17 Thread Michal Lenc
1050-evk and imxrt1020-evk aswell. PS: There has been some discussion about NuttX being involded in GsoC under Apache flag, was there any further development? Best regards, Michal Lenc