Re: nuttx lora sx127x device use for help
Are you talking about here, with two devices, one set to APP_MODE_RX and the other set to APP_MODE_TX? apps\examples\sx127x_demo\sx127x_demo.c int main(int argc, FAR char *argv[]) { #ifdef CONFIG_LPWAN_SX127X_RXSUPPORT struct sx127x_read_hdr_s data; #endif struct sx127x_chanscan_ioc_s chanscan; struct args_s *args; struct timespec tstart; struct timespec tnow; uint8_t buffer[TX_BUFFER_MAX]; uint8_t opmode; uint8_t i; int ret; int fd; /* Initialize buffer with data */ for (i = 0; i app_mode = APP_MODE_RX; args->modulation = APP_MODULATION_LORA; args->frequency = CONFIG_EXAMPLES_SX127X_RFFREQ; args->power = CONFIG_EXAMPLES_SX127X_TXPOWER; args->interval = CONFIG_EXAMPLES_SX127X_INTERVAL; args->time = CONFIG_EXAMPLES_SX127X_TIME; args->datalen= CONFIG_EXAMPLES_SX127X_TXDATA; On 3/1/2022 00:00,MIGUEL ALEXANDRE WISINTAINER wrote: Looks that there are two app examples, one sender and other receiver Enviado do meu iPhone Em 28 de fev. de 2022, à(s) 12:00, 经天纬地 escreveu: Then I use two same STM32 boards to test Lora sx127x, one for receiving and one for sending. How should I set it, in nuttx code or menuconfig? 回复的原邮件 | 发件人 | MIGUEL ALEXANDRE WISINTAINER | | 日期 | 2022年02月28日 21:55 | | 收件人 | 经天纬地 | | 抄送至 | | | 主题 | Re: nuttx lora sx127x device use for help | Well, I tested the receive with other module transmitting lora, but not running NUTTX Enviado do meu iPhone Em 28 de fev. de 2022, à(s) 09:28, 经天纬地 escreveu: sx127x has been executed successfully。The operation information is as follows: nsh> sx127x Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Waiting for data But keep waiting for data,There should be more than two devices for communication here. How to set it up?
Re: Using Nuttx with the CORTEXM33 STM32U5
Ok I see it now, thank you. I will relay this information and get back to Michael about next steps. Thank you very much for your responses! On Fri, Feb 25, 2022 at 10:19 PM Michael Jung wrote: > Hi Aaron, > > you can see the mail trail Alan is referring to at > https://www.mail-archive.com/dev@nuttx.apache.org/msg07551.html > > Go Buffs! > Michael > > Am Sa., 26. Feb. 2022 um 00:40 Uhr schrieb Alan Carvalho de Assis < > acas...@gmail.com>: > >> Hi Aaron, >> >> Maybe you are not receiving message from NuttX mailing list... >> >> Many people replied your email and Michael Jung submitted the support >> to STM32U5. >> >> Please take a look at NuttX's github repo. >> >> BR, >> >> Alan >> >> On 2/24/22, Aaron Rito wrote: >> > Just following up on this as we haven't heard back. Thank you. >> > >> > On Wed, Feb 9, 2022 at 2:07 PM Aaron Rito wrote: >> > >> >> To whom it may concern, >> >> >> >> I am reaching out on behalf of my organization (GEOTAB) regarding >> kernel >> >> support for the CORTEXM33, specifically the STM32U5 MCU. We are curious >> >> if >> >> there are any plans to offer support for this chipset or if there may >> be >> >> an >> >> avenue for us to contribute to one if no plans exist. We thank you and >> >> look >> >> forward to your response. >> >> >> >> -- >> >> Aaron Rito >> >> Lat-Lon, a Geotab Company >> >> Embedded Engineer | BS Electrical and Computer Engineering >> >> Direct +1 (XXX) XXX- >> >> Toll-free +1 (800) 397-7102 >> >> Visit www.geotab.com >> >> >> > >> > >> > -- >> > Aaron Rito >> > Lat-Lon, a Geotab Company >> > Embedded Engineering Team Lead | >> > BS Electrical and Computer Engineering >> > Direct +1 (XXX) XXX- >> > Toll-free +1 (800) 397-7102 >> > Visit www.geotab.com >> > >> > -- Aaron Rito Lat-Lon, a Geotab Company Embedded Engineering Team Lead | BS Electrical and Computer Engineering Direct +1 (XXX) XXX- Toll-free +1 (800) 397-7102 Visit www.geotab.com
Re: nuttx lora sx127x device use for help
Then I use two same STM32 boards to test Lora sx127x, one for receiving and one for sending. How should I set it, in nuttx code or menuconfig? 回复的原邮件 | 发件人 | MIGUEL ALEXANDRE WISINTAINER | | 日期 | 2022年02月28日 21:55 | | 收件人 | 经天纬地 | | 抄送至 | | | 主题 | Re: nuttx lora sx127x device use for help | Well, I tested the receive with other module transmitting lora, but not running NUTTX Enviado do meu iPhone Em 28 de fev. de 2022, à(s) 09:28, 经天纬地 escreveu: sx127x has been executed successfully。The operation information is as follows: nsh> sx127x Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Waiting for data But keep waiting for data,There should be more than two devices for communication here. How to set it up?
nuttx lora sx127x device use for help
sx127x has been executed successfully nsh> sx127x Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Waiting for data But keep waiting for data,There should be more than two devices for communication here. How to set it up?
RE: Graduation?
Hi all, I am happy to announce that the licenses are migrated to Apache and the remaining ones are documented in the LICENSE file It would be good If someone can run a FOSSID scan to double check the licenses (in case I missed something) then I think that we can remove the DISCLAIMER-WIP from NuttX and start the NuttX 10.3 release process Best regards Alin -Original Message- From: Nathan Hartman Sent: den 9 februari 2022 19:14 To: dev@nuttx.apache.org Subject: Re: Graduation? On Wed, Feb 9, 2022 at 12:30 PM Brennan Ashton wrote: > There is also some code still in the repo with restrictions on use to > a single microcontroller. That have come up in votes before. Can we wrap code like that with a Kconfig, e.g., ALLOW_NONFREE_CODE, like we already have for GPL and BSD components? Cheers, Nathan
Re: nuttx lora sx127x device use for help
You just need two devices a tx and a rx. Look the sx127x demo app source code, you need to run the other as tx. BR, Alan On Monday, February 28, 2022, 王国柱 wrote: > > sx127x has been executed successfully > nsh> sx127x > Start sx127x_demo > LORA modulation > Set frequency to 93000 > Set power to 14 > Waiting for data > > But keep waiting for data,There should be more than two devices for > communication here. How to set it up? > > > >
NuttX and C++ libraries: boost / ASIO / std::chrono
Hello team, I would like to ask who has used C++ libraries with NuttX. For example if I have a C++ application that is based on boost and std::chrono then what should be a good way of starting it with NuttX? Best regards, Petro
Re: NuttX and C++ libraries: boost / ASIO / std::chrono
We use both uClibc++ and libc++, both work fine. But never try the boost library. On Wed, Mar 2, 2022 at 9:16 PM Petro Karashchenko < petro.karashche...@gmail.com> wrote: > Hello team, > > I would like to ask who has used C++ libraries with NuttX. For example > if I have a C++ application that is based on boost and std::chrono > then what should be a good way of starting it with NuttX? > > Best regards, > Petro >
Re: nuttx lora sx127x device use for help
If you configure created the initialization file, like: boards/arm/stm32/stm32f4discovery/src/stm32_sx127x.c And added the SPI chip to control your device, see CONFIG_LPWAN_SX127X at: see boards/arm/stm32/stm32f4discovery/src/stm32_spi.c Then the communication should work. Do you have a logic analyzer to see if there is communication over SPI line? BR, Alan On 3/2/22, Prelude wrote: > That's what it used to be, but I used two boards to execute sx127x -r on one > of the boards and sx127x -t on the other, expecting communication between > the two boards, but it didn't work as expected . Do you need any other > configuration? > the first board: > nsh> sx127x -t > Start sx127x_demo > LORA modulation > Set frequency to 93000 > Set power to 14 > > Send 5 bytes > > the sencond boad: > nsh> sx127x -r > Start sx127x_demo > LORA modulation > Set frequency to 93000 > Set power to 14 > Waiting for data > > > It looks like it's stuck, and the message sent is not received. > > > Is there something wrong with my configuration? Can you help me have a look? > I've been doing it for a long time and haven't done it yet. >
Error when building custom board
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 link called external inside apps folder. To create a new custom board I start copying a similar board (e.g nucleo-g431kb) to my-boards folder and make the following changes *remove from defconfig:* CONFIG_ARCH_BOARD="nucleo-g431kb" CONFIG_ARCH_BOARD_NUCLEO_G431KB=y *add on defconfig:* CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM_DIR="../my-folder/my-boards/custom-board" CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y CONFIG_ARCH_BOARD_CUSTOM_NAME="custom-board" *Rename src/Make.defs to src/Makefile and append the line * include $(TOPDIR)/boards/Board.mk at the end of file. This works well for me up to Nuttx version 10.2.0 but now when I try to make I got the errors make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' Create version.h make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards' make[2]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' Makefile:23: board/Make.defs: No such file or directory make[2]: *** No rule to make target 'board/Make.defs'. Stop. make[2]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' make[1]: *** [Makefile:79: context] Error 2 make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards' make: *** [tools/Unix.mk:425: boards/.context] Error 2 Does anyone know how to fix this problem? Thanks Daniel Pereira de Carvalho
Re: nuttx lora sx127x device use for help
That's what it used to be, but I used two boards to execute sx127x -r on one of the boards and sx127x -t on the other, expecting communication between the two boards, but it didn't work as expected . Do you need any other configuration? the first board: nsh> sx127x -t Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Send 5 bytes the sencond boad: nsh> sx127x -r Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Waiting for data It looks like it's stuck, and the message sent is not received. Is there something wrong with my configuration? Can you help me have a look? I've been doing it for a long time and haven't done it yet.
Re: nuttx lora sx127x device use for help
I tested the two devices with an oscilloscope and both have signals, but there is no communication between the two devices. One is always sending data, and the other is waiting to receive data. Does the communication between the two devices need to be networked first? That's what it used to be, but I used two boards to execute sx127x -r on one of the boards and sx127x -t on the other, expecting communication between the two boards, but it didn't work as expected . Do you need any other configuration? the first board: nsh> sx127x -t Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Send 5 bytes the sencond boad: nsh> sx127x -r Start sx127x_demo LORA modulation Set frequency to 93000 Set power to 14 Waiting for data
Re: Error when building custom board
Hi, Do you want to use board common code? There where some code tree restructurings to eliminate code duplication. There is an option to enable/disable common code in menu config. Please try to use it and feedback if it helps you. Best regards, Petro On Thu, Mar 3, 2022, 12:06 AM Daniel Pereira Carvalho wrote: > 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 link called external > inside apps folder. To create a new custom board I start copying a similar > board (e.g nucleo-g431kb) to my-boards folder and make the following > changes > > *remove from defconfig:* > CONFIG_ARCH_BOARD="nucleo-g431kb" > CONFIG_ARCH_BOARD_NUCLEO_G431KB=y > > *add on defconfig:* > CONFIG_ARCH_BOARD_CUSTOM=y > CONFIG_ARCH_BOARD_CUSTOM_DIR="../my-folder/my-boards/custom-board" > CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y > CONFIG_ARCH_BOARD_CUSTOM_NAME="custom-board" > > *Rename src/Make.defs to src/Makefile and append the line * > include $(TOPDIR)/boards/Board.mk at the end of file. > > This works well for me up to Nuttx version 10.2.0 but now when I try to > make I got the errors > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' > Create version.h > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards' > make[2]: Entering directory > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' > Makefile:23: board/Make.defs: No such file or directory > make[2]: *** No rule to make target 'board/Make.defs'. Stop. > make[2]: Leaving directory > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' > make[1]: *** [Makefile:79: context] Error 2 > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards' > make: *** [tools/Unix.mk:425: boards/.context] Error 2 > > Does anyone know how to fix this problem? > > Thanks > > Daniel Pereira de Carvalho >
Re: Error when building custom board
Please check the common/Make.defs file in-tree of the board you based your custom board on. There is a new variable introduced. (Sorry, writing from my phone. I'll try to send a direct link later.) On Thu, Mar 3, 2022, 07:10 Petro Karashchenko wrote: > Hi, > > Do you want to use board common code? There where some code tree > restructurings to eliminate code duplication. There is an option to > enable/disable common code in menu config. Please try to use it and > feedback if it helps you. > > Best regards, > Petro > > > On Thu, Mar 3, 2022, 12:06 AM Daniel Pereira Carvalho > > wrote: > > > 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 link called external > > inside apps folder. To create a new custom board I start copying a > similar > > board (e.g nucleo-g431kb) to my-boards folder and make the following > > changes > > > > *remove from defconfig:* > > CONFIG_ARCH_BOARD="nucleo-g431kb" > > CONFIG_ARCH_BOARD_NUCLEO_G431KB=y > > > > *add on defconfig:* > > CONFIG_ARCH_BOARD_CUSTOM=y > > CONFIG_ARCH_BOARD_CUSTOM_DIR="../my-folder/my-boards/custom-board" > > CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y > > CONFIG_ARCH_BOARD_CUSTOM_NAME="custom-board" > > > > *Rename src/Make.defs to src/Makefile and append the line * > > include $(TOPDIR)/boards/Board.mk at the end of file. > > > > This works well for me up to Nuttx version 10.2.0 but now when I try to > > make I got the errors > > > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' > > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' > > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' > > Create version.h > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards' > > make[2]: Entering directory > > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' > > Makefile:23: board/Make.defs: No such file or directory > > make[2]: *** No rule to make target 'board/Make.defs'. Stop. > > make[2]: Leaving directory > > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' > > make[1]: *** [Makefile:79: context] Error 2 > > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards' > > make: *** [tools/Unix.mk:425: boards/.context] Error 2 > > > > Does anyone know how to fix this problem? > > > > Thanks > > > > Daniel Pereira de Carvalho > > >
Re: Error when building custom board
HI, Not sure what is the correct way to fix this, but I reverted: " commit f77956a227f1db6ecb44eda3814e7b02aa2187a6 Author: Petro Karashchenko Date: Wed Jan 19 11:16:11 2022 +0200 tools: add option to reuse boards common files for custom boards Signed-off-by: Petro Karashchenko " Petro, what is the proper way to configure this? Thanks, Jukka On 3.3.2022 0.06, Daniel Pereira Carvalho wrote: 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 link called external inside apps folder. To create a new custom board I start copying a similar board (e.g nucleo-g431kb) to my-boards folder and make the following changes *remove from defconfig:* CONFIG_ARCH_BOARD="nucleo-g431kb" CONFIG_ARCH_BOARD_NUCLEO_G431KB=y *add on defconfig:* CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM_DIR="../my-folder/my-boards/custom-board" CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y CONFIG_ARCH_BOARD_CUSTOM_NAME="custom-board" *Rename src/Make.defs to src/Makefile and append the line * include $(TOPDIR)/boards/Board.mk at the end of file. This works well for me up to Nuttx version 10.2.0 but now when I try to make I got the errors make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' Create version.h make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards' make[2]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' Makefile:23: board/Make.defs: No such file or directory make[2]: *** No rule to make target 'board/Make.defs'. Stop. make[2]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' make[1]: *** [Makefile:79: context] Error 2 make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards' make: *** [tools/Unix.mk:425: boards/.context] Error 2 Does anyone know how to fix this problem? Thanks Daniel Pereira de Carvalho
Re: Error when building custom board
Hello Jukka, So you experience the same problem as Daniel and reverting the commit helps? Before f77956a227f1db6ecb44eda3814e7b02aa2187a6 there was no way to reuse common code from "nuttx/board/...". I'm using a custom board based on SAME70 and after https://github.com/apache/incubator-nuttx/pull/4981 I found my code tree broken. Now the folder structure for "boards/arm/samv7" is the same as in "boards/arm/stm32". Here is what I did to get it back running: 1. Synced "custom-board/scripts/Make.defs" with "boards/arm/samv7/same70-xplained/scripts/Make.defs" 2. Renamed "custom-board/src/Makefile" to "custom-board/src/Make.defs" and synced with "boards/arm/samv7/same70-xplained/src/Make.defs" 3. Removed files in my code tree that have exactly the same implementation as files from "boards/arm/samv7/common" It seems like Daniel is hitting the same issue, so I expect that renaming Makefile to Make.defs plus setting "BOARD_STM32_COMMON=n" should fix the issue without any additional file clean-up. Please give me feedback if that helps. Best regards, Petro чт, 3 бер. 2022 р. о 07:40 Jukka Laitinen пише: > > HI, > > Not sure what is the correct way to fix this, but I reverted: > > " > > commit f77956a227f1db6ecb44eda3814e7b02aa2187a6 > Author: Petro Karashchenko > Date: Wed Jan 19 11:16:11 2022 +0200 > > tools: add option to reuse boards common files for custom boards > > Signed-off-by: Petro Karashchenko > " > > Petro, what is the proper way to configure this? > > Thanks, > > Jukka > > > > On 3.3.2022 0.06, Daniel Pereira Carvalho wrote: > > > 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 link called external > > inside apps folder. To create a new custom board I start copying a similar > > board (e.g nucleo-g431kb) to my-boards folder and make the following changes > > > > *remove from defconfig:* > > CONFIG_ARCH_BOARD="nucleo-g431kb" > > CONFIG_ARCH_BOARD_NUCLEO_G431KB=y > > > > *add on defconfig:* > > CONFIG_ARCH_BOARD_CUSTOM=y > > CONFIG_ARCH_BOARD_CUSTOM_DIR="../my-folder/my-boards/custom-board" > > CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y > > CONFIG_ARCH_BOARD_CUSTOM_NAME="custom-board" > > > > *Rename src/Make.defs to src/Makefile and append the line * > > include $(TOPDIR)/boards/Board.mk at the end of file. > > > > This works well for me up to Nuttx version 10.2.0 but now when I try to > > make I got the errors > > > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' > > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools' > > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools' > > Create version.h > > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards' > > make[2]: Entering directory > > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' > > Makefile:23: board/Make.defs: No such file or directory > > make[2]: *** No rule to make target 'board/Make.defs'. Stop. > > make[2]: Leaving directory > > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common' > > make[1]: *** [Makefile:79: context] Error 2 > > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards' > > make: *** [tools/Unix.mk:425: boards/.context] Error 2 > > > > Does anyone know how to fix this problem? > > > > Thanks > > > > Daniel Pereira de Carvalho > >