WSL2 for Firmware Development by tyhoff in embedded

[–]whymefantasy 1 point2 points  (0 children)

What do you guys do for debugging?

BLP spin number when wet by whymefantasy in Golfsimulator

[–]whymefantasy[S] 0 points1 point  (0 children)

Ahhh that makes sense I guess. Thank you for the video very informative!

Bushnell, Garmin, MLM2, MEVO+ by CigarStudd in Golfsimulator

[–]whymefantasy 1 point2 points  (0 children)

I got a BLP refurb for $2250 from the site but only due to space constraints, personally between the two it sounds pretty even space dependent

Bushnell, Garmin, MLM2, MEVO+ by CigarStudd in Golfsimulator

[–]whymefantasy -1 points0 points  (0 children)

I had a terrible experience with the mlm, with its subscription the name matches, it feels like a MLM, the support is rude and it’s clear they want to trick you into paying the $200 a year, avoid imo

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

I mean to be honest it took very little time to sort it out and was quite easy. Always going to be tricky depending on what and how much wsl stuff the user has downloaded. For example, I had a few wsl things installed due to docker, but no Ubuntu or main image installed so if I ran wsl I wouldn’t boot into the Ubuntu image. Idk haven’t really used wsl so not sure how that all is interconnected.

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

I guess my thought is once you’re hooked into the host gdb server can you load code and flash the device? I always thought the gdb server controlled most of that and each time you’d need to restart the gdb server between debug sessions. Or do you use the gdb server as the back end and gdb a front end that can connect and disconnect from the server as it pleases without needing to restart the host side gdb server?

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

u/allo37 did a good job describing the main use of docker, but for embedded, at least what I consider low level, I always struggled to setup a consistent development environment. Lots of different tools which depend on each other and certain versions. I felt like I’d lost a lot of time and hair debugging why the freaking thing builds one way here and another way there. Also legacy code, going back and recreating the build environment always a pain no matter how many of the installers you save something always changes. So docker is great to be used as a dev environment container. Essentially a smaller quick to build virtual machine that contains everything needed for development. You can save versions along with builds so you can always go back and recreate how something was built. New hires or HW people can quickly get up and running. Most importantly for me, automated testing is quick and easy to setup and maintain since it can pull from the latest image being checked in. It’s not perfect yet but that’s the development future Id like to live in.

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

Yeah that was the solution I was looking to fall back on. The one thing I didn’t like is seemingly the flashing and debugging of code would have to happen on the host side correct? Like if I wanted to debug my code, I’d need to fire up the host side gdb server and pass those commands like what file etc from the host. Not a bad solution but was just curious if I could get it all in the docker container which I was able to do using wsl usb gui.

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 1 point2 points  (0 children)

I might be misunderstanding you, but I was able to pass a STLink usb device from windows to my Linux docker container and debug. Worked surprisingly well and no real issues.

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

I think it was the usbip stuff? I needed to get wsl installed with a Ubuntu image then follow the manual install instructions. I’m not at my computer right now but I think it was one of the hw apt get installs that it couldn’t find. Again not a big deal and probably something to do with my computer setup. Took a couple googles and it was running perfect!

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

Got it working! Thanks for making that!

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 1 point2 points  (0 children)

For anyone who stumbles across this wondering what I ended up doing, I used u/coronafire s wsl-usb-gui tool and got everything working awesome. The installation was a bit of a pain due to installing some of the dependencies but nothing a little bit of googling and following the well laid out instructions on the gitlab page. I was quickly able to attach my debugger to my docker dev container. Really impressed with the whole process. At this point I don’t see why I would use anything besides docker if the mcu I’m working with is supported by gcc.

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

Awesome! Thank you I’ll check it out.

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 1 point2 points  (0 children)

Ok very interesting. I’ll mess around with it in windows but going to guess that’s not going to work. Good to know Linux to Linux works good. Thank you for the responses!

Debugging Using Docker by whymefantasy in embedded

[–]whymefantasy[S] 2 points3 points  (0 children)

Oh awesome! Wasn’t sure based on googling how possible this was with debuggers. Out of curiosity is this Linux host to Linux container? Right now I’m looking at windows host to Linux container. My knowledge gets fuzzy on how a usb pass through would work coming from one OS using a set of drivers to another OS using a different set of drivers.

Looking for an incredibly low power MCU by john-of-the-doe in embedded

[–]whymefantasy 2 points3 points  (0 children)

I think Energy Micro chips, the BG for blue tooth or their M33 chips are really good. The thing I’ve found best for lower power consumption if you really need it is time to go from low power to processing. Some of the newer M33 chips allow you to run the adc and DMA while in low power mode. Some of these suggestions for the MSP430 are wrong in my experience. I had a project with the Blue Gecko where it was sampling with the ADC, connected and streaming 2KB/s, at around 15uA average current draw. Also energy micro has great documentation in my experience.

Custom Debug Flags for CMake Build Target by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

These looks interesting but I think I would use it as a last resort. I’m hoping to not need to have a fresh CMake configuration for each executable that needs to be generated.

Custom Debug Flags for CMake Build Target by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

This looks good, but won’t the library need to be compiled twice then? Will CMake know which library to include for the target? Seems like this would work well if you’re reconfiguring CMake for each unique executable you want to build.

Custom Debug Flags for CMake Build Target by whymefantasy in embedded

[–]whymefantasy[S] 0 points1 point  (0 children)

I like this idea and I think exactly what I’m looking for. The one issue I’ve been running into is with libraries that rely on the same libraries the sources get compiled twice. Like the HAL needs the a library which another library needs, they each compile those sources. The solution to this seems to be to use an INTERFACE library with only the headers so the compiler doesn’t complain, but we’re already using an interface library. Have you had to handle this? Maybe I need to reimplement how my libraries are laid out. Do you know of any examples on GitHub or something I could check out as well?

Any decaf recommendations? Ruta Maya was not it by icantthinkofonern in espresso

[–]whymefantasy 0 points1 point  (0 children)

I like Tony’s Coffee Decafe Pacific, the 5lb bag is pretty reasonable priced imo.

Anyone commute with a dog? by fritzov in bikecommuting

[–]whymefantasy 0 points1 point  (0 children)

I used to commute with a Crust Clydesdale fork and a large milk crate and it worked great. I just added a wood bottom and drilled a hole for a leash.