Re: STM Nucleo-32 board - I2C functionality

2023-09-21 Thread Daniel Pereira Carvalho
Hi Stewart, You are right, there is a mistake regarding pin definitions in the file boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c. I tried to fix these pin definitions on PR #10753 but I can't test them. Are you able to test it? Thanks Daniel Pereira de Carvalho Em qua., 20 de set. de

Get control of NSH serial port?

2022-10-20 Thread Daniel Pereira Carvalho
Hi guys, I am writing a program for a board that has only one serial port available, the one used by NSH. My application needs to use this port for MODBUS so, my application needs to take control of the serial port and give it back to NSH when execution is done. Is this possible? If yes, how can

Re: Is SmartFS limited to 16M memories

2022-10-20 Thread Daniel Pereira Carvalho
ns that the smallest file size is 2K bytes, even if > the file only has 1 byte stored in it. That's the price you pay for a > structured file system though. > > Ken > > > On 10/19/22 4:39 PM, Daniel Pereira Carvalho wrote: > > Hi guys, > > > > I am tryi

Is SmartFS limited to 16M memories

2022-10-19 Thread Daniel Pereira Carvalho
Hi guys, I am trying to use the memory W25Q256JVEIQ, with SMARTS FS. To do it I added the support for this memory in "drivers/mtd/w25.c". I just added the code below *..#define W25_JEDEC_CAPACITY_256MBIT 0x19 /* 8192x4096 = 256Mbit memory capacity */../* 256M-bit / 32M-byte

Re: dummy folders in nuttx tree

2022-10-04 Thread Daniel Pereira Carvalho
nks to drivers folder but keep the drivers > under the specific board that uses them > > Best regards > Alin > > > -Original Message- > From: Daniel Pereira Carvalho > Sent: den 3 oktober 2022 21:02 > To: dev@nuttx.apache.org > Subject: dummy folders in nuttx tr

dummy folders in nuttx tree

2022-10-03 Thread Daniel Pereira Carvalho
Hi guys, Looking at nuttx folders I saw two folders called "dummy", specifically nuttx/dummy and nuttx/drivers/dummy. The last one is referenced by the symbolic link nuttx/drivers/platform. What is the reason for this? Thanks Daniel Pereira de Carvalho

Re: Error when building custom board

2022-03-03 Thread Daniel Pereira Carvalho
n > > > > > > > > boards/ssrc/icicle/nuttx-config and NuttX cloned in > > > > > > > > platforms/nuttx/Nuttx/nuttx. > > > > > > > > > > > > > > > > I didn't yet start looking into it in detail, what goes > wrong, just &

Error when building custom board

2022-03-02 Thread Daniel Pereira Carvalho
Hi guys, I am having problems building custom boards outside of the Nuttx folder tree. Usually I use the following folder structure. |-> apps |-> my-folder |-> my-apps |-> custom-app |-> my-boards |-> custom-board |-> nuttx To build my apps I just need to create a symbolic

Re: Nuttx RTOS with Nucleo-H743ZI2 board

2021-08-11 Thread Daniel Pereira Carvalho
Hi Rushikesh Ghatkar I think you missed a "-f". The command line should be *openocd -f interface/stlink-v3.cfg -f target/nucleo-h743zi2.cfg* I use a command like the one below to to write the nuttx image * openocd -f interface/stlink.cfg -f target/stm32g4x.cfg -c init -c "reset halt" -c "flash

Re: STM32G4 analog camparators

2021-06-16 Thread Daniel Pereira Carvalho
note describing the analog > > features like OPAMP, COMP, etc, and other features and how they differ > from > > other STM32 families. That document could come in handy. > > > > Nathan > > > > > > On Tue, Jun 15, 2021 at 10:51 AM Daniel Pereira Carvalho &

STM32G4 analog camparators

2021-06-15 Thread Daniel Pereira Carvalho
Hi, I'm trying to use the analog comparators of the nucleo-g431kb board. As a reference I'm using the implementation and pin definition of the nucleo-f334r8 board. Looking at RM0364 Reference manual section *15.3.2 COMP pins and internal signals* there is the following *"The I/Os used as

Re: CONFIG_RAM_SIZE variable

2021-06-14 Thread Daniel Pereira Carvalho
sors/stm32g431k8.html > > BR, > > ALan > > On 6/14/21, Daniel Pereira Carvalho wrote: > > Hi, > > > > I've been working on NuttX support for nucleo-g431kb. This work is based > on > > nucleo-g431rb, which is pretty similar, both boards have the same amou

CONFIG_RAM_SIZE variable

2021-06-14 Thread Daniel Pereira Carvalho
Hi, I've been working on NuttX support for nucleo-g431kb. This work is based on nucleo-g431rb, which is pretty similar, both boards have the same amount of flash and ram memory (128K flash and 32K RAM). Looking at defconfig files I noted that the variable CONFIG_RAM_SIZE is setted to 22528 (22K

Re: external board build failure

2021-05-20 Thread Daniel Pereira Carvalho
I've just tested the external board build following these simple steps. 1 - Clone nuttx and nuttx-apps on base dir 2 - Created a new dir called board $ mkir board $ cd board 3 - Copied nucleo-l432kc board directory $ cp -r ../nuttx/boards/arm/stm32l4/nucleo-l432kc/ ./ 4 - Configure

Re: select()/pselect() function

2020-11-20 Thread Daniel Pereira Carvalho
orever as you give it back all-zeroes descriptor set to > monitor. > > Best Regards, >Juha Niskanen > > > ____ > From: Daniel Pereira Carvalho > Sent: Friday, November 20, 2020 7:26 PM > To: dev@nuttx.apache.org > Subject: Re: select()/ps

Re: select()/pselect() function

2020-11-20 Thread Daniel Pereira Carvalho
gt; On 11/20/2020 11:13 AM, Daniel Pereira Carvalho wrote: > > Hi Greg, > > > > Thanks for the answer. I don't understand why I should use 1 instead of > > fs + 1. The documentation says > > > > "nfds This argument should be set to the highest-numbered

Re: select()/pselect() function

2020-11-20 Thread Daniel Pereira Carvalho
Hi Greg, Thanks for the answer. I don't understand why I should use 1 instead of fs + 1. The documentation says "nfds This argument should be set to the highest-numbered file descriptor in any of the three sets, plus 1. " In the portserial.c nfds was set to fd + 1 Daniel Pereira de Carvalho

select()/pselect() function

2020-11-20 Thread Daniel Pereira Carvalho
Hi, I'm trying to read some bytes through the serial port. I am using the following code int fd; int s_rc; fd_set rset; uint32_t count; uint8_t rd_data[16]; struct timeval tv; fd = open("/dev/ttyS1", O_RDWR | O_NOCTTY); if (fd == -1) { fprintf(stderr, "ERROR: Cannot

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Daniel Pereira Carvalho
Maybe you could propose a modification on ADC upper-half driver to enable overwriting. So, if the FIFO is full the oldest value is replaced by the new one. This could be an option on the config system. At this moment I am working on STM32L4 ADC driver. I am implementing the low level operations,

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Daniel Pereira Carvalho
If I understand well, you want to put the ADC to continuously sample an input at some sampling rate.The ADC ring buffer depth will be set to 1 and should store the value of the last sample. Is that correct? If yes I think that is not possible because adc_receive() will refuse new data if FIFO is

Re: Cannot build H7 configuration using Ubuntu for Windows 10

2020-10-17 Thread Daniel Pereira Carvalho
I am using Ubuntu 20.04 on WSL with CONFIG_HOST_LINUX. I had no problems up to now. Daniel Pereira de Carvalho Em sáb., 17 de out. de 2020 às 15:15, Xiang Xiao escreveu: > BTW, since Ubuntu for Windows 10 is same as Native Ubuntu, should we > remove CONFIG_WINDOWS_UBUNTU(-u) support and let

Re: mbedtls

2020-05-22 Thread Daniel Pereira Carvalho
What about a new 3rd party folder? Em sex, 22 de mai de 2020 09:41, Alan Carvalho de Assis escreveu: > Hi Xiang, > > On 5/22/20, Xiang Xiao wrote: > sic > > > > But mbedtls can be used in more context than HTTPS/TLS like security > > boot, OTA and TEE, it doesn't make sense to put into

Re: Algorithm and Nuttx integration other platforms AI..Kalman..et....

2020-04-17 Thread Daniel Pereira Carvalho
Hi, Did you think about an asymmetric multiprocessor? This way you can use a Cortex-M4 with nuttx and a Cortex-A5/A7 to run the sensor fusion algorithm. Daniel Pereira de Carvalho Em sex., 17 de abr. de 2020 às 08:54, escreveu: > All, > > > > I want to experiment with sensor fusion. Nuttx is

Re: Add support to LPTIM2 PWM output on nucleo-l432kc

2020-01-09 Thread Daniel Pereira Carvalho
No problem. You and the community are doing a great job. Thanks for the effort Daniel Pereira de Carvalho Em qui., 9 de jan. de 2020 às 18:24, Gregory Nutt escreveu: > Daniel, > > > > > > > The following patch add support to LPTIM2 PWM output on > > nucleo-l432kc. > > > Committed,

Re: Add support to LPTIM2 PWM output on nucleo-l432kc

2020-01-09 Thread Daniel Pereira Carvalho
Daniel Pereira de Carvalho Em qui., 9 de jan. de 2020 às 16:59, Gregory Nutt escreveu: > > > The following patch add support to LPTIM2 PWM output on nucleo-l432kc. > > I don't see anything attached. Currently dev@nuttx.apache.org is > removing attachments with the extension. I know that is a

Add support to LPTIM2 PWM output on nucleo-l432kc

2020-01-09 Thread Daniel Pereira Carvalho
Hi, The following patch add support to LPTIM2 PWM output on nucleo-l432kc. Thanks Daniel Pereira de Carvalho

Path to fix STM32L4 build issue

2020-01-09 Thread Daniel Pereira Carvalho
Hi, The following patch fix STM32L4 PWM build issue. Thanks Daniel Pereira de Carvalho From efee42f51054a75e5ea1594d1da244e13fc0a79a Mon Sep 17 00:00:00 2001 From: "Daniel P. Carvalho" Date: Thu, 9 Jan 2020 13:43:27 -0300 Subject: [PATCH] Fix stm32_pwm.c build error, 'OK' undeclared. ---

Re: Please test SmartFS

2020-01-09 Thread Daniel Pereira Carvalho
Hi Alan, I can help with these tests. Did you have a test set or suggestions about the test? Thanks Daniel Pereira de Carvalho Em qui., 9 de jan. de 2020 às 10:37, Alan Carvalho de Assis < acas...@gmail.com> escreveu: > Hi Everyone, > > Please test the SmartFS for confirm it still working