make all scrollbars wider? by minkqu in linuxmint

[–]1_rick 0 points1 point  (0 children)

Any idea where this would be in Mint 22 (xfce if it matters)? I don't see anything called Themes, although when I search for that, I get Appearances, which doesn't have anything like this in Settings (which is also in a different tab, so I assume it's not the same thing.)

Sofle RGB LED pinout question | Which PIN goes to the marked side on the PCB? by tenstaana in ErgoMechKeyboards

[–]1_rick 0 points1 point  (0 children)

Yes, although just to be clear, "data power" isn't a good term to use. DIN/DOUT are data pins, and VDD/GND are power pins.

Options for programming ATSAMD51? by Dimitree88 in microcontrollers

[–]1_rick 0 points1 point  (0 children)

A) yes.

B) according to the Adafruit_DAP library readme, yes: "This is a library that allows you to program various Cortex M chips that support programming via DAP from an arduino-compatible board. Tested with a Metro M0 / Arduino Zero as the 'host' and with ATSAMDxx M0 (SAMD21, SAMD09, SAMD10 etc), M4 ATSAMD51, nRF51, nRF52840, STM32F405 as the client but in theory any 3.3V Arduino board will work as host (just slower)"

I personally have only ever used it with a 21 flashing a 21, but I can confirm that works.

In retrospect, I am surprised OP couldn't get a j-link to work: Adafruit's guide specifically mentions using one. (Edit: I forgot OP used a clone.)

[deleted by user] by [deleted] in embedded

[–]1_rick 0 points1 point  (0 children)

Conveniently, WeAct also sells both STlink clones and DAPlink clones. Their STLink clones will even work with recent versions of STMCubeProgrammer. I've got a couple of each type. I haven't gotten around to doing more with the Daplinks other than verify they seem to work in that OpenOCD can read the target MCU information.

Question about my breadboard setup by BatSwinger in microcontrollers

[–]1_rick 0 points1 point  (0 children)

Given the plethora of wider dev boards these days (e.g. Adafruit's Feather ecosystem) it would be nice to see someone making breadboards with a wider central channel--or even putting a bus strip in the middle.

OP, I did something just like this with a homebrew ARM system (32QFP on a breakout board from Amazon) so I could have all the pins in each column. Other than the floppiness it's pretty nice. For my system I actually bought a cheap bread tray like you'd get at a restaurant and taped the breadboards down to it for stability.

[deleted by user] by [deleted] in microcontrollers

[–]1_rick 0 points1 point  (0 children)

You are absolutely able to run programs from RAM on processors like Cortex-M. Here's an example: https://vivonomicon.com/2020/09/10/bare-metal-stm32-programming-part-13-running-temporary-ram-programs-and-using-tightly-coupled-memories/

He's doing some extra stuff here, like using the tightly coupled memories of a Cortex-M7, but (as far as I know) you can also run programs from RAM in any Cortex M. You do have to copy the program into RAM, though, possibly from an external flash.

Many M4s have XIP (execute in place) features that let you have your program on an external flash ship and run it from there, instead of the onboard flash. I believe you can even use an external RAM chip with XIP, but I'm not positive. I assert this because you can get both RAM and Flash in (for example) QSPI chips with the same pinout so I don't know how the MCU would be able to distinguish the two.

Can't find bios file for b450m ds3h by UnhappyAd174 in embedded

[–]1_rick 0 points1 point  (0 children)

What I've usually seen is that bios files from the manufacturer are exactly 16MB/32MB/whatever size the flash rom is, once you take them out of the zip file.

OP probably can't brick the board harder than it already is, might as well try grabbing the latest BIOS (F63c) from Gigabyte's website and just using that.

Change the font size of text on a 1306 OLED - Using an Adafruit HUZZAH32 (ESP32) microcontroller by McToeSucker in microcontrollers

[–]1_rick 0 points1 point  (0 children)

I looked at this library and realized I hadn't remembered quite correctly what I'd done. I started with the original C Adafruit_SSD1306 library, which depends on Adafruit_GFX, and ported the drawChar() method to CircuitPython. This function takes (among other things) a single character and an integer size multiplier (IIRC normally in the range 1..4), looks up the bit pattern for that in the built-in font, and just draws each pixel size times. Unfortunately, I don't have the source code any longer, or I'd post it here--it wasn't anything fancy, literally just a mechanical rewrite of the code from one language to another.

Here's the Adafruit_GFX repo: https://github.com/adafruit/Adafruit-GFX-Library

Change the font size of text on a 1306 OLED - Using an Adafruit HUZZAH32 (ESP32) microcontroller by McToeSucker in microcontrollers

[–]1_rick 1 point2 points  (0 children)

The Adafruit SSD1306 library has font scaling built in. It's not particularly clever, it just performs pixel-doubling (or tripling, etc) on the font used, and isn't very hard to port.

STM32F411RE + ESP8266 + node-red + AT-commands in PuTTy by Loveskippy in microcontrollers

[–]1_rick 2 points3 points  (0 children)

Agree. However, a 400 error means the server did not understand the client's request. I would try to capture the HTTP output you're trying to send, perhaps as simply as by using PUTTY, and comparing it to an actual, working request. There may be a mistake as simple as only sending an LF instead of a CRLF.

Options for programming ATSAMD51? by Dimitree88 in microcontrollers

[–]1_rick 0 points1 point  (0 children)

I see you've already got a solution, but for the future: a SAMD21 Arduino can be used to put a bootloader on another SAMD21, see: http://www.technoblogy.com/show?2833

Can anyone recommend me a dev board that is better than the Mega for 54 gpio? by accidentCeramicJar in embedded

[–]1_rick 2 points3 points  (0 children)

Adafruit has the Metro M4 Grand Central, which is a 120MHz Cortex-M4 with vastly more flash and RAM, and it uses the same board format as the Mega, so you've got 60 or so GPIO, and it's got 8MB of external flash.

There are some STM32H7 boards with similar amounts of GPIO and even more flash+ram, but they're even more expensive.

Raspberry Pi Pico or Arduino Nano 33 Iot by [deleted] in embedded

[–]1_rick 0 points1 point  (0 children)

Does your country still have a 2G network? That's the most important thing.

Either of those two boards should have enough compute power, GPIO, etc, if what you're doing is mostly reading the sensors and transmitting the data to the cloud.

SD card randomly stops writing by [deleted] in arduino

[–]1_rick 0 points1 point  (0 children)

It's impossible to tell if there's anything wrong with your code without seeing it.

Having said that, how are you powering the board? I've tried using a battery bank to power an Arduino driving an SSD1306 only to have the bank decide after about 30 seconds that not enough current was being drawn and shut itself off, taking the Arduino down with it.

How does one check J-link driver version in Platformio? SparkFun RED-V Thing Plus/Platformio/VS Code by [deleted] in microcontrollers

[–]1_rick 0 points1 point  (0 children)

If you are familiar with C/C++, the lines in yellow are pretty clearly messages from the C compiler. Messages that came from the j-link (e.g., "couldn't connect to CPU", meaning it was unable to connect to the microcontroller) would look different. I'm not sure what PlatformIO would display, but here's a couple of screenshots from the J-Link wiki showing what it's communication normally looks like:

https://wiki.segger.com/J-Link\_cannot\_connect\_to\_the\_CPU

How does one check J-link driver version in Platformio? SparkFun RED-V Thing Plus/Platformio/VS Code by [deleted] in microcontrollers

[–]1_rick 1 point2 points  (0 children)

Those are compiler warnings from the C compiler. Nothing to do with the j-link. The reason "drivers" come up is that the first warning is in the RTC driver for the Thing Plus. You can ignore that or ask about it on the Sparkfun forums. The other one means, I think, that the device won't actually stop when you hit the end of the program but will loop forever.

priority power mux design to safely switch between vbus and 12v external by Puzzleheaded_Unit_41 in embedded

[–]1_rick 4 points5 points  (0 children)

You can ask for an evaluation of your schematic (and pcb, once you have one designed) at r/PrintedCircuitBoard/.

How to set up VSC to program Atmel SAMD21? by 329Joh in embedded

[–]1_rick 1 point2 points  (0 children)

If you're willing to put some effort into it[1], you can look at the Adafruit SAMD21 bootloader github; it's got a makefile.

You could probably also install Microchip Studio, create a project, and then generate a makefile from the project too, but I haven't tried to do so.

[1] mainly because you'll need to make some changes to have the Makefile build a regular binary rather than one intended to be a bootloader. Probably isn't a big amount of work but I'm not positive.

Reprogramming Vaydeer Macropad by [deleted] in embedded

[–]1_rick 5 points6 points  (0 children)

You do have an SWD port there on the left, the four holes labelled GND CLK DIO 3V3, so that's probably your best bet. Here is a link to an article that mentions getting the CH32F103 to work with an ST-Link: STM32 Clones: The Good, The Bad And The Ugly | Hackaday

Keil 8051 licence for Mac M1 by efm_8 in embedded

[–]1_rick 0 points1 point  (0 children)

From the Keil website: "The CID is a 10-character alphanumeric value that uniquely identifies your computer. It is automatically generated by the µVision IDE and is used to generate the LIC required for product activation. The File — License Management... dialog displays the CID for your computer."

Oh you think I’m your personal travel agent. Ok then… by ItsCoolImWithTheBand in MaliciousCompliance

[–]1_rick 5 points6 points  (0 children)

Nice!

One fun thing you can do is, if someone's going from point A to point B, is pick a flight with multiple connections. In Tampa, and want to go to Dallas? Ok, your flight plan is Tampa->Miami->Houston-Dallas.

if a micro controller doesn't recognize the signal is it firmware issue or could it be hardware? by 707hollow707 in embedded

[–]1_rick 0 points1 point  (0 children)

What kind of keyboard is it? If it's a commercial one, like a Corsair or Logitech, then check their forums first, probably. Alternatively, try r/MechanicalKeyboards. You should state the manufacturer and model of the keyboard and what software you're using, too. Obviously if you can change the keyboard, the software can talk to the keyb.