Skip to main content
Paul Mellor
Associate II
April 8, 2019
Question

USB Bug Report: NULL pointer access on deInit

  • April 8, 2019
  • 0 replies
  • 436 views

If a charger is plugged into the USB (rather than a computer) then USBD_MSC_Init() is not called. Consequently pClassData is left NULL. If the USB is then stopped via USBD_Stop(), then the USBD_MSC_DeInit() is called and the NULL pointer is accessed (written to). This causes the FLASH SR to have errors set (SIZERR, PGSERR), which in turn prevent subsequent flash erase operations due to initial error check.

This topic has been closed for replies.