Skip to main content
Visitor II
September 16, 2021
Question

SBSFU - USB Custom HID Standalone Loader

  • September 16, 2021
  • 2 replies
  • 825 views

Hello guys, how is everyone?

I'm facing a challenge of creating a SBSFU standalone USB Custom HID loader for my project. I manage to integrate SBSFU using YModem examples and now the company that i work for decided that we need a loader of our own. I was able to setup a standalone loader firmware, linker is configured correctly and SBSFU goes to my standalone loader when a download is requested, got a trace uart message and everything looks fine. My problem is with CustomHID, i'm able to receive data in my microcontroller, but i can't send anything. I mean, the sending function returns HAL_OK, but my python script dont receive anything.

I configured my CustomHID following the video below:

https://www.youtube.com/watch?v=3JGRt3BFYrM

I used the CustomHID code that it's working in another project, same configs and etc, and i got the same behaviour, i receive data, but i'm not able to send it.

I also configured my ISR Vector table, just like the User Manual it says to, using SCB->VTOR = INTVECT_START;.

I tested my python script with the project that i mentioned above. Script works and receive data correctly, so the errors is something on the firmware side.

I honestly don't know what to do, since i'm using the same code that works on other projects, but only when i use it as a loader, it does not work. I feel like it would be probably a very silly thing to fix it, but i still couldn't find.

Can someone give me a hint on this?

    This topic has been closed for replies.

    2 replies

    Super User
    September 16, 2021

    Have you compared the device descriptors with the working project?

    MBuen.1Author
    Visitor II
    September 17, 2021

    Well, found out it was a OS problem. Windows was messing all up. Manage to solve.

    Tks for the response.