A distinction must be made between
- the configuration file IOC, which describes the current basic configuration
- the generated programme framework, in which one places one's own code between the USER CODE BEGIN - USER CODE END markers
The IOC uses STM32CubeMX as the starting point for programme generation. The IOC is also used for later programme generation after a possible change in the configuration (further peripherals or pins to be used, etc.), whereby the own code parts between the above markers are retained (as long as the respective peripherals are not removed).
The NVIC priority is now stored in the IOC at the mentioned location for later programme generation. In the generated source code, however, the priority stored in the IOC is also inserted, e.g. in USB_HOST\Target\usbh_conf.c, depending on the USB function selected using e.g.
HAL_NVIC_SetPriority(OTG_FS_IRQn, xxx, 0);
I hope I understood your question correctly and could help you with it?
Regards
/Peter