Re: New names of repositories

2022-11-22 Thread Flavio Castro Alves Filho
+1 Em ter., 22 de nov. de 2022 às 10:30, Nathan Hartman escreveu: > > After hearing back from Infra about the repository naming convention, > all the recent feedback has been to stay with the default and just > remove "incubator-" from our repo names, giving: > > https://github.com/apache/nuttx

Re: NuttX and C++ libraries: boost / ASIO / std::chrono

2022-03-03 Thread Flavio Castro Alves Filho
Hello Petro, Did you use any specific feature from boost? Most used features from boost were integrated to newer versions of C++. I used C++-17 in a project and it worked fine. Best regards, Flavio Em qua., 2 de mar. de 2022 às 11:01, Xiang Xiao escreveu: > > We use both uClibc++ and

Re: I does an app know it is building on NuttX

2022-02-23 Thread Flavio Castro Alves Filho
Hi Greg, When I thought about this issue, my 'solution' was using NuttX as a library :-/ That would work for a single application, but we lose a lot in application architecture using the NuttX tree. Maybe porting using "same code"/different architectures would be advised as a not-recommended

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-31 Thread Flavio Castro Alves Filho
Hi Peter, Yes, I intend to use it for simulation only. It is for a personal project. I already have a Ubuntu based desktop machine, which works fine. But for mobility, if I could work on my MAC, it would be better. I will try to figure out what is going on. Thank you for all your help. Best

Re: C++ CMake HelloWorld - Sim target

2021-11-12 Thread Flavio Castro Alves Filho
t; nuttx-export/include > nuttx-export/include/libcxx > nuttx-export/arch/chip > > target_link_libraries: > libs under nuttx-export/libs > > And set the compiler and linker flags at nuttx-export/scripts/Make.defs > > Nuno > > > Em qui., 11 de nov. de 202

Re: C++ CMake HelloWorld - Sim target

2021-11-11 Thread Flavio Castro Alves Filho
rs, > Nuno > > > > Em qui., 11 de nov. de 2021 às 20:42, Flavio Castro Alves Filho < > flavio.al...@gmail.com> escreveu: > > > Hello Nuno, > > > > Before starting working with cmake, it is important that the C++ > > configuration in nuttx is building a

Re: C++ CMake HelloWorld - Sim target

2021-11-11 Thread Flavio Castro Alves Filho
Hello Nuno, Before starting working with cmake, it is important that the C++ configuration in nuttx is building and running. Did you get this part working? Best regards, Flavio Em qui., 11 de nov. de 2021 19:17, Nuno Barcellos escreveu: > Hello! > > Could anyone get the C++ CMake HelloWorld

Re: Poll: Which OS are you using to compile NuttX?

2021-09-24 Thread Flavio Castro Alves Filho
Alan, How about a poll asking "which other OS would you like to build NuttX?" :-P Best regards, Flavio Em sex., 24 de set. de 2021 às 17:45, Tim Hardisty escreveu: > > Linux > > > > On 24/09/2021, 21:07, "Alan Carvalho de Assis" wrote: > > Sorry guys, I suppose you are using LinkedIn

Re: .NET nanoFramework ported to NuttX running on Raspberry Pi Pico

2021-06-28 Thread Flavio Castro Alves Filho
This project is really nice. Isn't it good enough for a presentation at the workshop? Best regards, Flavio Em dom., 27 de jun. de 2021 às 13:49, Alan Carvalho de Assis escreveu: > > Hi Nathan, > > Yes, I already suggested it, but he didn't submit a proposal to the > N.O.W. event yet, he was

Re: Socket programming: send() function blocked

2021-06-28 Thread Flavio Castro Alves Filho
e > tcp implementation in Nuttx behaves badly. I don't really have time to > dive into this more right now, but this should give you some pointers > and ideas to where to look further. > >Johnny > > On 2021-06-27 16:34, Flavio Castro Alves Filho wrote: > > I'm sorry ...

Re: Socket programming: send() function blocked

2021-06-27 Thread Flavio Castro Alves Filho
I'm sorry ... I got the same behavior, but the send function now started to work non-blocking. Here is my situation: * I have 2 mqtt brokers (tcp servers) - one commercial (Tago.io) - one personal (Mosquitto) After a successful connection in both cases, the next step is to send the mqtt

Re: Socket programming: send() function blocked

2021-06-26 Thread Flavio Castro Alves Filho
Is there any chance that the broker didn't like the mqtt connect message and shutdown the connection and leaving my device alone ... all during send call? Em sáb., 26 de jun. de 2021 às 11:42, Flavio Castro Alves Filho escreveu: > > Hello Greg, > > No. It was not set :-(

Re: Socket programming: send() function blocked

2021-06-26 Thread Flavio Castro Alves Filho
Hello Greg, No. It was not set :-( I turned on the configuration, but the problem persisted. :-( Best regards, Flavio Em sáb., 26 de jun. de 2021 às 10:41, Gregory Nutt escreveu: > > Do you have CONFIG_NET_TCP_WRITE_BUFFERS=y selected? It is required for > TCP non-blocking send. > --

Socket programming: send() function blocked

2021-06-26 Thread Flavio Castro Alves Filho
Hello, I am using the MQTT-C library (https://github.com/LiamBindle/MQTT-C) in my NuttX project and I am facing a quite interesting issue with a specific server. For a specific broker, which is a commercial one, after the connection is established, when the MQTT Connect message is sent, the

Re: [Discuss] Migrate the build system to CMake

2021-06-10 Thread Flavio Castro Alves Filho
Hello Guys, In my specific situation, I use NuttX separately from the application, deployed as a library. And I use CMake to build my application. My reason to choose CMake was tool integration and easier support to add other open source libraries. CMake can build fast, but make is not slow. In

Re: Undefined reference to longjmp/setjmp

2021-06-10 Thread Flavio Castro Alves Filho
> > We really ought to talk to the Lua team and see if we can upstream the > changes. Unsupported ports in NuttX don't have good shelf life. > I believe that one of the reasons is that Lua's major use case is to be embedded inside applications, isn't it? I don't know if Lua is used so much as a

Re: ESP8266 support

2021-06-03 Thread Flavio Castro Alves Filho
To be honest, I started to work that way :-) Then I had 2 doubts: 1. How to use the UART interface inside a device driver? 2. Is it ok to duplicate the AT commands? Maybe this question was answered :-) Best regards, Flavio Em qui., 3 de jun. de 2021 às 12:53, Gregory Nutt escreveu: > > > >>

Question about USRSOCK deployment

2021-06-03 Thread Flavio Castro Alves Filho
Hello, I am working on the integration between ESP8266 module and STMF4Discovery-based board using UART communication. I am implementing a thread where I use USRSOCK to interface with the NuttX network infrastructure and the netutils/esp8266 library to send commands to the module. My project

Re: ESP8266 support

2021-06-03 Thread Flavio Castro Alves Filho
Em qui., 3 de jun. de 2021 às 11:33, Abdelatif Guettouche escreveu: > > > Looking at NuttX source code, I couldn't find any example of an > > application that implements the ESP8266 functions. Is there any place > > where I can find reference for this use? > > There is a separate application in

Re: ESP8266 support

2021-06-03 Thread Flavio Castro Alves Filho
ons. Best regards, Flavio > > El jue., 3 de jun. de 2021 9:02 AM, Flavio Castro Alves Filho < > flavio.al...@gmail.com> escribió: > > > Hello, > > > > I am using UART. > > > > > > Em qui., 3 de jun. de 2021 às 10:44, Grr escreveu: &g

Re: ESP8266 support

2021-06-03 Thread Flavio Castro Alves Filho
2021 8:27 AM, Flavio Castro Alves Filho < > flavio.al...@gmail.com> escribió: > > > Hello, > > > > I am working on the integration between a STM32F4Discovery based board > > to a ESP8266-WROOM-2 module, in order to have WiFi connectivity. > > >

ESP8266 support

2021-06-03 Thread Flavio Castro Alves Filho
Hello, I am working on the integration between a STM32F4Discovery based board to a ESP8266-WROOM-2 module, in order to have WiFi connectivity. My plan is to implement a thread using USRSOCK and the ESP8266 functions available in netutils, using as reference the work previously done with GS2200m.

Support for disk full detection using LittleFS

2021-05-28 Thread Flavio Castro Alves Filho
Hello, I am using LittleFS to store information on an external dataflash. I need to know if the memory is full. I saw that the nsh provides the df command, which as far as I understood is a cat for /proc/fs/usage file. In my code, I could see the LFS message indicating LFS_ERR_NOSPC, which is

Re: (Standard | Recommended) way to create NuttX applications

2021-05-23 Thread Flavio Castro Alves Filho
Em sáb., 22 de mai. de 2021 às 18:01, Gregory Nutt escreveu: > > > > In my application, I am not using nutshell. > > > > But I was wondering if is it the best, or correct or recommended way to do. > > I don't think there is a best or recommended in this case. You should > do what is best for you

Re: (Standard | Recommended) way to create NuttX applications

2021-05-22 Thread Flavio Castro Alves Filho
:-D In my application, I am not using nutshell. But I was wondering if is it the best, or correct or recommended way to do. Best regards, Flavio Em sáb., 22 de mai. de 2021 12:24, David Sidrane escreveu: > Yes you can, > > Just call the app. > > Create and app. Call it what you like.

(Standard | Recommended) way to create NuttX applications

2021-05-22 Thread Flavio Castro Alves Filho
Hello, This question is more of a curiosity. Which is the most used, or recommended to implement and deploy an application in a NuttX environment? I saw that it is possible to have several applications to be called by NuttShell, and you can set applications to run when NuttShell starts. It is

Re: Dev environment

2021-05-21 Thread Flavio Castro Alves Filho
Hello Tim, I use VSCode with GDB and Segger. But Ubuntu does not come with GDB. So I use x-pack toolchain to build and debug. It works well. Best regards, Flavio Em sex., 21 de mai. de 2021 às 13:28, Tim escreveu: > > Eventually got a Linux dev environment up and running (first PC

Re: Ethernet cable (network interface availability) detection

2021-05-21 Thread Flavio Castro Alves Filho
uption. Best regards, Flavio Em qua., 19 de mai. de 2021 às 21:49, Flavio Castro Alves Filho escreveu: > > Hello David, > > I will try this option. > > Thank you very much. > > Best regards, > > Flavio > > > Em qua., 19 de mai. de 2021 19:28, David Sidran

Re: Ethernet cable (network interface availability) detection

2021-05-19 Thread Flavio Castro Alves Filho
Hello David, I will try this option. Thank you very much. Best regards, Flavio Em qua., 19 de mai. de 2021 19:28, David Sidrane escreveu: > This https://github.com/apache/incubator-nuttx/pull/1924 was merged. It > adds > the polling. > > This is the app

Re: Ethernet cable (network interface availability) detection

2021-05-19 Thread Flavio Castro Alves Filho
Hello Gregory, Thank you for your quick response. Looking at the PRs, they seemed a bit complex for me :-| And I'm not sure if it is that what I want or need. What I was thinking was to use this call: stm32_phyread(CONFIG_STM32F4_PHYADDR,MII_MSR,); Then make the check: if ((phyval &

Re: Ethernet cable (network interface availability) detection

2021-05-19 Thread Flavio Castro Alves Filho
hardware. Considering this scenario, is there any alternative approach that I could use to have this detection? Polling the phy, or something similar? Best regards, Flavio Em qua., 14 de abr. de 2021 às 11:45, Flavio Castro Alves Filho escreveu: > > Gregory, > > Thank you for you

Re: NuttX (Online) Workshop 2021 (call for event team members)

2021-05-18 Thread Flavio Castro Alves Filho
Hello, I am also interested in being part of the event team. Best regards, Flavio Em ter., 18 de mai. de 2021 às 12:10, escreveu: > > That is one of the things to be decided during the meeting > > Regards > Alin > > -Original Message- > From: Abdelatif Guettouche > Sent: den 18 maj

Re: NuttX support for b-l072z-lrwan1

2021-05-13 Thread Flavio Castro Alves Filho
> > Alan > > > > On 5/12/21, Miguel Wisintainer wrote: > >> Good question! > >> > >> Enviado do meu iPhone > >> > >>> Em 11 de mai. de 2021, à(s) 15:33, Flavio Castro Alves Filho > >>> escreveu: > >>> &

NuttX support for b-l072z-lrwan1

2021-05-11 Thread Flavio Castro Alves Filho
Hello, I am evaluating whether to use NuttX on a project based on the b-l072z-lrwan1 board. Looking at the repository, I understood that most part of the features regarding the microcontroller was implemented, but it was not clear the support for LoRa and its stack. How can I get the current

Re: Dev environment

2021-05-11 Thread Flavio Castro Alves Filho
get the WSL or > MAC approach to work. > > I am really hating Window at the moment (1 machine can connect to my Mac, the > other can't...many hours wasted NOT fixing it!) and I had thought it time to > jump ship to Mac...but Linux seems even more appealing right now!! > > On 11/

Re: Dev environment

2021-05-11 Thread Flavio Castro Alves Filho
It seems that it is possible to run JLink from Windows in WSL. Em ter., 11 de mai. de 2021 às 14:23, Tim Hardisty escreveu: > > Thanks Alan. Compiling is no problem it is debugging that is my issue. I see > from your process that you copied the elf from the WSL environment to the > Windows

Re: Dev environment

2021-05-11 Thread Flavio Castro Alves Filho
Hello Tim, What I do here to implement a NuttX application is to use an Ubuntu Server VM (in my case, VMWare). In this VM, I map my Jlink (which is a nucleo board with changed firmware). I use Segger tools to load the firmware. To code, I use VSCode in Windows with SSH access to the VM (I set a

Re: Replacing SmartFS to LittleFS

2021-04-29 Thread Flavio Castro Alves Filho
Hello Xiang, > > > Yes, if you just want to create an empty littlefs partition, littlefs > driver can do it without the userspace tool assistance. > Either run the mount command from nsh: > mount -t littlefs -o autoformat /dev/mtd /mnt > Or call mount function from board_initialize like this: >

Re: Replacing SmartFS to LittleFS

2021-04-28 Thread Flavio Castro Alves Filho
. Run mount from nsh like this: > >mount -t littlefs -o autoformat /dev/mtd /mnt > > > On Wed, Apr 28, 2021 at 8:03 PM Flavio Castro Alves Filho < > flavio.al...@gmail.com> wrote: > > > Hello, > > > > Today my application uses SmartFS associated with MX

Replacing SmartFS to LittleFS

2021-04-28 Thread Flavio Castro Alves Filho
Hello, Today my application uses SmartFS associated with MX25L SPI Dataflash. I intend to replace the SmartFS to LittleFS. In the filesystem section of menuconfig, I can disable CONFIG_FS_SMARTFS and enable CONFIG_FS_SMARTFS. But when I go to "Device Drivers" --> "Memory Technology Device

Running applications from dataflash

2021-04-25 Thread Flavio Castro Alves Filho
Hello, I intend to implement a firmware update feature for my project, which is based on stm32f4discovery. My idea is to load a separated ELF file on the dataflash, which is loaded using the approach described in the following video: https://www.youtube.com/watch?v=oL6KAgkTb8M When running this

Re: Using NuttX with custom bootloader

2021-04-21 Thread Flavio Castro Alves Filho
It worked. Just changing the linker script was enough. Thank you very much. Best regards, Flavio Em qua., 21 de abr. de 2021 às 16:00, Gregory Nutt escreveu: > > > > But I don't know if there is anything to be done directly in NuttX source > > code. > > Nothing other than setting the VBAR

Re: Error with stm32f4discovery:usbnsh

2021-04-21 Thread Flavio Castro Alves Filho
Hello, To have usbnsh working I used, as a workaround, the implementation done in this pull request: https://github.com/apache/incubator-nuttx-apps/pull/521 In my application I don't use nsh. And USB-CDC works fine accessing directly the device. Hope it helps, Best regards, Flavio Em ter.,

Using NuttX with custom bootloader

2021-04-21 Thread Flavio Castro Alves Filho
Hello, I intend to use a NuttX firmware with a custom bootloader on a STM32F4DISCOVERY board. The bootloader will be executed on the first available memory block in flash, and the firmware will start from the second block - position 0x0802. I believe I know what to do regarding linker

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
gic (in which case arch_phy_irq()) is > boards/arm/samv7/samv71-xult/src/sam_ethernet.c:int arch_phy_irq(FAR > const char *intf, xcpt_t handler, void *arg, > boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c: * Name: > arch_phy_irq > boards/arm/stm32/stm32f4

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
related events to > >> applications via signals. It requires board-level support to handle PHY > >> interrupts. > >> > >> The network monitor thread at apps/netutils/netinit (see > >> CONFIG_NETINIT_MONITOR) will handle taking the network down if the cable > >

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
_MONITOR) will handle taking the network down if the cable > > is unplugged and bringing it back up when the cable is restored. > > > > On 4/14/2021 7:24 AM, Flavio Castro Alves Filho wrote: > >> Hello, > >> > >> I am implementing an application using NuttX wh

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
nterrupts. > > > > The network monitor thread at apps/netutils/netinit (see > > CONFIG_NETINIT_MONITOR) will handle taking the network down if the > > cable is unplugged and bringing it back up when the cable is restored. > > > > On 4/14/2021 7:24 AM, Flavio Castro Alves Filho wrote

Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
Hello, I am implementing an application using NuttX where I need to detect if the network cable is plugged or not in my board. Today I implemented the function netlib_getifstatus(), which automates the read of SIOCGIFFLAGS, similar to what we have in Linux. But, in my tests, it seems that it is

Re: mqtt library on NuttX?

2021-03-26 Thread Flavio Castro Alves Filho
Hello, I did a simple sample code using CMake and NuttX as external library: https://github.com/Phi-Innovations/nuttx-apps/tree/main/example-mqtt Hope it helps. I used MQTT-C for it, and I added the sources into my project (not into Nuttx). It would be nice to have the library integrated into

Re: Problem with SmartFS access

2021-03-22 Thread Flavio Castro Alves Filho
est.txt test nsh> Thank you for your help. Best regards, Flavio Em seg., 22 de mar. de 2021 às 09:55, Abdelatif Guettouche escreveu: > > Try: mount -t smartfs /dev/smart0 --> mount -t smartfs /dev/smart0 /mnt > > On Mon, Mar 22, 2021 at 1:17 PM Flavio Castro Alves Filho >

Re: Using C++ STL in Nuttx

2021-03-22 Thread Flavio Castro Alves Filho
Hello Xiang, I found it out and created the pull request :-) Em dom., 21 de mar. de 2021 às 12:11, Flavio Castro Alves Filho escreveu: > > Hello Xiang, > > I create the documentation in my fork: > https://github.com/Phi-Innovations/incubator-nuttx/blob/master/Documentation/guide

Re: Problem with SmartFS access

2021-03-22 Thread Flavio Castro Alves Filho
m., 21 de mar. de 2021 às 12:22, Alan Carvalho de Assis escreveu: > > Hi Flavio, > > You need to enable also the CONFIG_BCH, some recent modification in > the BCH created this side-effect. > > BR, > > Alan > > On 3/21/21, Flavio Castro Alves Filho wrote: > > Hello, &g

Problem with SmartFS access

2021-03-21 Thread Flavio Castro Alves Filho
Hello, I am trying to use my stm32f4discovery board with MX25L800 dataflash memory, through SPI and SmartFS file system. I installed a NuttX driver for this memory type and I am having problems making this memory work. I cannot format the memory. Here is the output on the console, with FS Debug

Re: Using C++ STL in Nuttx

2021-03-21 Thread Flavio Castro Alves Filho
our experience in the > > Documentation folder when you find some free time. > > > > On Wed, Mar 17, 2021 at 9:54 PM Flavio Castro Alves Filho < > > flavio.al...@gmail.com> wrote: > > > > > Hello Xiang, > > > > > > I could finally b

Re: Problem using USART Console and USB-CDC together on STM32F4 Discovery

2021-03-21 Thread Flavio Castro Alves Filho
ID);/* Only needed for OTG */ > #endif > > I think this the right solution, but let hear from others to know if > there is a better solution. > > BR, > > Alan > > On 3/21/21, Flavio Castro Alves Filho wrote: > > Hello Allan, > > > > I found the solutio

Re: Problem using USART Console and USB-CDC together on STM32F4 Discovery

2021-03-21 Thread Flavio Castro Alves Filho
that this pin be flexible. The ID pin is not mandatory when we intend to implement USB device software. I will think of an option in menuconfig and I will propose to you. Best regards, Flavio Em sáb., 20 de mar. de 2021 às 14:59, Flavio Castro Alves Filho escreveu: > > Hello Allan, > &g

Re: Problem using USART Console and USB-CDC together on STM32F4 Discovery

2021-03-20 Thread Flavio Castro Alves Filho
Hello Allan, I believe that rx pin from usart1 (PA10) is not yet operational. I could not find in code why. Best regards, Flavio Em sáb, 20 de mar de 2021 14:18, Alan Carvalho de Assis escreveu: > On 3/20/21, Flavio Castro Alves Filho wrote: > > Updating: > > > >

Re: Problem using USART Console and USB-CDC together on STM32F4 Discovery

2021-03-20 Thread Flavio Castro Alves Filho
of the software, to identify what's running wrong. Best regards, Flavio Em sáb, 20 de mar de 2021 08:11, Flavio Castro Alves Filho < flavio.al...@gmail.com> escreveu: > Hello, > > I am trying to enable USB CDC support with base NSH Serial in a > STM32F4 Discovery board. > > W

Problem using USART Console and USB-CDC together on STM32F4 Discovery

2021-03-20 Thread Flavio Castro Alves Filho
Hello, I am trying to enable USB CDC support with base NSH Serial in a STM32F4 Discovery board. When I build using usbnsh configuration, it works. When I build using nsh configuration (in my case, replacing USART2 to USART1), it works. Now, when I try to add USB CDC support in nsh

Re: Using C++ STL in Nuttx

2021-03-19 Thread Flavio Castro Alves Filho
gt; On Wed, Mar 17, 2021 at 9:54 PM Flavio Castro Alves Filho < > flavio.al...@gmail.com> wrote: > > > Hello Xiang, > > > > I could finally build an C++ project using CMake and exported NuttX. > > - Before that, I made a test creating the same project insi

Netlib headers missing in make export

2021-03-18 Thread Flavio Castro Alves Filho
Hello, I started to implement code in Nuttx, using it as an external library approach. When reimplementing (recompiling, in fact) the tcpechoserver application, there was a compilation issue where netlib was not found on nuttx-export headers. I solved this issue manually copying only the header

Re: Using C++ STL in Nuttx

2021-03-17 Thread Flavio Castro Alves Filho
JsonCpp (https://github.com/nlohmann/json) together and it worked fine. Thank you for all your support. Best regards, Flavio Em ter., 16 de mar. de 2021 às 21:04, Flavio Castro Alves Filho escreveu: > > Xiang, > > I believe the problem was related to something on my branch. >

Re: Using C++ STL in Nuttx

2021-03-16 Thread Flavio Castro Alves Filho
às 16:24, Xiang Xiao escreveu: > > Try to remove CONFIG_ARCH_FLOAT_H > > On Tue, Mar 16, 2021 at 12:15 PM Flavio Castro Alves Filho < > flavio.al...@gmail.com> wrote: > > > Hello Xiang, > > > > It is still not working. The error p

Re: Using C++ STL in Nuttx

2021-03-16 Thread Flavio Castro Alves Filho
t;nsh_main" Any idea of what is missing? Best regards, Flavio Em ter., 16 de mar. de 2021 às 14:32, Xiang Xiao escreveu: > > On Tue, Mar 16, 2021 at 10:20 AM Flavio Castro Alves Filho < > flavio.al...@gmail.com> wrote: > > > Hello Xiang, > > > > Em ter., 16 de m

Re: Using C++ STL in Nuttx

2021-03-16 Thread Flavio Castro Alves Filho
Hello Xiang, Em ter., 16 de mar. de 2021 às 14:01, Xiang Xiao escreveu: > > On Tu > > > This project use the modern C++ feature, so you must enable llvm > ibc++(CONFIG_LIBCXX=y) I tried a new build, executing: $ make distclean $ ./tools/configure.sh -l stm32f4discovery:testlibcxx $ make I can

Re: Using C++ STL in Nuttx

2021-03-16 Thread Flavio Castro Alves Filho
Concerning cxx or cpp ... I have to tell you that I was not used for cxx ... but it is not a problem anyway. What is disturbing me now is that there are problems regarding newlib c++ and uClib++. I tried to add this json project: https://github.com/nlohmann/json, in single header mode. I am

Re: Using C++ STL in Nuttx

2021-03-16 Thread Flavio Castro Alves Filho
for the linking error. I need to figure out how to address this. If you have any suggestions, please let me know. Best regards, Flavio Em seg., 15 de mar. de 2021 às 08:24, Flavio Castro Alves Filho escreveu: > > Hello Xiang, > > Thank you for your fast response. > > I was t

Re: Using C++ STL in Nuttx

2021-03-15 Thread Flavio Castro Alves Filho
Flavio Castro Alves Filho < > flavio.al...@gmail.com> wrote: > > > Hello, > > > > I am trying to use STL in a simple C++ Hello project and I am getting > > compilation error.s > > > > Is STL supported in NuttX? Can I use it? > > > > > Yes,

Using C++ STL in Nuttx

2021-03-15 Thread Flavio Castro Alves Filho
Hello, I am trying to use STL in a simple C++ Hello project and I am getting compilation error.s Is STL supported in NuttX? Can I use it? Here is my sample code: === Hello.cpp === #include #include "HelloWorld.h" CHelloWorld::CHelloWorld() { mSecret = 42; printf("Constructor:

Re: Problem with USB CDC initialization on board based on STM32F4DISCO

2021-01-18 Thread Flavio Castro Alves Filho
> connecting. > > On 1/17/2021 9:10 AM, Flavio Castro Alves Filho wrote: > > Thank you very much for your fast response. > > > > I checked the boot calls and they are the same, regarding USB > > initialization. > > > > I compared the include/nuttx/confi

Re: Problem with USB CDC initialization on board based on STM32F4DISCO

2021-01-18 Thread Flavio Castro Alves Filho
plains why you get no USB log. How could you? It is > configured to go to the console (i.e., /dev/console) but there is no console > device.Sent from my Galaxy > Original message ----From: Flavio Castro Alves Filho > Date: 1/17/21 3:50 PM (GMT-06:00) To: > dev@nut

Re: Problem with USB CDC initialization on board based on STM32F4DISCO

2021-01-17 Thread Flavio Castro Alves Filho
let's us know if you see some difference. > > BR, > > Alan > > On 1/17/21, Flavio Castro Alves Filho wrote: > > Thank you very much for your fast response. > > > > I checked the boot calls and they are the same, regarding USB > > initialization. > > >

Re: Problem with USB CDC initialization on board based on STM32F4DISCO

2021-01-17 Thread Flavio Castro Alves Filho
different > board name. With "make savedefconfig" you can save your working defconfig > > El dom, 17 ene 2021 a las 7:51, Flavio Castro Alves Filho (< > flavio.al...@gmail.com>) escribió: > > > As an additional information, if I load the STM32F4DISCO on my boa

Re: Problem with USB CDC initialization on board based on STM32F4DISCO

2021-01-17 Thread Flavio Castro Alves Filho
As an additional information, if I load the STM32F4DISCO on my board, USB works. Em dom., 17 de jan. de 2021 às 10:43, Flavio Castro Alves Filho escreveu: > > Hello, > > I am working to port NuttX on a board based on STM32F4DISCOVERY. The > microcontroller is the STM32F407VE

Problem with USB CDC initialization on board based on STM32F4DISCO

2021-01-17 Thread Flavio Castro Alves Filho
Hello, I am working to port NuttX on a board based on STM32F4DISCOVERY. The microcontroller is the STM32F407VET6. USB CDC support is not initializing. When I plug the USB on the board, I have the following dmesg response in Linux: [517062.075048] usb usb1-port2: attempt power cycle

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

2021-01-10 Thread Flavio Castro Alves Filho
aches on my end. Thanks! > > Matt > > On Fri, Dec 11, 2020 at 10:07 AM Flavio Castro Alves Filho < > flavio.al...@gmail.com> wrote: > > > Hello Marc, > > > > Thank you for your response. > > > > In fact, it was a little more than that: I di

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

2020-12-11 Thread Flavio Castro Alves Filho
recommend you to add the flag -nostdlib. At least it is going > to avoid newlib symbol problems. > > regards, > marc > Am 11.12.2020 um 13:07 schrieb Flavio Castro Alves Filho: > > Hello, > > > > Has anybody here used NuttX as a library and a C++ project with cma

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

Re: Build problems - nuttx as an external library

2020-11-22 Thread Flavio Castro Alves Filho
dge, >bool event, xcpt_t func, void *arg); > > We need investigate which patch broke the "make export" and fix it. > > BR, > > Alan > > On 11/16/20, Flavio Castro Alves Filho wrote: > > Hello, > > > > I intend to build

Build problems - nuttx as an external library

2020-11-16 Thread Flavio Castro Alves Filho
Hello, I intend to build a nuttx application using the operating system as an external library. I am working on a custom board running stm32f417 and I am following the instructions from the following link: https://acassis.wordpress.com/2020/06/28/using-nuttx-as-library-once-again/ For the first

Re: Nuttx for Nucleo-F429ZI

2020-09-23 Thread Flavio Castro Alves Filho
Hello Nathan, Thank you for your return. I found this procedure on another similar tutorial :-) I could see the network interface up. Best regards, Flavio Em seg., 21 de set. de 2020 às 13:34, Nathan Hartman escreveu: > > On Sat, Sep 19, 2020 at 7:36 AM Flavio Castro Alves Filho &g

Re: Nuttx for Nucleo-F429ZI

2020-09-19 Thread Flavio Castro Alves Filho
às 20:16, Brennan Ashton escreveu: > > On Fri, Sep 18, 2020 at 3:16 PM Flavio Castro Alves Filho > wrote: > > > > Hello Matias, > > > > Em sex., 18 de set. de 2020 às 16:26, Matias N. escreveu: > > > > > > Hi Flavio, > > > please h

Re: Nuttx for Nucleo-F429ZI

2020-09-18 Thread Flavio Castro Alves Filho
; Probably there is something with this board. > Best, > Matias > Thank you for your response. Best regards, Flavio > On Fri, Sep 18, 2020, at 16:16, Flavio Castro Alves Filho wrote: > > Hello, > > > > I am studying NuttX for a new project. I am using Nucleo-F42

Nuttx for Nucleo-F429ZI

2020-09-18 Thread Flavio Castro Alves Filho
Hello, I am studying NuttX for a new project. I am using Nucleo-F429ZI as reference, which is quite a complete board and has a large memory for testing. I followed some instructions from the internet (mostly from NuttX website) and I could compile and run a binary on the board. Including