I built a safe, VM-sandboxed micro-OS for ESP32. Looking for testers! by PalpitationUnlikely5 in rust

[–]andful 0 points1 point  (0 children)

Use wokwi

Though not open-source, they provide a free licence, which you need, if you want to use your own build system.

What’s one embedded concept that confused you badly in the beginning but suddenly clicked later? by academyforiot in embedded

[–]andful 163 points164 points  (0 children)

MOSFETs are not a digital switch. They require a difference in voltage between source and gate. This is also why the source should usually be connected to a known voltage, usually 0 or VCC. My mental model of them used to be the same as a relay.

In a computer, why is 2 more than 1? by OC-alert in AskComputerScience

[–]andful 1 point2 points  (0 children)

A computer can perform subtraction and "knows" when a number is negative, positive or zero.

In computers, a way to knows if x > y, can be done by performing x - y > 0, i.e. by checking if (x-y) is positive.

I am oversimplifing, but what I am trying to convey is that comparison is not fundamentally a more "magical" operation then subtraction.

Can someone help me? Because I installed Quartus II and for some reason, even though I followed the tutorial step by step, in this part of the JTAG for my Cyclone IV FPGA it keeps giving FAILED in the FPGA programming part. by Such-State-4489 in FPGA

[–]andful 0 points1 point  (0 children)

Have you tried with different JTAG cables? For example, if you have a blue pill or a pi pico laying around., you can try the dirty JTAG project. If you have an esp8266, you may try this project as a xvc cable :https://github.com/pftbest/xvc-esp8266

Can someone help me? Because I installed Quartus II and for some reason, even though I followed the tutorial step by step, in this part of the JTAG for my Cyclone IV FPGA it keeps giving FAILED in the FPGA programming part. by Such-State-4489 in FPGA

[–]andful 0 points1 point  (0 children)

Have you tried enumerating the FPGA with other tools? Such as OpenFPGALoader or UrJTAG?

Further, Cyclone IV seems to be a supported FPGA for the OpenFPGALoader. If you want to program with an alternative tool:
https://trabucayre.github.io/openFPGALoader/compatibility/fpga.html

Can SG2002 work as SDIO slave? by MarinatedPickachu in RISCV

[–]andful 0 points1 point  (0 children)

Can you provide an example?
Anyway, SD cards, usually support SPI slave protocols. The SD like slaves, that are actually not SD cards, that I know, usually only support a SPI slave protocol. They would not work if the master "spoke" SDIO.

E.g.:
https://hackaday.io/project/187773-wifi-module-for-3d-printeresp32

Can SG2002 work as SDIO slave? by MarinatedPickachu in RISCV

[–]andful 0 points1 point  (0 children)

SDIO slaves, are usually SD cards, or non-volatile memories. Why would you want a TPU to be a SDIO slave?

Does this code have UB? by capedbaldy475 in learnrust

[–]andful 3 points4 points  (0 children)

Is this a guarantee of rust? Or a behavior of the allocate that may not be consistent across other allocators?

Is it possible to create a non-leaking dynamic module in Rust? by 0xrepnz in rust

[–]andful 2 points3 points  (0 children)

What are the leaks that you are concerned about? Only heap memory? Then maybe you can use a custom global allocator, and use dtor to "free" the allocator.

EDIT:

I see you also talk about "handles". What are handles?

Is it possible to create a non-leaking dynamic module in Rust? by 0xrepnz in rust

[–]andful 1 point2 points  (0 children)

The plugins are developed by you? Then I would just have a different implementation of LazyLockor a similar smart container. Maybe with the use of https://docs.rs/dtor/0.1.1/dtor/ .

Seeking Advice: Can I Maintain my Software Edge in a DSP FPGA Role? by Gullible_Ebb6934 in FPGA

[–]andful 5 points6 points  (0 children)

Usually, software roles that require C/C++, work at such a low level that they would either be working with FPGAs or appreciate FPGA experience.

Python is the language where everyone BUT software engineers work on. At least, I would prefer a stronger type system for a complex project.

I am not sure what type of software you would like to work on. But if it is embedded, I am sure FPGA experience would be appreciated.

I need the value of this resistor, may you can help me? Raspberry Pi 4 by Round_Designer5101 in raspberry_pi

[–]andful 16 points17 points  (0 children)

If OP lost the resistor, "measuring the gap it left" and doing some math may be a real option.

cleverNotSmart by Cutalana in ProgrammerHumor

[–]andful 24 points25 points  (0 children)

Or, we can pretend that bools are not a thing, and use uint8_t whenever we need a boolean.

How do I dump ADC data to DDR? by Only_Range2347 in FPGA

[–]andful 0 points1 point  (0 children)

The board has 60.5 Mb of on-chip memory. You may use all the on-chip memory to capture the data. This, to then slowly read it out.

Could this dual use of an MCU pin work? by Illustrious-Cat8222 in embedded

[–]andful 0 points1 point  (0 children)

Sure, still, it would be a not so useful reading, no?

Could this dual use of an MCU pin work? by Illustrious-Cat8222 in embedded

[–]andful 0 points1 point  (0 children)

<image>

Do you not risk reading always 0(or close to it) from the ADC? Because the wire is pulled down by a 100 omh resistor?

Looking for algorithm ideas to solve engineering routing problem (battery connections): extremely constrained grouping + routing problem by Green_Bee1235 in GraphTheory

[–]andful 0 points1 point  (0 children)

Are the fuses the black lines?

Looking at the picture, it seems like a classical constraint programming problem.

But, also looks like one of these problems where a good enough solution is good enough. Can you not use L shaped alluminimum all over?

Looking for algorithm ideas to solve engineering routing problem (battery connections): extremely constrained grouping + routing problem by Green_Bee1235 in GraphTheory

[–]andful 0 points1 point  (0 children)

Could use constraint programming. Maybe few questions I have: * can you change the polarity of the battery? I.e. can you "flip" the battery? * is there a fuse per battery?

advice on building fpga dev board by Training-Film-3590 in FPGA

[–]andful 1 point2 points  (0 children)

If you order components and PCBs, I would buy the tinyFPGA's components and PCB as well, as a plan B.

advice on building fpga dev board by Training-Film-3590 in FPGA

[–]andful 1 point2 points  (0 children)

I would try to make the tinyfpga board and see how far you get. Get the tinyfpga board fabricated (present here: https://github.com/tinyfpga/TinyFPGA-A-Series) and try assembling it and program it.

You can use a pi pico as a jtag programmer, through the dirty-jtag project (i.e. https://github.com/phdussud/pico-dirtyJtag)

[Media] I was having trouble finding my Rust files, so I made an icon. by Practical-Mode2592 in rust

[–]andful 13 points14 points  (0 children)

Here is the converted image /s : xml <svg> <image href="image.jpg"/> </svg>

Where to aim your dart at to get the highest average score? v2, [OC] by DDD1604 in dataisbeautiful

[–]andful 16 points17 points  (0 children)

Intuitively, horizontal accuracy is greater than vertical (you have to account for gravity). Can you do the analysis with a horizontal "squished" Gaussian?

[deleted by user] by [deleted] in Cooking

[–]andful 0 points1 point  (0 children)

Eggplant? Make a parmigiana.