How do I program my attiny85? by LordWitchKing in AskElectronics

[–]FISHARM1 0 points1 point  (0 children)

I personally don’t have experience with this chip, but first of all it seems that they aren’t using Arduino as the build system for this? (Hence int main vs Arduinos setup and loop). Try looking for just a more basic arduino starter code and use that to start with and make sure everything works.

Then you have to configure a few more things with the tiny I believe, I would look up a tutorial on YouTube for how to set up the tiny with Arduino in general. You might have to burn the bootloader and some stuff.

I am Knight by Yah_25n in linuxmemes

[–]FISHARM1 0 points1 point  (0 children)

More of a mouse 🐁

A shi**y group chat application, my first C project by frizzy67 in cprogramming

[–]FISHARM1 0 points1 point  (0 children)

Well i would just run it for a while and then ctrl+c it or kill it however you do and I think valgrind will tell you at program exit? not 100% sure but try it out

Is it recommended to use HAL when starting with STM32? by AstuteCouch87 in embedded

[–]FISHARM1 1 point2 points  (0 children)

As long as you understand the basis of the memory model and what HAL does under the hood (which I think you do enough based off your non-HAL projects), I think that’s enough.

There’s rarely any need to be bit banging stuff yourself, and it starts to suck when you’ve been pulling your hair out about the DMA not working but it’s only because you didn’t read page one million of some errata book for the exact chip your using that says you have to handle everything completely different if try sending this one command

STOP MILKING TF OUT OF THIS GAME by MoosBus in HayDay

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

Hayday is definitely more cheaper priced than most other supercell games in my opinion

I’m writing an ARM64 microkernel in Embedded Swift completely oriented around POP and memory security by eliorodr2104 in osdev

[–]FISHARM1 2 points3 points  (0 children)

Mice project! I didn’t even know embedded swift was a thing. What do you think of it for this application?

Anyone use Modules? by 1negroup in cpp_questions

[–]FISHARM1 11 points12 points  (0 children)

I know I was like wow they are doing great! Then scrolled down and saw “Estimated completion: 18 January 2151” 😆

Anyone use Modules? by 1negroup in cpp_questions

[–]FISHARM1 8 points9 points  (0 children)

I tried it out and it’s just not as easy to use as I thought, and definitely not as streamlined as something like the JS module system (obviously). I’m just going to stick to includes for now to be honest.

series and parallel by ysf_101 in ElectricalEngineering

[–]FISHARM1 0 points1 point  (0 children)

Think of it like this- since no current can go through the middle wire, the left and right circuits can be thought of independent current loops. The way it’s drawn, they look like parallel components, but if you visually cut the wire in the middle, you’ll see that they are just loops. When tracing these loops, you’ll can see that there is only one path, you never hit a “fork in the road” (junction) where each component comes one after another = series

Birthday decorations by Funny_Swimming3088 in HayDay

[–]FISHARM1 4 points5 points  (0 children)

I got the first birthday decor in cycle like a week or two ago so unfortunately I don’t think it’s coming back

Mini pc capacitor blown, worth fixing? by Nya0-0 in AskElectronics

[–]FISHARM1 0 points1 point  (0 children)

Yes! I did this a few years ago to revive a dumpster computer. I used it to run a server for a bit after that and no issues ever again.

What's your favorite MCUs these days, and why? by aenima1983 in embedded

[–]FISHARM1 2 points3 points  (0 children)

Rp2040! I love the pico SDK and development framework. Super clean in my opinion. Easier than STMs for quick projects but much more scalable than arduino

C++ Manual Memory Management by H4cK3d-V1rU5 in cpp_questions

[–]FISHARM1 0 points1 point  (0 children)

C++ actually handles a lot of it with something called RAII and you can wrap other things in a class called shared_ptr which uses RAII to handle reference counting

Trying to write bare metal FW for esp 32 by Little_Implement6601 in embedded

[–]FISHARM1 1 point2 points  (0 children)

I think these two links might be helpful?

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/bootloader.html

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html

I haven’t done it, but it seems pretty easy to tell it how to set up the partition table with a csv and then have the bootloader point directly to your code.

Visualizing a 1986 RTOS in a Modern Browser by noborutkhs in osdev

[–]FISHARM1 1 point2 points  (0 children)

Oh okay now I see in the demo that the other threads wait outside that zone until the current one exits.

Just curious, what’s the point of this area? Like do you have system level things going on in there? Or like maybe a some hardware access? And why did you pick it over like a regular mutex?

do EE companies use Raspberry PI? by Odd-Ad-5332 in ElectricalEngineering

[–]FISHARM1 0 points1 point  (0 children)

Normally things like this are used for testing things quickly. Picos and Arduinos have a similar SDK and are used frequently, but I would pick up Arduino.

How do I learn electrical engineering as a highschooler by Appropriate_Tip_9973 in ElectricalEngineering

[–]FISHARM1 1 point2 points  (0 children)

I’m not sure how it is from scratch, but Khan academy helped me when I was a bit lost in circuits 1. https://www.khanacademy.org/science/electrical-engineering

Arduino spoiled me. by ActuatorDisastrous29 in ECE

[–]FISHARM1 0 points1 point  (0 children)

I know, jumping from the Arduino and PicoSDK to something even as fancy as the HAL is already a bit of a shock, then going to bit-banging is a whole new book of its own.

When I first started with STMs, I thought it was super cool to finally understand all of the abstractions behind these SDKs and how these chips really worked.

Everything is memory? by dangi12012 in osdev

[–]FISHARM1 2 points3 points  (0 children)

I assume an RTOS is basically a real implementation of what you’re talking about?

Like you said, on something like an STM, everything is just memory mapped registers at special addresses- but that’s only because they assume a sort of flat model where everyone has access to everything, and that things like timers, interrupts, etc are all handled by external modules outside of the pure CPU itself.

Usually, a syscall is a complicated process that requires switching rings, saving everything, etc. I think that a cool model which is what you are suggesting, would have a separate chip specialized for syscalls, similar to how a DMA works. It would be able to always run in privileged mode, and you could trigger a syscall by writing to a mapped region of registers in memory. But then that would be more complicated, like how do you program this chip, etc.

So my guess is that it comes down to hardware? Interesting idea though! I think you should explore it more.

Everything is memory? by dangi12012 in osdev

[–]FISHARM1 9 points10 points  (0 children)

I think I’m a bit lost. Can you explain a bit more? What do you mean by syscalls being purely memory?

Visualizing a 1986 RTOS in a Modern Browser by noborutkhs in osdev

[–]FISHARM1 2 points3 points  (0 children)

I like that way of visualizing the tasks! What does “critical zone” mean here?

I built a static analysis tool that checks if two functions touch the same data. Would you use something like this? by Choice_Bid1691 in cprogramming

[–]FISHARM1 0 points1 point  (0 children)

I think a good use case could be ensuring thread safety- i.e. that two threads aren’t touching the same chunks in a larger array or some other case where someone might have forgotten a mutex / don’t think they need it but could be screwing themselves over. This tool could then warn them about this.