-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigation on why the upload does not work #1
Comments
I tried multiple bootloaders on STM32F401CCU6 but non of them had working HID exept WeAct, the code in this project was from Sloeber. Do you have binary that works ? |
Hi! So my board has a STM32F401CDU6, the bootloader is confirmed to work. AFAIK it will work flawlessly on the 401CC too. In the case you want to try the binarieds, I am attaching the binaries here in the .zip file (both .bin and .hex file, you can use the one suits you the most). I also searched the internet since 2022 (maybe even earlier) and couldn't find any prebuilt binaries that worked. In the end I had to compile from source from this repo to get something to work. Then I tried to build the binaries and make them available, you can find them under the releases in this Github page I created. I hope it can help. Please let me know if it works or not, and feel free to ask any questions. |
I tested your binary it works perfectly, I can now upload code directly Platform IO using HID mode. I'll try to compare your code with mine but if there is already a working version don't see lot of sense. Thank you. |
I am very happy to hear that! If you need anything, let me know. |
Hi @xromansx, I took some time and compared the version of your repo to the Serasidis one, more specific a fork created by Samveen, which has the modifications to make the F401 and F411 work.
By comparing the code, all the changes you implemented are sound. The USB HID configuration works quite well, but I guess there is something wrong when linking the HAL files. The custom HID function that was supposed to handle the data coming from the PC is never called. I took a picture of the working version's call stack, so that might ease your debugging.
(sorry for the potato quality, I just realized later that a screenshot would be much easier to read)
Sorry for not being able to help with the linking part, I am quite noob with VSCode/PlatformIO.
I am using Sloeber to develop here currently. In any case, if you want the project, you can find the code here.
I really like the idea of having a working bootloader for the Black Pills and I've been working towards that goal too. Feel free to contact me about this.
The text was updated successfully, but these errors were encountered: