Re: RP2040 Pico SDK

2023-08-12 Thread Tomek CEDRO
On Sat, Aug 12, 2023 at 8:54 PM Mark Stevens wrote: > 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: RP2040 Pico SDK

2023-08-12 Thread Gregory Nutt
So is there a simple way of attaching and ISR to a GPIO from user code? You need to think like you were using Linux:  No interrupt handling in user code!  This needs to go into your board logic. Expecially if you are customizing the board to some non-off-the-shelf configuration with additi

Re: RP2040 Pico SDK

2023-08-12 Thread Mark Stevens
So is there a simple way of attaching and ISR to a GPIO from user code? I can see how to do it in rp2040_gpio.c in the board files but I’m hoping not to have to change the board files. Regards, Mark _ Blog: blog.thepcsite.co.uk Twitter: @nevynuk > On 12 Aug 2023,

Fixing tcpblaster - anybody using it?

2023-08-12 Thread Milan Obuch
Hi, as I was building NuttX with bl602evb:wifi configuration, it failed with AF_INET being undefined. I found it is easy to fix with simply adding one include: # diff -u tcpblaster_cmdline.c.orig tcpblaster_cmdline.c --- tcpblaster_cmdline.c.orig 2022-12-11 22:21:46.630131000 +0100 +++ tcpblast

Re: RP2040 Pico SDK

2023-08-12 Thread Brennan Ashton
I would not recommend doing that. You _could_ but it will break for non flat builds and you are explicitly violating the the OS application interface boundary. You may also break assumptions of the OS and make it unstable by changing important registers in interrupt controller. So nothing is stopp

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 ap

Building NuttX for PineCone (on FreeBSD)

2023-08-12 Thread Milan Obuch
Hi, after some tests, with some hints and discussion with Lup, I am able to build NuttX for PineCone (BL602 based evaluation board) on FreeBSD. I am able to build almost all configurations present in recent sources (I used sources from git, snapshot old maybe a week or two), with configuration as