Open FLESHDESTROYER opened 1 month ago
I got enough components to make 2 PCBs and the same thing happened to the second one.
It’s not clear to me what you did, exactly? I tested the instructions as written and had no issues. Do you have an ST-link you can use to read the option bytes?
I followed your instructions exactly and everything was working fine. I got the firmware downloaded and it all looked good but then when I applied the option bytes, I think it said it timed out and disconnected and failed. Now I can't get it to show up in device manager or connect to the programmer. I tried shorting the pins and it worked for like a second but then disappeared again. This is all through usb. I just ordered an st link (not exactly sure if it's the right one). If you're willing to help further troubleshoot you can add me on discord @fleshdestroyer if it makes communication easier. Thank you.
On Tue, Jul 16, 2024, 22:11 Colton Baldridge @.***> wrote:
It’s not clear to me what you did, exactly? I tested the instructions as written and had no issues. Do you have an ST-link you can use to read the option bytes?
— Reply to this email directly, view it on GitHub https://github.com/spoter368/os3m-firmware/issues/7#issuecomment-2232210862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY6ZSREOQFGBRQOJTZ5P6FLZMXHDVAVCNFSM6AAAAABK5CM6CWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGIYTAOBWGI . You are receiving this because you authored the thread.Message ID: @.***>
Without any further debugging info, it sounds like you fell into the common pitfall of resetting the board or otherwise disconnecting before you set the option bytes. Once you flash the firmware, it is critical that you immediately change the option bytes, or else you get the issue as mentioned at the end of step 3. Not much else can be done besides getting an st-link at that point.
Both times I immediately went to set option bytes without disconnecting or resetting the board. I just followed the steps but it wasn't able to apply the option bytes. I'm pretty sure it timed out from trying to apply it and just disconnected it. I just got a V2 ST-LINK and I'm getting the message "UR connection mode is defined with the HWrst reset mode".
I believe this is referring to updating the actual STlink, not the OS3M mouse. I would update the firmware then see if you can connect to the mouse using STlink
I think the firmware is up to date for the st-link, it also seems to fail when I try to upgrade it anyway. "St link device lost when exiting upgrade mode". It still won't connect to the board saying the same HWrst reset mode. I just want this to work 😩
Do you have any other suggestions or advice? Could it be assembled incorrectly? I don't know why it didn't work over usb
Unfortunately I bought that ST-link also and it doesn't work with Cube Programmer. It just works with ST-link utility but that can't open .Elf files. I had to buy the less bootleg version. Try to return the one you bought and check the end of this thread to see how I bought the correct ST-link: https://github.com/spoter368/os3m-firmware/issues/4
Unfortunately I bought that ST-link also and it doesn't work with Cube Programmer. It just works with ST-link utility but that can't open .Elf files. I had to buy the less bootleg version. Try to return the one you bought and check the end of this thread to see how I bought the correct ST-link: #4
Thank you so much for the help! I did cheap out on this one assuming they were the same haha. I will return this one and try another... Can you tell if this one will work? https://www.amazon.com/gp/product/B07SQV6VLZ/ref=ox_sc_act_title_12?smid=A30QSGOJR8LMXA&psc=1
Thank you so much for the help! I did cheap out on this one assuming they were the same haha. I will return this one and try another... Can you tell if this one will work? https://www.amazon.com/gp/product/B07SQV6VLZ/ref=ox_sc_act_title_12?smid=A30QSGOJR8LMXA&psc=1
That one won't, two 2022 reviews say it doesn't work with Cube programmer (shows up as single digit serial #).
It's best to manually look through reviews, if you search "Cube" in the reviews it doesn't show all reviews that mention cube lol.
The better seller ("Aideepen") I bought from on the Amazon(dot)ca also sells on amazon(dot)com... however on (dot)com they have more mixed reviews; some saying it does work, some saying it doesn't. That's better than other sellers so I suggest buying from this link despite the gamble. Return it and sue me if I'm wrong: https://www.amazon.com/Aideepen-ST-Link-Programming-Emulator-Downloader/dp/B01J7N3RE6
Thank you, in glad I double checked. I ordered this one and hopefully it will connect.
On Wed, Jul 24, 2024, 19:59 hotsgit @.***> wrote:
Thank you so much for the help! I did cheap out on this one assuming they were the same haha. I will return this one and try another... Can you tell if this one will work? https://www.amazon.com/gp/product/B07SQV6VLZ/ref=ox_sc_act_title_12?smid=A30QSGOJR8LMXA&psc=1
That one won't, two 2022 reviews say it doesn't work with Cube programmer (shows up as single digit serial #). You just have to manually look through reviews, if you search "Cube" in the reviews it doesn't show the 1-star reviews that mention cube lol. image.png (view on web) https://github.com/user-attachments/assets/b07ee8a0-e425-4ca1-a31b-8e0d9a8ad855
The better seller ("Aideepen") I bought from on the Amazon(dot)ca also sells on amazon(dot)com... however on (dot)com they have more mixed reviews; some saying it does work, some saying it doesn't. That's better than other sellers so I suggest buying from this link despite the gamble. Return it and sue me if I'm wrong: https://www.amazon.com/Aideepen-ST-Link-Programming-Emulator-Downloader/dp/B01J7N3RE6
— Reply to this email directly, view it on GitHub https://github.com/spoter368/os3m-firmware/issues/7#issuecomment-2249085646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY6ZSRDBB6JC7PYBKNVSGKTZOA5XZAVCNFSM6AAAAABK5CM6CWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBZGA4DKNRUGY . You are receiving this because you were mentioned.Message ID: @.***>
Thank you so much for the help! I did cheap out on this one assuming they were the same haha. I will return this one and try another... Can you tell if this one will work? https://www.amazon.com/gp/product/B07SQV6VLZ/ref=ox_sc_act_title_12?smid=A30QSGOJR8LMXA&psc=1
That one won't, two 2022 reviews say it doesn't work with Cube programmer (shows up as single digit serial #). It's best to manually look through reviews, if you search "Cube" in the reviews it doesn't show all reviews that mention cube lol.
The better seller ("Aideepen") I bought from on the Amazon(dot)ca also sells on amazon(dot)com... however on (dot)com they have more mixed reviews; some saying it does work, some saying it doesn't. That's better than other sellers so I suggest buying from this link despite the gamble. Return it and sue me if I'm wrong: https://www.amazon.com/Aideepen-ST-Link-Programming-Emulator-Downloader/dp/B01J7N3RE6
The new ST LINK worked, thank you. Seems like everything worked as per the instructions but I tried to test the game controller to see if the axes would move but they don't seem to be doing so.
@spoter368 The new ST LINK worked and I followed your steps exactly but when testing with the game controller, nothing happens. I confirmed by pcb layout with @hotsgit and I even copied his firmware file and it still downloads properly but thats about it.
This is what I saw on my pc
this is what I saw on my laptop after using his firmware
Hard to say what’s wrong. The firmware works for myself and several others who have tested the board.
I want to comment more broadly on the project, to any others who are thinking about making one of these: this is not meant to be a product, this is meant to be a project. There is a requisite level of hardware, firmware, and software skills it will take to get it working. I have lowered the barrier to entry substantially by providing a known working set of hardware, firmware, and software on my machine. To get it working on your machine may require additional knowledge or setup. I will not be providing support for this project unless you provide clear evidence that something I have provided is broken or not functioning. Thank you and best of luck.
For any others who may get stuck here, this website is convenient for checking if proper HID reports are being formed and sent to your PC: https://nondebug.github.io/webhid-explorer/
I just assembled my os3m mouse and was able to get the firmware flashed. Continuing with the steps, I unchecked BOOT_SEL and clicked apply but it failed to program. Now I CANT connect the board back to the programmer, is there anything I can do?