Fwd: adxl372_test SPI Configuration
Hi, I would like to test stm32f4discovery with adxl372_test. How to hook up the module with STM32F4Discovery board? If I want to change SPI, how I can do it. Please advise. Thanks. -- Yours Sincerely, Thiha Kyaw -- Yours Sincerely, Thiha Kyaw
Re: adxl372_test SPI Configuration
Hi Thiha, First you need to create a stm32_adxl345.c to call the SPIn that you want to initialize/use and initialize the adxl372 driver passing this spi interface. Please look at boards/arm/kl/freedom-kl25z/src/kl_adxl345.c to see how it is done for other board. Note that ADXL345 also uses an interruption pin, so you need to do it too, the functions name for stm32 arch is a different function (stm32_gpiosetevent). Look other examples inside boards/arm/stm32/stm32f4discovery/src and you will get it. I suggest you to create the driver inside boards/arm/stm32/common/src/ to be generic for all other stm32 boards. This is relatively recent modification that simplifies the board association with sensors. About which SPI pins to hook up, it will depend on what SPIn you are using and you can create a define inside "boards/arm/stm32/stm32f4discovery/include/board.h" Example: #define GPIO_SPI1_MISOGPIO_SPI1_MISO_1 #define GPIO_SPI1_MOSIGPIO_SPI1_MOSI_1 #define GPIO_SPI1_SCK GPIO_SPI1_SCK_1 You can "git grep" for these *_1 symbols to discovery where they were declared. This is an way to learn more about NuttX. BR, Alan On 12/2/20, Thiha Kyaw wrote: > Hi, > > I would like to test stm32f4discovery with adxl372_test. > > How to hook up the module with STM32F4Discovery board? > > If I want to change SPI, how I can do it. > > Please advise. > > Thanks. > > -- > Yours Sincerely, > Thiha Kyaw > > > -- > Yours Sincerely, > Thiha Kyaw >
stm32F407G-disc1 USBNSH Doesn't work
Dear Nuttx, USBNSH console does not work in stm32F407G-disc1 Board. stm32F407G-disc1 is upgraded version of stm32f4discovery board. I only see the serial port from STLINK. How can I get nuttx serial port from USB? I use Ubuntu 18.04 Thanks. -- Yours Sincerely, Thiha Kyaw
Re: stm32F407G-disc1 USBNSH Doesn't work
Hi Thiha, I don't know what you mean "does not work". It is like someone calling the Help Desk and saying: "My computer doesn't work" Hehehe You need to describe what exactly is not working based on the steps you are doing. After flashing the firmware and resetting the board, does the dmesg command on Linux shows that a CDC/ACM ttyUSB0 device was detected? Just a dump question: Did you hit three times after opening /dev/ttyUSB0 on minicom? BR, Alan On 12/2/20, Thiha Kyaw wrote: > Dear Nuttx, > > USBNSH console does not work in stm32F407G-disc1 Board. > > stm32F407G-disc1 is upgraded version of stm32f4discovery board. > > I only see the serial port from STLINK. > > How can I get nuttx serial port from USB? > > I use Ubuntu 18.04 > > Thanks. > > -- > Yours Sincerely, > Thiha Kyaw >
Re: stm32F407G-disc1 USBNSH Doesn't work
It is also worth checking here are you connecting to both USB ports on the board? That configuration will expose a CDC/ACM device on the non-debug USB port on the board. It is also worth noting that they made a slight change to the design around the debugger in that version so you can also get the UART via ST-Link port and (I believe) be able to just use that with the NSH (non usb) configuration to get the console. --Brennan On Wed, Dec 2, 2020 at 9:41 AM Alan Carvalho de Assis wrote: > > Hi Thiha, > > I don't know what you mean "does not work". > > It is like someone calling the Help Desk and saying: "My computer > doesn't work" Hehehe > > You need to describe what exactly is not working based on the steps > you are doing. > > After flashing the firmware and resetting the board, does the dmesg > command on Linux shows that a CDC/ACM ttyUSB0 device was detected? > > Just a dump question: > > Did you hit three times after opening /dev/ttyUSB0 on minicom? > > BR, > > Alan > > On 12/2/20, Thiha Kyaw wrote: > > Dear Nuttx, > > > > USBNSH console does not work in stm32F407G-disc1 Board. > > > > stm32F407G-disc1 is upgraded version of stm32f4discovery board. > > > > I only see the serial port from STLINK. > > > > How can I get nuttx serial port from USB? > > > > I use Ubuntu 18.04 > > > > Thanks. > > > > -- > > Yours Sincerely, > > Thiha Kyaw > >
Re: stm32F407G-disc1 USBNSH Doesn't work
Yes, good point! The USB at the bottom of the board is the USB that will work as USB CDC/ACM Console. BR, Alan On 12/2/20, Brennan Ashton wrote: > It is also worth checking here are you connecting to both USB ports on > the board? That configuration will expose a CDC/ACM device on the > non-debug USB port on the board. > > It is also worth noting that they made a slight change to the design > around the debugger in that version so you can also get the UART via > ST-Link port and (I believe) be able to just use that with the NSH > (non usb) configuration to get the console. > > --Brennan > > On Wed, Dec 2, 2020 at 9:41 AM Alan Carvalho de Assis > wrote: >> >> Hi Thiha, >> >> I don't know what you mean "does not work". >> >> It is like someone calling the Help Desk and saying: "My computer >> doesn't work" Hehehe >> >> You need to describe what exactly is not working based on the steps >> you are doing. >> >> After flashing the firmware and resetting the board, does the dmesg >> command on Linux shows that a CDC/ACM ttyUSB0 device was detected? >> >> Just a dump question: >> >> Did you hit three times after opening /dev/ttyUSB0 on minicom? >> >> BR, >> >> Alan >> >> On 12/2/20, Thiha Kyaw wrote: >> > Dear Nuttx, >> > >> > USBNSH console does not work in stm32F407G-disc1 Board. >> > >> > stm32F407G-disc1 is upgraded version of stm32f4discovery board. >> > >> > I only see the serial port from STLINK. >> > >> > How can I get nuttx serial port from USB? >> > >> > I use Ubuntu 18.04 >> > >> > Thanks. >> > >> > -- >> > Yours Sincerely, >> > Thiha Kyaw >> > >
Re: [VOTE] Apache NuttX 10.0.0 (incubating) RC0 release
Hi, +1 (binding) but a lot more needs to be done on the LICENSE and headers I checked: - incubating in name - DISCLAIMER exists - a good start have been made on LICENSE - NOTICE looks fine - No unexpected binary files - More work needs to be done on adding ASF headers I not sure that using key with a short expiry date is a good idea. Think the problem is that unless the KEYS file is updated regularly it quite possible for someone to get an error message that the key has expired. Re the notices in NOTICE I think these are probably OK as they could be considered optional, but would be best to try and get the license terms changed. If that can’t be done I would do as suggested double check on legal discuss. Thanks, Justin
Re: stm32F407G-disc1 USBNSH Doesn't work
Dear Alan, I am switching back to normal nsh. But I want to update a bit. I got ttyACM1 after building using the latest Nuttx. ttyACM0 is from STLINK. But nsh> shell doesn't appear. After hitting a few times, the serial terminal is freezed. I have another board, STM32F429i-Disco. I didn't face this problem in F429i Board. stm32F407G-disc1 mini USB is at FS USB mode. TM32F429i-Disco's mini usb is at HS USB mode. I am not sure it could be the problem in usbnsh configuration. @Berennan, STLINK chip on stm32F407G-disc1 does not connect to any UART port. That's why STLINK port cannot use as a console as well. It is very special case. Thank you. Regards, Thiha On Thu, Dec 3, 2020 at 3:24 AM Alan Carvalho de Assis wrote: > Yes, good point! > > The USB at the bottom of the board is the USB that will work as USB > CDC/ACM Console. > > BR, > > Alan > > On 12/2/20, Brennan Ashton wrote: > > It is also worth checking here are you connecting to both USB ports on > > the board? That configuration will expose a CDC/ACM device on the > > non-debug USB port on the board. > > > > It is also worth noting that they made a slight change to the design > > around the debugger in that version so you can also get the UART via > > ST-Link port and (I believe) be able to just use that with the NSH > > (non usb) configuration to get the console. > > > > --Brennan > > > > On Wed, Dec 2, 2020 at 9:41 AM Alan Carvalho de Assis > > > wrote: > >> > >> Hi Thiha, > >> > >> I don't know what you mean "does not work". > >> > >> It is like someone calling the Help Desk and saying: "My computer > >> doesn't work" Hehehe > >> > >> You need to describe what exactly is not working based on the steps > >> you are doing. > >> > >> After flashing the firmware and resetting the board, does the dmesg > >> command on Linux shows that a CDC/ACM ttyUSB0 device was detected? > >> > >> Just a dump question: > >> > >> Did you hit three times after opening /dev/ttyUSB0 on minicom? > >> > >> BR, > >> > >> Alan > >> > >> On 12/2/20, Thiha Kyaw wrote: > >> > Dear Nuttx, > >> > > >> > USBNSH console does not work in stm32F407G-disc1 Board. > >> > > >> > stm32F407G-disc1 is upgraded version of stm32f4discovery board. > >> > > >> > I only see the serial port from STLINK. > >> > > >> > How can I get nuttx serial port from USB? > >> > > >> > I use Ubuntu 18.04 > >> > > >> > Thanks. > >> > > >> > -- > >> > Yours Sincerely, > >> > Thiha Kyaw > >> > > > > -- Yours Sincerely, Thiha Kyaw
Re: [VOTE] Apache NuttX 10.0.0 (incubating) RC0 release
Hi Justin, Did you intend to vote on the IPMC thread? Thanks, Nathan On Wed, Dec 2, 2020 at 9:11 PM Justin Mclean wrote: > Hi, > > +1 (binding) but a lot more needs to be done on the LICENSE and headers > > I checked: > - incubating in name > - DISCLAIMER exists > - a good start have been made on LICENSE > - NOTICE looks fine > - No unexpected binary files > - More work needs to be done on adding ASF headers > > I not sure that using key with a short expiry date is a good idea. Think > the problem is that unless the KEYS file is updated regularly it quite > possible for someone to get an error message that the key has expired. > > Re the notices in NOTICE I think these are probably OK as they could be > considered optional, but would be best to try and get the license terms > changed. If that can’t be done I would do as suggested double check on > legal discuss. > > Thanks, > Justin
Re: [VOTE] Apache NuttX 10.0.0 (incubating) RC0 release
Hi, > Did you intend to vote on the IPMC thread? I did I’ll move it there. Thanks, Justin