Re: Heap Logging

2024-06-13 Thread Mark Stevens
Lup, Thank you for the information, I’ll have a look tomorrow. Regards, Mark --- Mark Stevens Blog: blog.mark-stevens.co.uk > On 13 Jun 2024, at 13:51, Lee, Lup Yuen wrote: > > Hi Mark: Thanks for watching my presentation! To show the Hea

Heap Logging

2024-06-13 Thread Mark Stevens
code and nothing jumps out as being obvious. How do I turn this feature on? Thanks in advance, Mark — Mark Stevens mark.stev...@wildernesslabs.co

Re: Help on understanding Nuttx

2024-05-22 Thread Mark Stevens
There is an ongoing series regarding porting to the STM32F401RC on YouTube, maybe that can help: https://www.youtube.com/@nuttxchannel/streams Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 22 May 2024, at 11:04, Janardhan Silwal > wrote: > > Hi, &g

Re: Missing bytes on serial port

2024-05-13 Thread Mark Stevens
Greg, Thanks for the advice, I’ll have a look at use file_open etc. Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 10 May 2024, at 15:55, Gregory Nutt wrote: > > On 5/9/2024 11:02 PM, Mark Stevens wrote: >>> Hmmm... the UART device will closed when

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
in the kthread does the parent thread keep it open? Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 10 May 2024, at 05:38, Gregory Nutt wrote: > > > On 5/9/2024 10:23 PM, Mark Stevens wrote: >> The issue arises if I try to kill the kernel thread readi

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
within the first 15 seconds after board reset so I am confident that the issue will not be related to long term drift. Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 9 May 2024, at 22:51, Gregory Nutt wrote: > > This problem is reported for a lot a platforms

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
I’m not writing to the UART - I am reading. Regards, Mark --- Mark Stevens Blog: blog.mark-stevens.co.uk > On 9 May 2024, at 17:40, Mark Stevens > wrote: > > This is a direct connection between the two chips on a PCB. > > Regards,

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
This is a direct connection between the two chips on a PCB. Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 9 May 2024, at 17:38, Bill Rees wrote: > > > I've seen this problem before which revolved around flow control; essentially > soft versus hard flo

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
I can’t use a different UART, this is a direct connection between the two chips on the PCB. Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 9 May 2024, at 17:24, Tomek CEDRO wrote: > > On Thu, May 9, 2024 at 6:15 PM Mark Stevens > wrote: >> Yes, I

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
One extra piece of information that has occurred to me, I am using a `SIGINT` kill signal to tell the kernel thread that it should close the connection. Regards, Mark --- Mark Stevens Blog: blog.mark-stevens.co.uk > On 9 May 2024, at 17:11, Tomek CE

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
analyser to the system and all looks good. Also, my current problem is NuttX reading data not sending it. Sending may also be a problem but I have not got that far at the moment. Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 9 May 2024, at 17:11, Tomek CEDRO wr

Re: Missing bytes on serial port

2024-05-09 Thread Mark Stevens
00 00 c0 Regards, Mark — Mark Stevens mark.stev...@wildernesslabs.co > On 9 May 2024, at 14:56, Nathan Hartman wrote: > > On Thu, May 9, 2024 at 3:31 AM Mark Stevens > wrote: > >> So we have a two chip board: >> >> * STM32 running NuttX (v7.5 I believe) &

Missing bytes on serial port

2024-05-09 Thread Mark Stevens
So we have a two chip board: * STM32 running NuttX (v7.5 I believe) * ESP32 acting as a coprocessor running custom firmware The STM32 runs the show and the ESP32 provides services to the STM32 code. In normal run mode, NuttX has a kernel thread that reads data from the ESP32 over UART

Re: Trouble adding a new board

2023-11-06 Thread Mark Stevens
Robert, There was a YouTube video posted a few weeks ago and the 2+ hour session which covered porting to a new STM32F4 board. Maybe that can help. https://www.youtube.com/watch?v=TeBkVJLATcw=7s Regards, Mark __ mark.stev...@wildernesslabs.co > On 6 Nov 2023,

Re: gcc-arm-none-eabi on M1 MacOs

2023-10-18 Thread Mark Stevens
I have recently setup a Mac M1 for STM32 development and I installed the arm-gcc-bin@10 package using brew. The only thing I have found does not work is arm-none-eabi-gdb-py as it is looking for Python 2.7 with a fixed path and it does not exist on the system. I have tried peen but this

GPIO and interrupts

2023-08-29 Thread Mark Stevens
I am trying to figure out GPIO and interrupts. So the situation is I have four switches connected to GPIOs on my board. My ideal scenario is to attach a different interrupt to each switch and have that fired when the appropriate button is pressed. So I have spent some time looking at the

Re: RP2040 Pico SDK

2023-08-12 Thread Mark Stevens
mportant registers in interrupt controller. > > So nothing is stopping you, but you should also not expect the OS to > function correctly. > > --Brennan > > On Sat, Aug 12, 2023, 11:54 AM Mark Stevens wrote: > >> Is there anyway of using the Pico SDK from withi

RP2040 Pico SDK

2023-08-12 Thread Mark Stevens
Is there anyway of using the Pico SDK from within NuttX? What I am trying to do is attach a generic ISR to some GPIO pins. I’m not a great fan of having to modify the OS source in order to set up simple things like ISRs to handle button presses. I’d like to be able to do this from the user

Re: Serial LCD example

2023-07-23 Thread Mark Stevens
Yes, that is the code I’m referring to. I’m also going to be looking at adding one or two more PCF GPIO expanders to the system, not LCD, but they will certainly need to live with the LCD backpack. I’ll have a look at a PR. Regards, Mark _ Blog: blog.thepcsite.co.uk

Re: Serial LCD example

2023-07-23 Thread Mark Stevens
hallenges as well, case > a board doesn't have support to some I2C or SPI Bus and the user > enabled it in the menuconfig. > > BR, > > Alan > > On 7/23/23, Mark Stevens wrote: >> Had some fun and games today working with the SLCD example on the Pico W. >> >> It appe

Serial LCD example

2023-07-23 Thread Mark Stevens
Had some fun and games today working with the SLCD example on the Pico W. It appears that the example has hard wired parameters for I2C bus Number of characters Number of rows Is it supposed to work like this or should these parameters be configurable? Regards, Mark

Build error 12.2.0

2023-07-06 Thread Mark Stevens
So had a play with 12.2 and came across an error when building. make -j V=2 generates the following expanded output for the error: grep -v "CONFIG_BASE_DEFCONFIG" "/Users/markstevens/GitHub/NuttXAndPicoW/nuttx/.config" > "/Users/markstevens/GitHub/NuttXAndPicoW/nuttx/.config.tmp" echo "Create

Re: Prebuilt SmartFS file system (Pico)

2023-07-04 Thread Mark Stevens
Responded Sebastien by direct mail. Regards, Mark _ Blog: blog.thepcsite.co.uk Twitter: @nevynuk > On 3 Jul 2023, at 11:09, Sebastien Lorquet wrote: > > Sebastien

Re: Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Mark Stevens
e-build SmartFS image using the FUSE > filesystem under Linux, and then include that image as a binary blob into > your application ... you would just have to ensure all the MTD access and > alignment are taken care of. > > Ken > > On 7/2/23 12:03 PM, Mark Stevens w

Prebuilt SmartFS file system (Pico)

2023-07-02 Thread Mark Stevens
I am looking at adding a small file system to my application and I would like to add a number of files to the image as part of the build. I have configured the build using the raspberrypi-pico-w:nsh-flash configuration and I think I have figured out how t add files by editing the

Re: C++ Support

2023-06-26 Thread Mark Stevens
My mistake on the version. The patch builds OK. Back to working on the project later today. Thank you. Regards, Mark _ Blog: blog.thepcsite.co.uk Twitter: @nevynuk > On 25 Jun 2023, at 08:50, Mark Stevens wrote: > > So a little more progress on

Re: C++ Support

2023-06-25 Thread Mark Stevens
_ Blog: blog.thepcsite.co.uk Twitter: @nevynuk > On 25 Jun 2023, at 08:50, Mark Stevens wrote: > > So a little more progress on this one. > > Turning on C++ Exception support for the PicoW:nsh build configuration > generates errors: > > CC: pthread/pthread_

Re: C++ Support

2023-06-25 Thread Mark Stevens
So figured out what the problem was with the patch - it compiles. Just testing execution at the moment. Regards, Mark __ mark.stev...@wildernesslabs.co > On 25 Jun 2023, at 17:53, Mark Stevens wrote: > > So here is what I have run: > > git

Re: C++ Support

2023-06-25 Thread Mark Stevens
ing for unfinished jobs Regards, Mark __ mark.stev...@wildernesslabs.co > On 25 Jun 2023, at 11:39, Xiang Xiao wrote: > > Mark, could you try this patch: > https://github.com/apache/nuttx/pull/9610 > > On Sun, Jun 25, 2023 at 3:50 PM Mark St

Re: C++ Support

2023-06-25 Thread Mark Stevens
: blog.thepcsite.co.uk Twitter: @nevynuk > On 24 Jun 2023, at 18:59, Mark Stevens wrote: > > I’m currently working on a home project with NuttX and my preferred language > is really C++ for what I am doing. I can work in C if necessary but I’d like > to use some C++ features. > >

C++ Support

2023-06-24 Thread Mark Stevens
I’m currently working on a home project with NuttX and my preferred language is really C++ for what I am doing. I can work in C if necessary but I’d like to use some C++ features. So far I have managed to get the framework of what is needed configured and the next step is to start some

Raspberry Pi Pico W now has Bluetooth support

2023-06-14 Thread Mark Stevens
Announced today: https://www.raspberrypi.com/news/new-functionality-bluetooth-for-pico-w/ Regards, Mark _ Blog: blog.thepcsite.co.uk Twitter: @nevynuk

Re: STM32 and GDB - How do I generate the ELF file?

2023-06-11 Thread Mark Stevens
ually an ELF file, but without .elf extension. > > BR, > Petro > > On Sun, Jun 11, 2023, 10:39 AM Mark Stevens wrote: > >> I think the missing piece of information is that the nuttx file contains >> the debug symbols. >> >>

Re: NuttX Internation Workshop Call for Paper is open!

2023-06-11 Thread Mark Stevens
Are you allowing remote presentations ? Regards, Mark _ Blog: blog.thepcsite.co.uk Twitter: @nevynuk > On 11 Jun 2023, at 14:52, Alan C. Assis wrote: > > Please submit your proposal: > > https://events.nuttx.apache.org

Re: STM32 and GDB - How do I generate the ELF file?

2023-06-11 Thread Mark Stevens
a > security fail (a user used the memory tool to dump their proprietary > firmware) and forced us to disable that memory tool features by > default. > > Some building systems solve like that of Android solve it creating > different compilation modes: Debug, Release, etc. > &

Re: STM32 and GDB - How do I generate the ELF file?

2023-06-11 Thread Mark Stevens
h nuttx.bin > > Connect to the board using OpenOCD + STLink-V2: > > $ sudo openocd -f interface/stlink-v2.cfg -f target/stm32f7x.cfg > > In another terminal: > > $ gdb nuttx > (gdb) target remote localhost: > (gdb) monitor reset > (gdb) load nuttx > (gdb

STM32 and GDB - How do I generate the ELF file?

2023-06-10 Thread Mark Stevens
So I’m admitting defeat on this problem and I need some help please. I’m trying to work out the magic incantations I need to weave to create a NuttX ELF file that I can use with GDB. To be clear this is the OS ELF file that I can use on the host computer. I am currently targeting the Pico

Re: Intertask communication in NuttX

2022-12-17 Thread Mark Stevens
Options I would consider would be Message queues Pipes For the project I am involved in we use both of these but mainly use message queues. Message queues should only be used for small messages, I think the limit is about 22 bytes. I get around this by creating the large message and passing

Re: malloc, free, strdup and kernel builds

2022-09-22 Thread Mark Stevens
d. > > kmm_free() is already defined as free() in the FLAT build in > include/nuttx/kmalloc.h > > On 9/21/2022 9:59 AM, Mark Stevens wrote: >> So this post has been triggered by an issue I have just had using strdup in >> the OS components of a protected mode build. >>

malloc, free, strdup and kernel builds

2022-09-21 Thread Mark Stevens
So this post has been triggered by an issue I have just had using strdup in the OS components of a protected mode build. For clarity I will be using the term OS for the kernel part of the build and application/app for the user part of the build. The TLDR; is this design question: Do we expect