Re: ADXL372 sensor test fail

2020-12-11 Thread Alan Carvalho de Assis
You need to enable the Sensors debug to see these sensor's messages: $ make menuconfig Build Setup ---> Debug Options ---> [*] Enable Debug Features [*] Enable Error Output [*] Enable Warnings Output [*] Enable Informational Debug Output [*] Sensor Debug Features [*] Sensor

Build environment using cmake, c++ and NuttX as a library

2020-12-11 Thread Flavio Castro Alves Filho
Hello, Has anybody here used NuttX as a library and a C++ project with cmake? I tried to create a project (using hellocxx example) with this setup, but I was not successful. I can build, but I cannot link. My link errors are the following: [ 33%] Linking CXX executable hellocpp /usr/lib/gcc/a

Re: Build environment using cmake, c++ and NuttX as a library

2020-12-11 Thread Marc Rosen
Hi Flavio, well I think there are two problems: 1. it seems either you are missing libarch.a or you have a library order problem. Because ld can not find up_exit etc. those are arch specific functions. 2. I would recommend you to add the flag -nostdlib. At least it is going to avoid newlib sy

Re: Error with stm32f4discovery:usbnsh

2020-12-11 Thread Gregory Nutt
Several other PRs specifically removed support for fclose (stdin).  Are you certain you want to restore it?  I think this needs more analysis and resolution with the previous changes that removed the fclose() of stdin, stdout, and stderr. On 12/10/2020 5:37 PM, Masayuki Ishikawa wrote: Suzuki

/dev/i2c* and /dev/spi* missing - why?

2020-12-11 Thread Frank-Christian Kruegel
Hi. Platform: STM32H743 Nucleo144 board. I've enabled in menuconfig: System Type:     STM32H7 Peripherial Selection: I2C1 and I2C2, SPI->SYSCFG     I2C Configuration: defaults Device Drivers:     I2C Configuration: (enabled)         Support I2C reset enabled         I2C character driver e

Re: /dev/i2c* and /dev/spi* missing - why?

2020-12-11 Thread Alan Carvalho de Assis
Hi Frank-Christian, You need to i2c_register() to be called during the boot. Please take a look at boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c for more details. BR, Alan On 12/11/20, Frank-Christian Kruegel wrote: > Hi. > > Platform: STM32H743 Nucleo144 board. > > I've enabled in me

Re: Build environment using cmake, c++ and NuttX as a library

2020-12-11 Thread Flavio Castro Alves Filho
Hello Marc, Thank you for your response. In fact, it was a little more than that: I didn't set the library group in cmake and also didn't set the correct linker. Solving these issues, I could have it working and running. Thank you very much. Best regards, Flavio Em sex., 11 de dez. de 2020