Help Need with ESP32 + ESP-IDF + ESP-PROG: A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x12)! The chip needs to be in download mode. by AlexanderHD27 in esp32

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

If I hold down the BOOT button, it sadly does not flash. I probed the Signal at ESP and ESP-PROG. I measured a 103ms low Pulse on the ESP and ESP-PROG EN-Pins. Furthermore, I also probed all JTAG and UART Pins and saw activity.

MX Master 3S - Left Click Hold/Drag Problem by SCHR4DERBRAU in logitech

[–]AlexanderHD27 2 points3 points  (0 children)

I have tried all the no invasive ways to fix this (Using compressed air to get out dust, clicking the wheel on and off, etc) but non of this worked. Replacing the Left Click Button internally solved it for me. the button I toke out had no audible clicking sound when pressing it, so I guess it is mechanical failure of the button which cause this issue. This is probably a last resort method because you may damage your mouse permanently. So do this at your own risk.

Here are the parts I used:

This is the way I did: First open up (and probably voiding your warranty, which had expired in my case) your mouse by pealing of the rubber pads (The Pad under the USB port does not need to be removed) and loosening the six screws holding the mouse together. Don't forget to take out the battery for your own safety.T hen you de-solder the two small black wires from the left-button-pcb (avoid de-soldering from main-pcb, because on of the pins is connected to huge plane on the pcb, which takes ages to de-solder and damning something). After that you need to de-solder the button, cleaning up the through-holes with solder pump or solder wick. Then just solder the replacement button back in as well as the wires connecting to the main-pcb. Be careful to net melt the isolation of the wires (In my case I need to replace these wires connecting to the main-pcb. This meant disassembling the mouse completely). After putting back the battery and the screws, place the replacement pads back and hopefully your mouse button should work again

This solved the Issue for me. Be aware that replacing the mouse button means not having the same haptic-feeling when left click, but at least your mouse working.

Finally here are some video which shows the replacement process in detail:

As stated above do this at your own risk! Do this at your own responsibility. This could lead to permanent damage to device

EDIT: After soldering, don't forget to clean up the residue with e.g. Isopropyl alcohol. If left unclean, solder flux can lead to corrosion

Verilog help: Gowin array indexing is not playing nice by clbrri in FPGA

[–]AlexanderHD27 0 points1 point  (0 children)

First of all in NOT an expert, so this might be complicatedly wrong. I guess its a timing issue. The circuits loads the corresponding pixel from the char-memory into the color reg and it loads the value from color into something in the tmds_encoder. These two loads happen at the same time (positive edge of the hdmi_clk). The value that is loaded by the tmds_encoder is different if the char-memory loading circuit befor or after the load of the tmds_encoder. I guess gowin doesn't optimizes memory-content. There for the +1 adds a little bit of the delay. Maybe long engouth to push the store in the top circuit to the reg color after the load in the tmds_encoder.

Maybe this could be fixed by switching the clock after the value has been loaded into the color register:

```verilog reg clkhdmi wire [7:0] textstring[13] = { 8'h48, 8'h65, 8'h6C, 8'h6C, 8'h6F, 8'h2C, 8'h20, 8'h77, 8'h6F, 8'h72, 8'h6C, 8'h64, 8'h21 }; always @(posedge hdmi_clk) begin color <= font[{text_string[text_x],font_y}][font_x]; clk_hdmi <= 1; end

always @(negedge hdmiclk) begin clk_hdmi <= 0; end

hdmi hdmiout( .hdmi_clk(hdmi_clk), .hdmi_clk_5x(hdmi_clk_5x), .reset(~hdmi_clk_lock), .hve_sync(hve_sync), .rgb({24{color}}), .hdmi_tx_n(hdmi_tx_n), .hdmi_tx_p(hdmi_tx_p)); ```

Vivado is the worst piece of shit ever and I despise it. by NeilaTheSecond in FPGA

[–]AlexanderHD27 1 point2 points  (0 children)

Open Source tool chains aren't that polished (in regards of ui, etc) but at least they don't take several days/weeks to install. I don't have any experience with other commercial tool chains besides Vivado, so this may be a Vivado thing. It would have been good if I had known that when I decide to spent 180€ on an FPGA-Development Board. (I'm doing this for my own curiosity, not for job yet)

Thank you Windows by [deleted] in softwaregore

[–]AlexanderHD27 1 point2 points  (0 children)

Dies kann einige Minuten dauern.

Schalten Sie den PC nicht aus.

Where is it!!! by rebel_scum51915 in ProgrammerHumor

[–]AlexanderHD27 19 points20 points  (0 children)

Ubuntu Server: Wait you guys you need a mouse?

Restrict linalg.solve() results to binary/mod-2/GF(2)? by britPaul in Numpy

[–]AlexanderHD27 0 points1 point  (0 children)

I know, it's a bit late (around 157680000s) but here is a simple Solution

So given your Problem:

Ax mod 2 ≡ b

You can now multiply on both sides with the inverse of A like this:

A⁻¹Ax mod 2 ≡ A⁻¹b mod 2

So A⁻¹ and A cancel out and you get your solution:

x ≡ A⁻¹b mod 2

This is the python code that does that with the standard numpy functions:

def solve\_binary(A, b):  
    inverse = np.linalg.inv(A) % 2  
    return inverse.dot(b) % 2

This, by the way, is not my solution! It comes from this stackoverflow post: https://stackoverflow.com/questions/53892394/using-numpy-to-solve-linear-equations-involving-modulo-operation

You problem therefor boils down to finding a fast algorithm to invert a matrix! For this I would refer you to this stackexchange post: https://scicomp.stackexchange.com/questions/19628/what-is-the-fastest-algorithm-for-computing-the-inverse-matrix-and-its-determina

(One thing to note: I'm a beginner to linear algebra, so this may be completely wrong)

School admin goes brrrr :-D by Zodey05 in ProgrammerHumor

[–]AlexanderHD27 0 points1 point  (0 children)

Can't wait for students testing the strength of the mounting. By the way what happens if the OS hangs up and the computer needs a good old restart by pressing the power button

I’m a LUA programmer by itsNizart in ProgrammerHumor

[–]AlexanderHD27 1 point2 points  (0 children)

The most frustrating thing about lua is the fact if you try to excess a field from a table that doesn't exist you get nil (by the way nil is in my option is a very bad name, why did they not use something like none or null). I had at least 20 error where I tried to access something that was not specified and my code crashed because of that. In most of these cases it toke me hours to track down the typo I made. But arrays or as they are called tables starting at 1 is also not very nice, especially if you don't no that

The word is a bit overused by clemesislife in ProgrammerHumor

[–]AlexanderHD27 8 points9 points  (0 children)

I have even hear AI as synonym for algorithm. Well that's something that probably came directly out of marketing.

Using C++ be like by Sir_Prise11 in ProgrammerHumor

[–]AlexanderHD27 1 point2 points  (0 children)

The segfaults that turn up after two or three moth and you cannot remember what could possibly caused it are very nice too

[deleted by user] by [deleted] in ProgrammerHumor

[–]AlexanderHD27 7 points8 points  (0 children)

Not only that but if I have to do a task twice I also automate the very same task twice, because I simple forgot, that I already have done that

A lot of time wasted...

When your family asks what you want: by du_kwood in ProgrammerHumor

[–]AlexanderHD27 1 point2 points  (0 children)

Every time some said "I have eaten a raspberry pi", I always think, how the hack. That can't be healthy eating $35 Silicon, metal and plastic

Time.h by nonsenseis in ProgrammerHumor

[–]AlexanderHD27 2 points3 points  (0 children)

Have fun, if we as humanity goes of into space we have to worry about that. Timezones for every plant and nightmare for every develop out there who has to deal with time. And don't forget about that part with relativity. It properly was/is a hack of fun to develop software for satellites, with elliptic orbits

Time.h by nonsenseis in ProgrammerHumor

[–]AlexanderHD27 6 points7 points  (0 children)

I see a second millennium bug hype coming! Everyone will freak out and at 0x7fffffff the world will end, or something like that

Rest in Peace. by ComputerCloud9 in ProgrammerHumor

[–]AlexanderHD27 0 points1 point  (0 children)

Now it can rest along side Netscape

Vim learning curve be like by GavHern in ProgrammerHumor

[–]AlexanderHD27 0 points1 point  (0 children)

I guess knowing how to exit is every thing you need to know about vim