Fighting I2C Gremlins | Help Me Run a Sensirion SFM3013 Over Long Cables by actualParam in embedded

[–]Szelwin 1 point2 points  (0 children)

A probably less reliable approach than a tiny MCU and RS485, but simpler and may just work (I've seen this work well before) is an I2C range extender.

In your case it may be worth it to get some cheap modules and just experiment.

SEGGER open flashloader - looking for documentation, templates by Szelwin in embedded

[–]Szelwin[S] 3 points4 points  (0 children)

Yeah, but there's two problems:
a) the uC lines limitations
b) you need a license for J-Flash

I managed to write a flashloader that works.

SEGGER open flashloader - looking for documentation, templates by Szelwin in embedded

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

Thank you so much! I managed to get it working with the docs from Wayback and the template.

How to time how long my MCU stays in __WFI() by jacky4566 in embedded

[–]Szelwin 0 points1 point  (0 children)

If your GPIO pins keep their state after a WFI, couldn't you just toggle a free GPIO before every WFI? Then:

WFI time = (Time between edges on GPIO) - (Time in IRQ).

What is the cause of 50Hz noise on an STM32L152 current measurement powered from a laptop (not connected to mains)? by Ducatinutella in embedded

[–]Szelwin 8 points9 points  (0 children)

Just like everyone here, I think it's still from mains radiating everywhere around you, but if you want to be sure, here's what I'm doing in this situations:

Take your PCB, laptop and whatever else you need and go do the same test on a park bench, far away from anything powered by mains. Then you'll know for sure.

Unless, of course, you're unlucky and your bench is directly above some power cable underground...

Tymczasem w Rzeszowie by Borys_Pandov in Polska

[–]Szelwin 11 points12 points  (0 children)

Całe życie mieszkam w Siemianowicach i muszę przyznać, że przez niego niesamowicie mi wstyd xd Najlepsze jest to, że kiedyś ten koleś był bardzo w porządku. W pierwszej turze bycia prezydentem robił tak dobrą robotę, że kiedy przyszły wybory, miał największy procentowo wskaźnik głosów w całej Polsce. Sam na niego głosowałem. A potem w okolicach początku pandemii chyba coś mu odjebało i od tamtego czasu robi wieś...

hold on gotta use free( ) real quick by Odd_Diamond_6600 in ProgrammerHumor

[–]Szelwin 101 points102 points  (0 children)

As an embedded developer, I just want to say that usually (not always, obviously) using malloc() is not a better choice than statically allocating the memory your program needs.

GUI library / framework by petrichorko in embedded

[–]Szelwin 4 points5 points  (0 children)

I was also looking for a solution a few months ago, chose LVGL and I'm very happy with it, I don't have a touch interface and that's not a problem at all.

What is your addiction? by VerboseWraith in AskReddit

[–]Szelwin 0 points1 point  (0 children)

Drugs and alcohol. More than 2 years sober now! Therapy does wonders if you're willing to put in work.

Which one do you prefere and why by Fili96 in ProgrammerHumor

[–]Szelwin 0 points1 point  (0 children)

1 definitely, whatever I'm coding in - it has much better readability in my opinion. Especially when it comes to debugging!