w87
May 24, 2024, 11:30pm
1
Hello,
Today, I received the Bus Pirate and started with the “Tutorial - Basics.” However, I encountered an issue in the “Blink Some LEDs” section. The result of “= 0b11111111” is zero. No matter which binary number I try to convert, the result is always zero. Does anyone know what might be causing this?
On a hunch … what result if you remove the space that follows the equal sign?
in other words, change:
= 0b11111111
into:
=0b11111111
w87
May 25, 2024, 12:58am
3
Thank you for the response.
If I remove the space, I receive an error. The command includes the space.
I compiled from main branch today, and the command worked correctly (with the space) for me.
Perhaps you have an older firmware?
The commit / SHA I built from:
850aadca17cb57bed12ab72b0a21edc9a6b49ece
ian
June 5, 2024, 10:45am
5
I have seen this error myself. Let me check the current build. I believe it is a bug in the new parsing routines.
ian
June 5, 2024, 10:54am
6
Thanks! It should be fixed. Explanation in cliche meme format:
How it started:
(rptr)+=2;
cmdln_args_get_bin(rptr, result, value);
How it’s going:
(*rptr)+=2;
cmdln_args_get_bin(rptr, result, value);
(forgot to dereference the pointer with a *)
1 Like