Re: NuttX system load

2021-05-11 Thread David S. Alessio
> On May 11, 2021, at 11:22 PM, James Dougherty wrote: > > Hi Folks, > > What is an easy way to compute the system load on Nutt-X? > I don't need the procinfo (Unix LA) just current CPU load and > optimally, I would like a measure 0-1000 where I can get 4 digits of > precision ... > The simp

NuttX system load

2021-05-11 Thread James Dougherty
Hi Folks, What is an easy way to compute the system load on Nutt-X? I don't need the procinfo (Unix LA) just current CPU load and optimally, I would like a measure 0-1000 where I can get 4 digits of precision ... The simpler the better, doesn't need to be a lot of code, only used for a "busy-nes

Re: Dev environment

2021-05-11 Thread Disruptive Solutions
You can also use Virtualbox. I use this for my NuttX CI/CD. Works nice! Ben > >

Re: Dev environment

2021-05-11 Thread Tim Hardisty
I see from https://www.mail-archive.com/dev@nuttx.apache.org/ that others have replied. These have not got through to me so apologies for not yet taking up the offers of assistance. I will try and sort whatever the email issue is and then reply!

Re: Dev environment

2021-05-11 Thread Brennan Ashton
For what it's worth, there are a bunch of people here that use macOS (including our CI testing) and I have used both Cygwin and WSL. So if there is a problem with any of these it is very important that we work with you to resolve it rather than drive you to another OS where you may run into the exa

Re: Dev environment

2021-05-11 Thread Tim Hardisty
Hmm...do need Windows for my schematic capture and 3D design applications, but Mac little used as yet...I'm thinking dual boot Mac/Ubuntu is probably the way to go! On 11/05/2021, 20:30, "Alan Carvalho de Assis" wrote: Also, if you are not dependent on Windows, just install Linux on your

Re: Dev environment

2021-05-11 Thread Alan Carvalho de Assis
Also, if you are not dependent on Windows, just install Linux on your computer, it will avoid all those tricks to get the work done ;-) On 5/11/21, Tim Hardisty wrote: > Thanks Alan. Compiling is no problem it is debugging that is my issue. I see > from your process that you copied the elf from t

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 set

Re: Dev environment

2021-05-11 Thread Flavio Castro Alves Filho
Hello Tim, I use ubuntu 20.04 server to save space :-) ... If you use authorized_keys in ssh ... it is even better. For me here, the USB in the VM is more stable than in my Windows host :-\ ... for the J-Link and also for the FTDI to see syslog. In VS-Code, I use these extensions: * marus25.cor

Re: Dev environment

2021-05-11 Thread Tim Hardisty
I have the board booting from AT91bootstrap and Uboot, from QSPI no problem. Downloading code using JLink from Windows/eclipse is fine, but the debugging is broken/mis-configured. I will probably have another go at a Windows-hosted development environment and have the arm cross compilers install

Re: Dev environment

2021-05-11 Thread Tim Hardisty
Thanks Flavio - I hadn't thought about using a VM; that would avoid yet another lump of PC hardware cluttering up the place if I can't 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

Re: Dev environment

2021-05-11 Thread Gregory Nutt
It seems that it is possible to run JLink from Windows in WSL. I used J-Link under Windows to bring up the SAMA5Dx.  The only tricky thing was booting from an SD card with U-boot.

Re: Dev environment

2021-05-11 Thread Gregory Nutt
All this starts from the CAN init code crashing (SAMA5D27) when it makes any call to print debug messages. Printf itself is fine. These kinds of crashes are often due to stack overrun.  It might be worth increasing the stack size of the task that calls CAN init. Has anyone got NuttX to succes

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 /mnt

Re: Dev environment

2021-05-11 Thread Frank-Christian Kruegel
Am 11.05.2021 um 18:41 schrieb Tim: Mac is the machine I know least. I have no "full" Linux machine. No experience of Cygwin and its ilk - just a minefield to me. The best way would be a virtual machine using Virtualbox (https://www.virtualbox.org) (free) or VMWare Player (https://www.vmware.c

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: Dev environment

2021-05-11 Thread Tim Hardisty
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 /mnt/c ...I haven't tried that but I am not sure it will help eclipse find the source code...unless I also replicate the source tree on t

Re: Dev environment

2021-05-11 Thread Alan Carvalho de Assis
Hi Tim, I don't use Windows or MacOS, but some time ago just tested NuttX on WSL to help other to get started to NuttX on Windows, I documented the process here: https://acassis.wordpress.com/2018/01/10/how-to-build-nuttx-on-windows-10/ I hope it helps you! BR, Alan On 5/11/21, Tim wrote: >

Re: Dev environment

2021-05-11 Thread Disruptive Solutions
Tim. Maybe I can try to help you concerning this matter. How can we connect? Do you have telegram? Op di 11 mei 2021 6:42 p.m. schreef Tim : > Pulling my hair out here!! So apologies for the lengthy brain dump and plea > for help! > > > > All this starts from the CAN init code crashing (SAMA5D27)

Dev environment

2021-05-11 Thread Tim
Pulling my hair out here!! So apologies for the lengthy brain dump and plea for help! All this starts from the CAN init code crashing (SAMA5D27) when it makes any call to print debug messages. Printf itself is fine. I need to debug it. I will need to get to that point regardless. The on