History: usbh_drv_synopsys_otg


This page describes all changes made to the usbh_drv_synopsys_otg package, the USB Synopsys OTG Host Controller, since its release.

Version

3.21 (2020-06-02, 16:20):

  • Power-off, power-on timings changed during initialization and re-connection to fix seldom connection problems with certain devices. New config options introduced to be able to control these times as those may vary depending on the target HW (SYNOPSYS_RESET_START_WAIT_TIME_MS, SYNOPSYS_RESET_END_WAIT_TIME_MS, SYNOPSYS_POWER_STABILIZE_TIME_MS and SYNOPSYS_POWER_OFF_TIME_MS).

3.20 (2020-04-29, 16:37):

  • Connection and disconnection of devices made more reliable:
    • In case of transfer remove, first the appropriate Tx or Rx FIFO gets flushed after the AHB master got idle, and then the channel gets disabled.
    • The port connect status (PCSTS) bit is used to detect a disconnect event instead of the PCDET bit, which only indicates a connection event.
    • The Synopsys core gets reset if the synopsys_uh_hub_scan() function reports disconnection, in order to avoid the faulty behaviour of the interrupt handler.)

3.19 (2020-03-24, 11:27):

  • Synopsys core reset may be applied if disconnection happens during the USB reset sequence. Previously this could cause enumeration failure in rare situations after a disconnect/connect sequence during enumeration.

3.18 (2020-03-13, 14:57):

  • Warnings removed.
  • PSP added for stm32f47x. 

3.17 (2019-09-23, 09:09):

  • Eliminated compiler warning.

3.16 (2019-05-29, 18:30):

  • Added OTG SRP and HRP support.

3.15 (2019-02-22, 13:14):

  • Introduced new configuration option SYNOPSYS_UH_DISCONNECT_NORESET. When device disconnection happens during port reset, the driver resets the Synopsys core. In certain cases this locks up the core (OTG_GRSTCTL CSRST autoclear never happens). This configuration option disables Synopsys core reset under this circumstance.
  • Removed unnecessary psp_isr.h include. (Build failed with OAL that does not use psp_isr.)

3.14 (2019-02-14, 16:46):

  • Wait for soft reset to complete. In certain cases (high compiler optimization) not waiting for reset complete could hang up USB core.

3.13r2 (2018-08-29, 18:10):

  • Document HTML link added to the documentation folder.
  • History and document files renamed to the package name.

3.13 (2018-02-22, 14:54):

  • Disconnecting a device during a transmission or reception might rarely cause non-deterministic behavior, including a processor fault caused by invalid memory access or the USBH stack becoming inoperative. It could also possibly enter an endless loop in non-RTOS mode.

3.12 (2017-12-14, 14:34):

  • When multiple USB hubs are stacked and hub is disconnected, EP0 may hangup. The transfer's retry count was decreased as a workaround.

3.11:

  • Calls of oal_task_sleep() eliminated from interrupt context.
  • Missing OAL_ISR_PRE/OAL_ISR_POST macros added.

3.10:

  • Compiler warning eliminated.

3.9:

  • STM32's OTG_HS core could hang during initialization when used in HS mode with ULPI.

3.8:

  • Added workaround reporting port change when port is disabled accidentally without any known reason.

3.7:

  • Core could unintentionally start acting as device after device disconnection, preventing further connections on the port.
  • Several GCC warnings eliminated.

3.6:

  • STM32's OTG_HS core could hang during initialization when used in FS mode with internal PHY.

3.5:

  • Added SW workaround for further port connection related issues.
  • External timer introduced instead of the internal frame counter of the Synopsys core.

3.4:

  • Accidentally HW reports successful USB reset when a LS device is connected, while it does not start communication to the device. The SW workaround for this case has been introduced and can be enabled with the new configuration parameter SYNOPSYS_UH_CHECK_FS_RESET.
  • psp reset_start() and psp_reset_end() introduced instead of reset().

3.3:

  • Stopping and starting the FS core could sometimes lead to a lockup in the driver causing further connections to fail.
  • Made compatible to new psp_usbh_synopsys_otg major version.
  • Module init, start, stop, delete functions cleaned up.

3.2:

  • Disconnection of a device from the root HUB could sometimes lead to a lockup in the driver causing further connections to fail.

3.1

  • Module renamed to usbh_synopsys_otg.

2.31:

  • Updated to work with USB host base major version 3.

2.30:

  • USB host lockup could occur if transfer status was polled with usbh_transfer_status() function.

2.29:

  • FS mode working again (if STM32UH_FS_USED is set to 1).

2.28:

  • used flag never cleared for device address zero.
  • INT transfer NYET/TXERR handling applied for BULK transfers as well.
  • non-periodic transfers prohibited to start (just like INT transfers) in the same frame a SPLIT transaction has started in.

2.27:

  • Reset USB OTG HS module in stm32uh_start() function.

2.26:

  • sometimes transfers didn't finish correctly in case of device removal or transfer stop in case of timeout.

2.25:

  • added support for remote wakeup.
  • fixed the case when a FS/LS device behind a HS hub goes to suspend.
  • fixed the case when a HS Hub responses with a NYET to a CSPLIT-IN.

2.24:

  • fixed suspend-resume issue.

2.23:

  • fast connect-disconnect issue solved.

2.22:

  • No transfers started from transfer_start() api function to avoid possible starvation of pending INT transfers.
  • Added protection against the case when a device sends more data than requested (buffer overflow eliminated).

2.21:

  • Disconnect of device0 (directly from port) fix.

2.20:

 - configuration reorganized.

 - resource deletion added to stm32uh_delete.

2.19:

 - handle INT OUT endpoints as bulk.

2.18:

 - stm32uh_start(): the PWRDWN bit in the GCCFG register is now set only in case an internal FS transceiver is used (for the OTG_FS, or for the OTG_HS when used with internal FS PHY), PB14 and PB15 couldn't be used as GPIO is PWRDWN was set if used with ULPI.

2.17:

 - _stm32uh_schedule(): td.retry set back to original value.

 - add_ep(): removed debug code setting interval to constant 1.

 - stm32uh_get_frame_number(): value divided by 8 in case of a HS link.

 - periodic transfers are only allowed at the beginning of the frame and can never be executed after a non-periodic transfer (in the same frame).

 - periodic transfers are not allowed after split transactions in the same frame.

2.16:

 - SPLIT communication fix in case ONE_NAK_PER_FRAME = 0.

 - disconnect fix in case case ONE_NAK_PER_FRAME = 0.

2.15

 - USB reset delay fix: 10ms instead of 1ms.

2.14

 - fixes regarding USB reset.

2.13

 - several fixes regarding SPLIT transactions.

2.12

 - added support for two units (using OTG_FS and OTG_HS parallell).

2.11

 - INT endpoint interval calculation fixed for HS devices.

2.10

 - root hub disconnect issue fixed.

2.9

 - driver made independetnt of psp (includes psp header instead of stm32f10x/20x reg. def.).

2.8

 - hw specific init changed.

 - non hw specific init moved to stm32uh_init().

2.7

 - added support to run with internal FS PHY instead of external ULPI.

2.6

 - new register definition file hcc_stm32_regs.h used.

 - added call to stm32uh_hw_stop() from stm32uh_stop().

2.5

 - fix in add_ep() for when hub is present.

 - fixed issue with fast connect/disconnect when ONE_NAK_PER_FRAME is enabled.

2.4

 - _stm32uh_remove_transfer(): calls of oal_task_sleep() removed (interrupt context).

 - KEIL compilation warnings eliminated.

 - call of cb_fn() removed (done in the upper layer).

2.3

 - corrected NP_FT_REMAIN value for OTG_FS.

 - fixed problem with fast connect-disconnect.

 - stm32uh.h: always used OTG_xS_IRQn; defined in config_usbh_stm32uh.h if not defined in library include file.

2.2

 - _stm32uh_remove_transfer(): fixed channel halting problem.

 - added version number check to stm32uh.c.

2.1

 - Initial release.