Re: [Article] NuttX on Ox64 BL808: Automated Testing with Ox64 Emulator

2024-01-27 Thread Alan C. Assis
Hi Lup, Congratulations, I think it could be very useful if integrated with CI. We could find many issues that aren't detected currently. Best Regards, Alan On Sat, Jan 27, 2024 at 8:05 PM Lee, Lup Yuen wrote: > Every day we’re auto-building NuttX for Ox64 BL808 RISC-V SBC... Can we > test

Re: [OT] Projects for GSoC 2024

2024-01-27 Thread Alan C. Assis
weekend my friends :-) > > > Tomek > > > > > > -- > > > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > > > > > > On Sat, Jan 27, 2024 at 2:55 AM Victor Suarez Rovere > > > wrote: > > > > > > > > I can certainly p

Re: [OT] Projects for GSoC 2024

2024-01-26 Thread Alan C. Assis
at 3:33 PM Tomek CEDRO wrote: > On Fri, Jan 26, 2024 at 2:07 PM Alan C. Assis wrote: > > Dear NuttXers, > > Please find below some ideas of projects to improve NuttX during the > > GSoC2024: > > https://cwiki.apache.org/confluence/display/COMDEV/GSoC+2024+Ideas+list >

[OT] Projects for GSoC 2024

2024-01-26 Thread Alan C. Assis
Dear NuttXers, Please find below some ideas of projects to improve NuttX during the GSoC2024: https://cwiki.apache.org/confluence/display/COMDEV/GSoC+2024+Ideas+list If you have some other ideas, please let me know. Best Regards, Alan

Re: Builtin app with its own command processor on stdin

2024-01-23 Thread Alan C. Assis
Hi Jernej, by not returning to NSH do you mean after pressing Ctrl+C ? Maybe this tutorial will help: https://www.youtube.com/watch?v=hszt15lTsnA BR, Alan On Tue, Jan 23, 2024 at 4:56 PM Jernej Turnsek wrote: > I am running an app in the foreground. I didn't have waitpid enabled. Now I >

Re: NuttX Workshop 2024 - event planning

2024-01-23 Thread Alan C. Assis
Hi Alin, I used Google Flights to comparece prices and the values are basically the same from May to August. If we have some bigger embedded/computer conference happening in Japan around that time, we could put NuttX Workshop just after that, this way people could participate in both events.

Re: [Article] NuttX on Ox64 BL808 RISC-V SBC: Emulated in the Web Browser

2024-01-20 Thread Alan C. Assis
Really cool Lup! Kudos!!! Actually booting NuttX from a floppy drive should be really nice too. BR, Alan On Sat, Jan 20, 2024 at 8:43 PM Lee, Lup Yuen wrote: > In olden times we had Computer Games (plus Operating Systems) on 5.25-inch > Floppy Disks. And we’d boot the Floppy Disks

Re: Addition of STM32H7 MCU's

2024-01-18 Thread Alan C. Assis
ap.c > Is Jorge's PR the one merged on Jul 12 (8ceff0d)? > Thanks, > Robert > > On Thu, Jan 18, 2024 at 2:56 PM Alan C. Assis wrote: > > > Hi Robert, > > Thank you for the explanation! Is it about internal cache? > > > > Looking at > > > https://www.st.com

Re: Addition of STM32H7 MCU's

2024-01-18 Thread Alan C. Assis
ed to get these correct as other files use these defs also, > such as stm32_allocateheap.c > Is Jorge's PR the one merged on Jul 12 (8ceff0d)? > Thanks, > Robert > > On Thu, Jan 18, 2024 at 2:56 PM Alan C. Assis wrote: > > > Hi Robert, > > Thank you for the explanation! I

Re: Addition of STM32H7 MCU's

2024-01-17 Thread Alan C. Assis
n Thu, Jan 18, 2024 at 1:28 PM Alan C. Assis wrote: > > > Robert, > > STM32H7 family is already supported. > > > > Look at arch/arm/src/stm32h7 and equivalent at boards/ > > > > BR, > > > > Alan > > > > On Tuesday, January 16, 2024,

Re: Addition of STM32H7 MCU's

2024-01-17 Thread Alan C. Assis
Robert, STM32H7 family is already supported. Look at arch/arm/src/stm32h7 and equivalent at boards/ BR, Alan On Tuesday, January 16, 2024, Robert Turner wrote: > Did anyone finish supporting the broader STM32H7xx family? If so, is it > close to being mergeable or sendable as a patch? > >

Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)

2024-01-15 Thread Alan C. Assis
Socket VPN on a server operated by the NuttX > Project? > > Probably not, because we need to throttle the internet traffic for free, > fair use. And prevent abuse. > > I've documented my findings on TinyEMU, VirtIO Networking and WebSocket > VPN: > > https://github.com/lupyue

Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)

2024-01-14 Thread Alan C. Assis
> > TinyEMU VirtIO Networking: https://bellard.org/jslinux/tech.html > > WebSocket VPN: > https://www.benjamincburns.com/2013/11/10/jor1k-ethmac-support.html > > Lup > > On Sun, Jan 14, 2024 at 8:10 AM Alan C. Assis wrote: > > > Really cool Lup! > > > > Maybe

Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)

2024-01-13 Thread Alan C. Assis
Really cool Lup! Maybe it could be used for training and deduction purposes. Do you know "The Construct" they are using a solution like that to run Linux in the browser: https://app.theconstructsim.com/login/ Is it possible to get network enabled and use it to communicate? It could open new

Re: NuttX Workshop 2024 - event planning

2024-01-12 Thread Alan C. Assis
Hi Alin, Thanks for confirming that Sony will be able to host our VI NuttX International Workshop! I think summer (after May) will be nice! So, although it is enough time, we need to define the date soon, because for people far from Japan the flight could be very expensive because we delay

Re: debugging user app crashes

2024-01-09 Thread Alan C. Assis
Yes! For kernel mode each program has its own main() implementation, not the definition. BR, Alan On Tue, Jan 9, 2024 at 10:34 PM Gregory Nutt wrote: > > On 1/9/2024 7:28 PM, Alan C. Assis wrote: > > Hi Yf, > > Just look at your System.map and you will see that all tho

Re: Re: debugging user app crashes

2024-01-09 Thread Alan C. Assis
t to the apps ELF. > > > > > Regards, > yf > > > > > > Original > > > > From:"Alan C. Assis"< acas...@gmail.com ; > > Date:2024/1/10 8:11 > > To:"dev"< dev@nuttx.apache.org ; > > Subject:Re: debugging user a

Re: debugging user app crashes

2024-01-09 Thread Alan C. Assis
Hi Yf Liu, I don't know if this minidump server works on 64-bit and with QEMU, but about the other question how to setup breakpoint in the NSH user space program, just set the break point to the nsh_main if you want to debug the NSH itself or set it to program_main to put the breakpoint to some

Re: Interest in an Apache IoT Track at EclipseCon EU in Mainz (Germany) later this year?

2024-01-05 Thread Alan C. Assis
t; scope, but TsFile is going to be super small … it’s just the part that >> writes timeseries data into so-called TsFiles (these can be of any size) … >> so the idea is to collect data on the device in TsFiles and then send them >> off in a chunck to an IoTDB instance to work with the

Re: Interest in an Apache IoT Track at EclipseCon EU in Mainz (Germany) later this year?

2024-01-05 Thread Alan C. Assis
can be of any size) … > so the idea is to collect data on the device in TsFiles and then send them > off in a chunck to an IoTDB instance to work with the data. > > > > Chris > > > > > > *Von: *Alan C. Assis > *Datum: *Donnerstag, 4. Januar 2024 um 23:23 >

Re: Interest in an Apache IoT Track at EclipseCon EU in Mainz (Germany) later this year?

2024-01-04 Thread Alan C. Assis
interest to attend or to even submit talks to this sort of event. > > > > And yeah … I’m the PLC4X guy with the plush civet ;-) > > > > And yeah … I already stated digging on what NuttX is, as I think it might > be interesting running PLC4X (PLC4Rust or PLC4C) on it … and possibly

Re: Interest in an Apache IoT Track at EclipseCon EU in Mainz (Germany) later this year?

2024-01-04 Thread Alan C. Assis
Hi Christofer, Thank you for bringing this to our attention! I think you forgot to send the submission link, because there is no reference to that conference at https://www.eclipsecon.org BTW, I think you are the guy from Apache PLC4X, right? I think it could be integrated on NuttX (at least

Re: Correct way to manage LCD backlight brightness

2024-01-03 Thread Alan C. Assis
Hi Tim, AFAIK NuttX doesn't have a standard way to do it. It is normally done at board level (do a "git grep backlight" inside boards/ to see some examples). A proper way to do that should be implementing a backlight subsystem, like a subset of Linux backlight subsystem:

Re: [Article] NuttX on Ox64 BL808 RISC-V SBC: Nim Programming Language

2024-01-01 Thread Alan C. Assis
Happy New Year NuttXers, Really cool Lup! Kudos!!! BR, Alan On Sun, Dec 31, 2023 at 9:22 PM Lee, Lup Yuen wrote: > Happy New Year! 2024 is here and we’re running NuttX on Single-Board > Computers with plenty of RAM. Like Pine64 Ox64 BL808 SBC with 64 MB RAM! > > In this article, we create a

Re: LittleFS Implementation using MTD for NOR flash

2023-12-29 Thread Alan C. Assis
Agree, it could be merged in some base file. But of course adding tons of #ifdefs inside a single file makes things hard to follow, see the arch/arm/src/stm32/ to see that! Using #ifdefs at top of the file just to include the files with only the functions that are different is better. BR, Alan

Re: Read response from console

2023-12-20 Thread Alan C. Assis
t; -- > *De:* Nathan Hartman > *Enviado:* quarta-feira, 20 de dezembro de 2023 16:40 > *Para:* dev@nuttx.apache.org > *Assunto:* Re: Read response from console > > So, in Kconfig, Example/popen should "depends on" FIFO and named pipe &g

Re: Read response from console

2023-12-20 Thread Alan C. Assis
his message pops up when trying to compile: > > the problem seems to be in the apps/system/popen. > Should any other configuration be applied besides enabling the > popen()/pclose() functions? > > ------ > *De:* Alan C. Assis > *Enviado:* q

Re: Read response from console

2023-12-20 Thread Alan C. Assis
Hi Gustavo, Do you mean apps/examples/popen is not working? I remember using popen() in the past to get the result of other program output. Best Regards, Alan On Mon, Dec 18, 2023 at 3:39 PM Gustavo Soares < gustavo.felipesoa...@hotmail.com> wrote: > Hello everyone! > > I have some i2c

debugassert vs assert in apps

2023-12-15 Thread Alan C. Assis
I think debugassert() is for finding BUGs during the development/testing phase. In the other hand assert() should be put in case where something really catastrofic is going to happen and cannot be avoid anyway. My personal opinion is that release code shouldn't have (or should have the minimum

Re: SPI EEPROM, losetup, LittleFS

2023-12-15 Thread Alan C. Assis
Hi Tim, What is the P/N# of your SPI EEPROM? As Sébastien said the best option is adding support to your SPI EEPROM as MTD. I used char dev EEPROM in the past with a circular packet buffer. It was used to store tracking data before sending it to the cloud. It was faster than using MTD in the

Re: minimal funcational acceptance for a new port

2023-12-12 Thread Alan C. Assis
Hi yf, Since you already got the nsh working and even some applications running, it is fine to submit to the mainline. About these issues, please include that information in your board documentation (just below the picture and the features of the board) in an section like: "Known issues". Best

Re: Legal help to (Apache) NuttX RTOS: adding licenseed driver

2023-12-10 Thread Alan C. Assis
/10/2023 7:15 AM, Alan C. Assis wrote: > > I understand your point. And in fact I think the issue is not your > contribution itself, but the future contribution from developers of RTEMS > and Linux that are using GPL. > > I think we have to be careful with the word "contribution&

Re: [Article] NuttX on Ox64 BL808 RISC-V SBC: Fixed the UART Interrupt and Platform-Level Interrupt Controller

2023-12-10 Thread Alan C. Assis
Hi Lup, Nice to know you found the issue (and Linux errata for T-Head C906 helped), that BUG is really strange. Probably a similar issue could exist on MILK-V board too. Did you test NuttX on Sipeed M1s Dock AI + IoT BL808 RISC-V? Unfortunately Pine 0x64 doesn't ship to Brazil (probably many

Re: Legal help to (Apache) NuttX RTOS: adding licenseed driver

2023-12-10 Thread Alan C. Assis
Hi Pavel, I understand your point. And in fact I think the issue is not your contribution itself, but the future contribution from developers of RTEMS and Linux that are using GPL. Those developers couldn't be comfortable contributing their improvements back to other OS that don't use GPL

Re: [Article] NuttX on Ox64 BL808 RISC-V SBC: UART Interrupt and Platform-Level Interrupt Controller (PLIC)

2023-12-02 Thread Alan C. Assis
Very cool! Your graphics are very didact too! It could be useful for the Milk-V port as well! Best Regards, Alan On Sat, Dec 2, 2023 at 8:06 PM Lee, Lup Yuen wrote: > Our article today is all about RISC-V Interrupts on the tiny adorable > Pine64 Ox64 BL808 64-bit Single-Board Computer

Re: Networking Delay: SO_SNDTIMEO odd behavior

2023-11-30 Thread Alan C. Assis
n, Hakeem > Subject: FW: Networking Delay: SO_SNDTIMEO odd behavior > > > > -Original Message- > From: Alan C. Assis > Sent: Tuesday, November 28, 2023 12:58 AM > To: dev@nuttx.apache.org > Cc: Raja, Mayank > Subject: Re: Networking Delay: SO_SNDTIMEO odd behavior &

Re: Networking Delay: SO_SNDTIMEO odd behavior

2023-11-28 Thread Alan C. Assis
Hi Hakeem, Thank you very much for reporting an issue your team found. Could you please open an issue with more information at https://github.com/apache/nuttx/issues and supply a little bit more information (board/mcu used, version of NuttX, host OS, etc). Please also supply your board config

Re: Legal help to (Apache) NuttX RTOS: adding licenseed driver

2023-11-27 Thread Alan C. Assis
can take the > most permissive license, i.e Apache 2.0 and include it in an ASF project > under that license. > > Kind Regards, > Justin > >> On 11 Nov 2023, at 12:35 am, Alan C. Assis wrote: >> >> Dear ASF Legal team, >> >> We have a user/compa

Re: AVR32 on NuttX

2023-11-24 Thread Alan C. Assis
Nice to see they added JTAG support to avrdude, but only few AVR8 has JTAG support (i.e. Atmega128 has). BR, Alan On 11/24/23, Tomek CEDRO wrote: > On Fri, Nov 24, 2023 at 5:32 PM Alan C. Assis wrote: >> Thank you Tomek, >> I searched in the source code and didn't fin

Re: AVR32 on NuttX

2023-11-24 Thread Alan C. Assis
Thank you Tomek, I searched in the source code and didn't find AVR32 support, it is strange because I remember of seeing "at32uc3b512" is the avrdude command line (our board uses at32uc3b256). BR, Alan On 11/24/23, Tomek CEDRO wrote: > On Fri, Nov 24, 2023 at 4:35 PM Alan C

Re: AVR32 on NuttX

2023-11-24 Thread Alan C. Assis
; raman@foo:~/Skullets/nuttxspace/nuttx$ cat >> boards/avr/at32uc3/avr32dev1/src/CMakeLists.txt >> >> set(SRCS avr32_boot.c avr32_bringup.c) >> >> if(CONFIG_BOARDCTL) >> list(APPEND SRCS avr32_appinit.c) >> endif() >> >> if(CONFIG_ARCH_BUTTONS)

Re: AVR32 on NuttX

2023-11-20 Thread Alan C. Assis
Hi Raman, On 11/20/23, Raman Gopalan wrote: > Dear Alan, > > I confirm the following settings from the NuttX make menuconfig. RX: PA24, > alternate function 0. TX: PA23, alternate function 0. So, this is correct. > Greg's user manual helped. I just grepped for the definitions. > > I see that the

Re: AVR32 on NuttX

2023-11-20 Thread Alan C. Assis
Hi Raman, On 11/20/23, Raman Gopalan wrote: > Dear Alan, Greetings! > > Many thanks for your suggestions. > >> Note that I already adapted it to use your Atmel ICE Device S/N. I just > use: $ >> sudo openocd -f openocd.cfg > > Thank you Alan. I just pasted your openocd configuration and invoked

Re: AVR32 on NuttX

2023-11-19 Thread Alan C. Assis
X (FTDI) to J2, pin 10. > 3) TX (FTDI) to J2, pin 7. > > I don't see the nsh shell yet. It is possible the pins are wrong. OR I > suspect > the alternate pin function configuration. I will attack this tomorrow. > > Many thanks again, > > R > > On Sun, 19 Nov 2023 at 2

Re: AVR32 on NuttX

2023-11-19 Thread Alan C. Assis
Hi Greg, AFAIK, Mr. Zou (CC here) fixed the Windows/Cygwin build few months ago. We just need to add it in our CI to avoid it breaks again in the feature. Brennan/Petro/Xiang, do you have a machine to add the Windows CI ? Best Regards, Alan On 11/18/23, Gregory Nutt wrote: > AFAIK, the

Re: AVR32 on NuttX

2023-11-19 Thread Alan C. Assis
Hi Raman, On 11/19/23, Raman Gopalan wrote: > Dear Alan, Dear Gregory, Greetings! > > Hello Kevin and Zou Boan! > > Many thanks for your suggestions. I will write in detail in a bit but > before, I was too excited about Alan's suggestion. > >> Other option could be extend the CMake support to

Re: AVR32 on NuttX

2023-11-19 Thread Alan C. Assis
option is not supported. Let me know >> if this is a problem for you, as it wouldn't be that hard to implement. >> Note that modules are supported -- Kconfiglib just assumes the sy >> mbol name MODULES, like older versions of the C implementation did when >> 'option modules

Re: AVR32 on NuttX

2023-11-18 Thread Alan C. Assis
INCDIR="${TOPDIR}\tools\incdir.bat"} > > Has anyone seen this before? Can you please give me a few tips to > tackle this problem? > No, maybe Greg or Zou Boan who were using Windows + Cygwin in the past. >> BTW, if you saw the LED turned ON, it means that proba

Re: AVR32 on NuttX

2023-11-14 Thread Alan C. Assis
Hi Raman, Thank you for reviving this discussing (I'm CC NuttX mailing list because it could interest one person or two). On 11/14/23, Raman Gopalan wrote: > Dear Alan, Greetings! > > I trust you're doing so well. I am so sorry about the long pause. I > revisited NuttX again a couple of days

Re: SPI+DMA with ws2812 driver on samd21

2023-11-09 Thread Alan C. Assis
Hi Bert, Are you configuring the DMA similar to way he did: https://web.archive.org/web/20221027190645/http://www.lucadavidian.com/2018/03/08/wifi-controlled-neo-pixels-strips/ ? Although on NuttX each driver is a separated instance, under the hook the basic configuration will be similar. BR,

Re: CTU CAN FD driver multi-licence for Nuttx

2023-11-09 Thread Alan C. Assis
...@apache.org ? BR, Alan On 11/9/23, Andrew Dennison wrote: > Hi Alan, > > Just confirming you got the suggested request i sent you off-list and that > it didn't end up in spam. > > Thanks, > > Andrew > > > On Sat, Oct 21, 2023, 12:38 AM Alan C. Assis wrote: &g

Re: Trouble adding a new board

2023-11-09 Thread Alan C. Assis
Hi Robert, On 11/8/23, Robert Middleton wrote: > Turns out it was a typo in the Kconfig file that took a while to track > down. I don't think that Kconfig has an option to detect errors like > this, which is pretty annoying. > > From boards/Kconfig: > config ARCH_BOARD_STM32_THING_PLUS >

Re: ws2812 on sam

2023-10-30 Thread Alan C. Assis
Hi Bert, On 10/30/23, Bert Voldenuit wrote: > Hi Alan, > Thanks for adding Brennan to the discussion. > > My answers below. > > Le lun. 30 oct. 2023 à 16:09, Alan C. Assis a écrit : > >> Hi Bert, >> >> I'm CC Brennan (the original author) and Victor (

Re: ws2812 on sam

2023-10-30 Thread Alan C. Assis
Hi Bert, I'm CC Brennan (the original author) and Victor (the author of the other driver using ESP32 RMT) they have more experience with WS2812. On 10/29/23, Bert Voldenuit wrote: > Hi Alan, > > Thanks to your advices, I was able to find why board_ws2812_initialize() > was not in System.map. >

Re: [Article] NuttX on Star64 JH7110: OpenSBI (Supervisor Binary Interface)

2023-10-29 Thread Alan C. Assis
Hi Lup, Great work, you are creating a huge set of documentation, not only about NuttX but also about RISC-V, OpenSBI and JH7110 processor! Kudos!!! BR, Alan On 10/28/23, Lee, Lup Yuen wrote: > Bare Metal Programming on a RISC-V SBC (Single-Board Computer) sounds > difficult. Thankfully we

Re: ESP32 I2S audio recording is incomplete

2023-10-27 Thread Alan C. Assis
that time. > ____ > From: Alan C. Assis > Sent: Thursday, October 26, 2023 10:55 > To: dev@nuttx.apache.org > Cc: Lucas Vaz > Subject: Re: ESP32 I2S audio recording is incomplete > > [External: This email originated outside Espressif] > > Hi Simona, > &g

Re: ESP32 I2S audio recording is incomplete

2023-10-26 Thread Alan C. Assis
t was your mistake, it could help to improve NuttX. BR, Alan On 10/26/23, Simona Toaca wrote: > Yes, ESP32_PSRAM_8M is enabled. > > Regards, > Simona > > În joi, 26 oct. 2023 la 16:55, Alan C. Assis a scris: > >> Hi Simona, >> >> On 10/26/23, Simona T

Re: ESP32 I2S audio recording is incomplete

2023-10-26 Thread Alan C. Assis
Hi Simona, On 10/26/23, Simona Toaca wrote: > Hello, > > I want to make sure that I understood this correctly, you're saying that > the I2S audio saved to an SDCard (via SPI) on Lyra T is working ok? > I think that is true. Maybe Lucas can confirm if he was saving in the SDCard. > Also, I

Re: nsh_fileapps and usage of sched_lock()

2023-10-25 Thread Alan C. Assis
On 10/25/23, Nathan Hartman wrote: > On Wed, Oct 25, 2023 at 5:16 AM Ville Juven wrote: > >> Hi all, >> >> I noticed that when spawning a new task/process from a file in >> nsh_fileapps, the scheduler is locked prior to calling posix_spawn(), >> which >> does the file loading into memory etc. >>

Re: [VOTE] Apache NuttX 12.3.0 RC1 release

2023-10-24 Thread Alan C. Assis
Sorry, I missed the vote window, please find below the results (NuttX still increasing size in a predictable way) ESP32-DEVKITC = $ xtensa-esp32-elf-gcc -v Using built-in specs. COLLECT_GCC=xtensa-esp32-elf-gcc

Re: STM32 and ttyACM device

2023-10-23 Thread Alan C. Assis
Hi Robert, Thanks for sharing your finding! I think the current implementation is more fail safe, but of course, it doesn't fit for all user cases. Some years ago a company created a thermal printer using NuttX and they said when the computer was sending too much data to the printer NuttX was

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-20 Thread Alan C. Assis
; >>> > Can anyone in the project help facilitate an "official" answer from >>> Apache? >>> > >>> > Kind regards, >>> > >>> > Andrew >>> > >>> > PS: the driver authors are not subscribed,

Re: ESP32 I2S audio recording is incomplete

2023-10-20 Thread Alan C. Assis
; > Simon > > -- > Ingenieurbüro-Filgis > USt-IdNr.: DE305343278 > -- > sent by mobile phone > > Alan C. Assis schrieb am Do., 19. Okt. 2023, 23:36: > >> Hi Simona, >> >> On 10/19/23, Simona Toaca wrote: >> > Hello, >> > I am t

Re: ESP32 I2S audio recording is incomplete

2023-10-19 Thread Alan C. Assis
Hi Simona, On 10/19/23, Simona Toaca wrote: > Hello, > I am trying to record audio using a MEMS microphone, but the final > recording is missing parts periodically (for example, with a sample rate of > 8kHz, there are parts ~1s long missing once every ~10-11s. Using a sample > rate of 48kHz, the

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-19 Thread Alan C. Assis
taking legal advice, on behalf of an apache project, > from a generative language model? > > Sebastien > > > Le 17/10/2023 à 22:22, Alan C. Assis a écrit : >> Oops, it was: you cannot enforce both at same time. >> >> Actually I think I was wrong (not about enforcing)

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Alan C. Assis
ntire project. Consulting with a legal expert is a wise step when dealing with complex licensing issues. " So, we are back to square one! BR, Alan On 10/17/23, Alan C. Assis wrote: > Hi Tomek, > > On 10/17/23, Tomek CEDRO wrote: >>> To be honest I don't see a big issue of

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Alan C. Assis
Hi Tomek, On 10/17/23, Tomek CEDRO wrote: >> To be honest I don't see a big issue of a driver as dual license, we >> already have SocketCAN and other drivers as dual license (GPL and >> Apache, BSD and Apache, etc). The original Author said the want is to >> be released as dual license: A or

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Alan C. Assis
Hi Christofer, On 10/17/23, Christofer Dutz wrote: > Hi all, > > Just came across this thread while reviewing your last board report. > In the PLC4X project we have CAN drivers and we Support C in PLC4C. > However nobody has ported CAN driver to C yet (But thanks to our code > generation it

Re: ESP32 SoftAP - Station bridging

2023-10-17 Thread Alan C. Assis
Hi Zhe Weng, Welcome to NuttX mailing list! What a great first message here! It worked perfectly: In the ESP32: nsh> ? help usage: help [-v] [] . cd execkillpwd true [ cp exitls reboot truncate ?

Re: [VOTE] Apache NuttX 12.3.0 RC0 release

2023-10-16 Thread Alan C. Assis
That was Alin :-) On 10/16/23, Daniel Appiagyei wrote: > Hi Alan, > Apologies for the delay. Please go ahead and make the RC1. > The issue regards using DMA for UART in (at least) the IMXRT family of > chips. I've created an issue here > and have a

Re: ESP32 SoftAP - Station bridging

2023-10-16 Thread Alan C. Assis
Hi Robert, I reproduced your issue here, but I don't know if it is some network issue on NuttX or just because I don't know how to configure the network route correctly. See my board config attached. I tried many scenarios and it never worked: nsh> ? help usage: help [-v] [] .

Re: ws2812 on sam

2023-10-15 Thread Alan C. Assis
Hi Bert, On 10/15/23, Bert Voldenuit wrote: > Hello, > > I am trying use ws2812 driver with a samd21 mcu. > > I took example from the /boards/arm/rp2040. > > added to board.h: > #define BOARD_GPIO_WS2812_PIN5 /* verifier pin #5 = PA15 */ > > added to sam_bringup.c: > > #ifdef CONFIG_WS2812 >

Re: execv obsolet ?

2023-10-12 Thread Alan C. Assis
; Enviado do meu iPhone > >> Em 12 de out. de 2023, à(s) 18:16, Alan C. Assis >> escreveu: >> >> Hi Greg, >> >>> On 10/12/23, Gregory Nutt wrote: >>> >>>> On 10/12/2023 2:18 PM, Alan C. Assis wrote: >>>> The exe

Re: execv obsolet ?

2023-10-12 Thread Alan C. Assis
Hi Greg, On 10/12/23, Gregory Nutt wrote: > > On 10/12/2023 2:18 PM, Alan C. Assis wrote: >> The execv on Linux also fails when we can an builtin program, try it: > > You are right, but the semantics are really confusing. In Bash, > commands that are included inside of

Re: execv obsolet ?

2023-10-12 Thread Alan C. Assis
rams that are not internal in NuttShell itself, but compiled separated and executed in the nsh. BR, Alan On 10/12/23, Alan C. Assis wrote: > Ah ok, I tested using the original code with "ls" instead "/bin/ls" > and the result as similar to NuttX: didn't print anything. >

Re: execv obsolet ?

2023-10-12 Thread Alan C. Assis
gt; static char * const args[2] = > { > "/bin/ls", > NULL > }; > printf("Executing 1 %s \n", args[0]); > execv(args[0], args); > } > > > De: Al

Re: execv obsolet ?

2023-10-12 Thread Alan C. Assis
Hi Miguel, I suggest you to try first in the Linux. NuttX should give you the same result ;-) BR, Alan On 10/12/23, MIGUEL ALEXANDRE WISINTAINER wrote: > Now compiles  > > in theory should show the files got from ls on terminal ? > > Builtin Apps: > i2c sh hellonsh > nsh>

Re: PCF8575 driver for NuttX

2023-10-06 Thread Alan C. Assis
Hi David, On 10/6/23, David S. Alessio wrote: >>> In a quick search I noticed that i2c_vbus_initialize() never was part of NuttX, >>> >>> OK, that’s not good. What’s the best way to submit it now? >>> >> >> No idea, I think this function is something you created for your project. >>

Re: PCF8575 driver for NuttX

2023-10-06 Thread Alan C. Assis
Hi David, On 10/6/23, David S. Alessio wrote: > >> In a quick search I noticed that i2c_vbus_initialize() never was part >> of NuttX, > > OK, that’s not good. What’s the best way to submit it now? > No idea, I think this function is something you created for your project. How is

Re: PCF8575 driver for NuttX

2023-10-06 Thread Alan C. Assis
Hi Gustavo, On 10/6/23, Gustavo Soares wrote: > Hi, Alan and David! > > I'm using nrf52_sx1509.c (at boards/arm/nrf62/thingy52/src) as model for my > driver. I've attached what I have wrote so far and I'd like to know if you > could tell me if I'm at the right direction: >

Re: PCF8575 driver for NuttX

2023-10-06 Thread Alan C. Assis
you point me to > how that’s done today? (I’m sure email won’t work). > > The problem I see with the existing IOEXPANDER code is that I don’t believe > it’s thread safe (multiple threads each hammering its own sensor on > different sub buses). > > Cheers, > -david > >

Re: PCF8575 driver for NuttX

2023-10-05 Thread Alan C. Assis
Hi David, I think you figure out Gustavo's mistake. Gustavo, all you need to do is use the existing driver. In your code you was trying to implement a low level driver to communicate with your PCF8575. You don't need to do it. Unfortunately there is not much boards examples using IOEXPANDER

Re: [OT] Link to YouTube NuttX Internacional Workshop

2023-10-03 Thread Alan C. Assis
for marking all video sections) NuttX International Workshop Day 1: https://www.youtube.com/watch?v=nDLplwggiX4 NuttX International Workshop Day 2: https://www.youtube.com/watch?v=dTzOhl7_kz8 Best Regards, Alan On 9/29/23, Alan C. Assis wrote: > Please link the link below: > > https://www.yo

Re: Writing in an I2C device

2023-10-02 Thread Alan C. Assis
Hi Gustavo, On 10/1/23, Gustavo Soares wrote: > Hello everyone! > > I have a PCF8575 IO expander with 16 channels wich I want to use 8 for write > (P10 to P17). The hardware is already configures and all LED's connected to > these ports are on. As you can see, NuttX sees the I2C device: > >

Re: STM Nucleo-32 board - I2C functionality

2023-09-20 Thread Alan C. Assis
Hi Stewart, On 9/20/23, Stewart Charnell wrote: > Hi, > > Has anyone used the I2C functionality on the STM Nucleo-32 board (it > uses the STM32L432 processor)? I think there is an issue with the file > boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c. > > This board can support Arduino NANO

Re: fat32 sd-card filesystem broken

2023-09-20 Thread Alan C. Assis
Hi Simon, I tested it recently (not extensive test) and it was working fine (stm32f777 meadow board). Did you try to run apps/testing/fstest to push its hard(ware) limits? :-) Also a simple way to verify if FAT is working is creating a RAMDISK (formatted as FAT) and run your application using

Re: riscv64 libm link question

2023-09-18 Thread Alan C. Assis
Hi Ken, On 9/18/23, ken.dic...@whidbey.com wrote: > On 2023-09-18 13:08, Alan C. Assis wrote: > >> The thumb rule when starting with NuttX is using an existent >> configuration as base. > > OK. > >> Unfortunately the menuconfig is not prepared (better say it c

Re: Link error building c++ app with master branch

2023-09-18 Thread Alan C. Assis
easy way to do JTAG/gdb as you can with other MCU RTOSes, and > there are just so many layers and configurations. > > -m > > On 9/18/2023 4:19 PM, Alan C. Assis wrote: >> Hi Mike, >> >> Let me explain the mental process I follow to fix this kind of error! >> >> The error m

Re: Link error building c++ app with master branch

2023-09-18 Thread Alan C. Assis
Hi Mike, Let me explain the mental process I follow to fix this kind of error! The error message in this case is very "clear" undefined reference to `pthread_key_create' So let see where it is defined: $ cd nuttxspace/nuttx $ git grep pthread_key_create ...

Re: riscv64 libm link question

2023-09-18 Thread Alan C. Assis
Hi Ken, On 9/18/23, ken.dic...@whidbey.com wrote: > On 2023-09-18 12:05, Alan C. Assis wrote: >> Hi Ken, >> >> Are you enabling the same symbols as in the sim bas or bastest ? > > I just used menuconfig interpreters bas selection > > Raspian:Ra

Re: UARTs ttyS and esp32

2023-09-18 Thread Alan C. Assis
Please open arch/xtensa/src/esp32/esp32_serial.c and search for uart_register() function. Notice that it is wrapped by some #ifdef, that need to be satisfied to that function be called. Also if you enter inside boards/xtensa and "git grep UART1" or UART2 you will find some board configuration

Re: riscv64 libm link question

2023-09-18 Thread Alan C. Assis
Hi Ken, Are you enabling the same symbols as in the sim bas or bastest ? $ cd nuttxspace/nuttx $ cd boards/ $ git grep "BAS=y" sim/sim/sim/configs/bas/defconfig:CONFIG_INTERPRETERS_BAS=y sim/sim/sim/configs/bastest/defconfig:CONFIG_INTERPRETERS_BAS=y $ cd .. $ ./tools/configure.sh

Re: ESP32S3 arbitrary crash when no optimization configured

2023-09-18 Thread Alan C. Assis
he code, but >> If >> you really need to turn it off to debug a specific function, consider >> using >> the attribute `__attribute__((optimize(0)))`. >> >> Best regards, >> >> Em seg., 18 de set. de 2023 às 12:05, Alan C. Assis >> escreveu: >>

Re: epoll oddities following setup/teardown optimizations

2023-09-18 Thread Alan C. Assis
Hi Wang Bowen and Marten, Is it possible to include an ostest with this code to avoid similar regression in the future? BR, Alan On 9/18/23, 汪博文 wrote: > Hi, > > I did the epoll optimization last year. And your analysis is right. The new > epoll implementation has BUG and I has reproduced

Re: ESP32S3 arbitrary crash when no optimization configured

2023-09-18 Thread Alan C. Assis
Hi Mike, I remember facing similar issue with ESP32 in the past. Because I started using NuttX with ARM chip and in the past the GCC toolchain has some issue with you are trying to compile debug symbols (-g) and optimization enabled (-O2) I always disabled optimization while enabling debugging.

[OT] NuttX Internation Workshop Subscription is opened

2023-09-14 Thread Alan C. Assis
Hi NuttXers, Please help us to spread the news: https://events.nuttx.apache.org Finally after four years we will have a physical event like that in Gouda, Netherlands in 2019. I'm looking forward to it! BR, Alan

Re: [EXT] Re: CTU CAN FD driver multi-licence for Nuttx

2023-09-14 Thread Alan C. Assis
I think the authors of the driver can release the source code using two or more licenses. We already have an example of it in NuttX: SocketCAN Since they add the OR license clause it is fine. BR, Alan On 9/14/23, Alin Jerpelea wrote: > Hi Pavel, > > small oftopic regarding the license

Re: [EXT] Re: CTU CAN FD driver multi-licence for Nuttx

2023-09-07 Thread Alan C. Assis
On 9/7/23, Brennan Ashton wrote: > On Thu, Sep 7, 2023, 9:01 AM Gregory Nutt wrote: > >> >> > I think GPL code shouldn't be included directly, but I think it is >> > fair to allow GPL code be downloaded using the building system case >> > user selected it. >> >> We created this directory

Re: make command error

2023-09-07 Thread Alan C. Assis
he app name from 'M+++' to 'mthreeplus' but the error still > appears: > > [cid:35aa8eda-31a2-4d80-825e-e653c25698da] > > [cid:3cb94f25-e1fc-48b8-9f8d-753d5fc09ceb] > ________ > De: Alan C. Assis > Enviado: quinta-feira, 7 de setembro de 2023 13:10 > Para: dev@nuttx

Re: make command error

2023-09-07 Thread Alan C. Assis
Hi Miguel, It was many years ago, normally the used hello_main() etc, to avoid main() symbol collision. Now the apps can use main() and the building system will concatenate it automatically. Probably the issue that Gustavo is facing is some messing with the source code. I think he is using

<    1   2   3   4   5   6   >