Re: How can I use I2C?

2021-05-01 Thread yuta
Hi Alan, Thank you for the information! --- My understanding for now is below. (For nucleo-F767 board) - An initialization file is lying in nuttx/boards/arm/stm32f7/nucleo-144/src/stm32_appinitialize.c. (Contents in this file is executed when launching NuttX.) - Initialization code for specif

Re: [VOTE] Apache NuttX 10.1.0 (incubating) RC1 release

2021-05-01 Thread Alin Jerpelea
I created the PR for this fix and I will create RC again if there are no other concerns Thanks Alin On Sat, May 1, 2021, 14:13 Alan Carvalho de Assis wrote: > Yes, this fix is important for all RISC-V MCUs > > BR, > > Alan > > On Saturday, May 1, 2021, Gustavo Henrique Nihei > wrote: > > > Hi

Re: [VOTE] Apache NuttX 10.1.0 (incubating) RC1 release

2021-05-01 Thread Alan Carvalho de Assis
Yes, this fix is important for all RISC-V MCUs BR, Alan On Saturday, May 1, 2021, Gustavo Henrique Nihei wrote: > Hi folks, > > I believe we still need to backport this PR > https://github.com/apache/incubator-nuttx/pull/3636 (already labelled) > It is a complement to > https://github.com/apac

Re: How can I use I2C?

2021-05-01 Thread Alan Carvalho de Assis
Hi Yuta, stm32_mpu9250initialize("/dev/mpu0"); This function receive the name of the device file it will creste. The /dev/i2cX is created by the funcion i2c_register(). BR, Alan On Saturday, May 1, 2021, yuta wrote: > Gregory, > > Thank you for your answer. > I think I'm asking very easy que

Re: [VOTE] Apache NuttX 10.1.0 (incubating) RC1 release

2021-05-01 Thread Gustavo Henrique Nihei
Hi folks, I believe we still need to backport this PR https://github.com/apache/incubator-nuttx/pull/3636 (already labelled) It is a complement to https://github.com/apache/incubator-nuttx/pull/3614, which has been recently backported. Both address the issue of stack alignment for RISC-V chips. B

Re: How can I use I2C?

2021-05-01 Thread yuta
Gregory, Thank you for your answer. I think I'm asking very easy question since I'm very new to NuttX. I'm not still sure how I can enable an I2C device. I understood that there are lower-half driver and upper-half driver and they should be associated each other with initialization code. Refer

Re: How can I use I2C?

2021-05-01 Thread yuta
Abdelatif, Thank you for your advice. I enabled I2C tool in menuconfig. Then I added some lines to initialize I2C in stm32_appinitialize.c refering to the link you shared. https://github.com/apache/incubator-nuttx/blob/master/boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_bringup.c#L89-L111 st