CubeMX removes HAL drivers when USB middleware enabled
I am using version 4.24.0 of the CubeMX plug-in for TrueSTUDIO (version 9.0.0) to create a project for a NUCLEO-F429ZI dev board. Things seem to work fine until I try to enable the USB middleware component. Then, for some reason, Cube MX removes the HAL driver from the project, causing all sorts of compile errors due to undefined references. Any ideas what might be going wrong?
Note: I also tried using the standalone version of CubeMX, but got the same result.