Go to advanced search

by Plainsman
Sun Aug 15, 2021 7:57 pm
Forum: General
Topic: Serial terminal project
Replies: 225
Views: 18010

Re: Serial terminal project

And to be fair, I don't know about how dependent busybox is upon a running linux kernel -- my routers run a 5.4 kernel. The router I looked at has 120MB memory, with 38M actually in use. a long way from 262KB. I initially wondered about just using the shell handling bits of BB ... which would mean c...
by Plainsman
Sun Aug 15, 2021 4:28 am
Forum: General
Topic: Serial terminal project
Replies: 225
Views: 18010

Re: Serial terminal project

I haven't been closely following this project - just hitting the high spots. I mentioned busybox as it's used to great effect in openwrt router software. when I ssh to my router to do work the gui won't, the command line binutils (busybox) is very nice to use. here's a full listing of a mips-based r...
by Plainsman
Sun Aug 15, 2021 2:35 am
Forum: General
Topic: Serial terminal project
Replies: 225
Views: 18010

Re: Serial terminal project

I don't know if the rp2040+your stuff has the room, but have you thought about the shell capability in BusyBox?
by Plainsman
Tue Mar 30, 2021 10:36 pm
Forum: SDK
Topic: [solved] Move application to different location
Replies: 15
Views: 1155

Re: Move application to different location

I'll take one general stab at it - understand that I haven't looked at CFLAGS for SDK compiles - is the compiler generating position-independent (relocatable) code?
by Plainsman
Mon Mar 22, 2021 3:14 am
Forum: General
Topic: Pi Pico - Is it possible to disable one of the cores using C ?
Replies: 4
Views: 507

Re: Pi Pico - Is it possible to disable one of the cores using C ?

From the SDK 1.1.0 release notes ...
... - The broken multicore_sleep_core1() API has been removed; multicore_reset_core1
is already available to put core 1 into a deep sleep.
by Plainsman
Mon Mar 15, 2021 5:06 pm
Forum: SDK
Topic: Context switching breaks SPI/DMA
Replies: 49
Views: 3915

Re: Context switching breaks SPI/DMA

generic hardware debugging suggestions - turn off optimization for *all* code generated: add -O0 to the end of CFLAGS or CFLAGS_EXTRA (whichever exists in your build environment). If your problems change significantly, you may be missing a volatile on some hardware related addressing decls -- even d...
by Plainsman
Thu Feb 25, 2021 9:15 pm
Forum: SDK
Topic: list of not-threadsafe C lib calls?
Replies: 3
Views: 376

Re: list of not-threadsafe C lib calls?

Thanks for the reply and link - the thing that got my attention was the overall generality of the statement ... on the one hand RPi provides special implementations of printf, malloc ... and a couple of others. ... but a warning to guard the rest. Reading between the lines, RPi implementation covere...
by Plainsman
Thu Feb 25, 2021 6:46 pm
Forum: SDK
Topic: list of not-threadsafe C lib calls?
Replies: 3
Views: 376

Re: list of not-threadsafe C lib calls?

Nobody? Other than the examples, my first project will involve both cores ... before I get started I'd appreciate knowing if every memcpy(), strcpy(), soft-FP, ... every func I take for granted -- will need to be wrapped with mutex. Obviously only those calls which use static storage need to be wrap...
by Plainsman
Mon Feb 22, 2021 6:40 pm
Forum: SDK
Topic: list of not-threadsafe C lib calls?
Replies: 3
Views: 376

list of not-threadsafe C lib calls?

Maybe I'm not understanding the following from raspberry-pi-pico-c-sdk.pdf: Care should be taken with calling C library functions from both cores simultaneously as they are generally not designed to be thread safe. You can use the mutex_ API provided by the SDK in the pico_sync library from within y...
by Plainsman
Tue Feb 16, 2021 3:38 am
Forum: SDK
Topic: pico-setup/pico_setup.sh fails.
Replies: 15
Views: 1819

Re: pico-setup/pico_setup.sh fails.

FWIW, libusb-1.0-0-dev is only mentioned as a dependency in pico_setup.h if you're building openOCD, but seems to be needed regardless. building the dev environment on my RPI3b, running sparkylinux: I built: SKIP_OPENOCD=1 SKIP_VSCODE=1./pico_setup.sh and the result was -- scroll down to the bottom:...
by Plainsman
Fri May 29, 2020 5:25 pm
Forum: Troubleshooting
Topic: Please help fix window manager - can't move nor close
Replies: 5
Views: 2804

Re: Please help fix window manager - can't move nor close

Revisiting this as the recent desktop upgrade required me to reset my desktop, theme ... and the problem persists. The core issue is that obconf is writing a broken <mouse> ... </mouse> section in .config/openbox/lxde-pi-rc.xml upon exit. Somehow this removes the ability to move, resize, close windo...
by Plainsman
Mon Jun 18, 2018 4:14 am
Forum: Troubleshooting
Topic: Raspberry Pi builtin WiFi keeps crashing
Replies: 72
Views: 28893

Re: Raspberry Pi builtin WiFi keeps crashing

My Pi 3b's system software is a bit of a mashup so I could have well missed the correct update. I'm running ubuntu linux with a RPI 4.4.50 kernel built to get temperature monitoring and a few other things working. I've tried rpi-kernel_1.20180417-1 and rpi-firmware-stable.zip from github but haven't...
by Plainsman
Sat Jun 16, 2018 7:55 pm
Forum: Troubleshooting
Topic: Raspberry Pi builtin WiFi keeps crashing
Replies: 72
Views: 28893

Re: Raspberry Pi builtin WiFi keeps crashing

robjak wrote: >> never has this problem before, but i recently update/upgrade and then added I2C and a DS3231 RTC. >> Wireless breaks right after a read of temperature from the RTC and a write to a usb flash drive and >> then I run a 6 sec iperf and log it to the usb flash. can add a couple of data ...
by Plainsman
Sat Jul 16, 2016 6:01 pm
Forum: Troubleshooting
Topic: RT PREEMPT kernel not working correctly?
Replies: 3
Views: 1862

Re: RT PREEMPT kernel not working correctly?

Ok, googled a *lot*, spent time patching a vanilla github 4.4.12 kernel for PREEMPT_RT, the preempt patches which allow kernel activity to be preempted, erupting in lower-latency system. I found several good howtos but none of them mentioned this as MANDATORY on a multicore RPi: "To boot the wi...
by Plainsman
Tue Jul 12, 2016 2:45 am
Forum: Troubleshooting
Topic: RT PREEMPT kernel not working correctly?
Replies: 3
Views: 1862

Re: RT PREEMPT kernel not working correctly?

Hi - a couple of questions on compiling 4.4.14 for preemption ... [our Story Thus Far:] I've followed nearly the same route, in ubuntu mate 16.04 and kernel 4.4.12 -- and ended up with a hung system. Assuming Raspbian would have preemption by default, I switch to that environment but find that I onl...

Go to advanced search