cancel
Showing results for 
Search instead for 
Did you mean: 

Replacing UART with USB for SFU. Getting Code 43 error- USB Device not recognize!!!

JChou.1
Associate III

Under SBSFU, I am able to run my custom application, and everything run fine. But changing the SFU defualt UART.with USB throughing error "USB Device not recognize!!!", I debug through SBSFU code, and USB stack(CDC and Devi ce only Configuration) initialize correctly.

I will highly appreciate for any help.

With regards

Jitu

13 REPLIES 13

I would suggest to deactivate all the SBSFU security features first ( But I think you already did it)

Have you integrated the USB IRQ call ?

something like

void OTG_FS_IRQHandler(void)

{

 HAL_PCD_IRQHandler(&hpcd);

}

and do you see any interrupt ?

If you have some interrupt then you can check the stack status

For a trial, you can also increase the heap size.

Hi Frantz,

It was SE_EnterSecureMode which was disabling the interrupt before USB stach runs. Solved the issue, now SBSFU running with USB.

Do you think is it efficinet to replace YMODEM protocol with custom protocol ???

As i have to also include CAN in SBSFU for firmware update.

with regards

Jitu

Hello Jitu,

"Do you think is it efficient to replace YMODEM protocol with custom protocol ???"

In the major case, the downloading time is not really an issue ( except in FUOTA case with RF has bandwidth is really low).

Then it's up to your requirement and also the fact you will have to implement your own PC tools for downloading.

Best regards,

Frantz

Ok, thanks