Question
STORAGE_IsReady_HS() function contains garbage
Posted on September 23, 2014 at 01:55
Hi All
Cube 4.3.1/Keil/F4:When generating a cube project that includes a USB(HS) mass storage driver, if the file ''USBD_Storage_if.c'' already exists in your project AND has been modified within *USER CODE BEGIN* for the hooks, when you re-generate the project, the ''STORAGE_IsReady_HS()'' function ends up as the following:int8_t STORAGE_IsReady_HS (uint8_t lun){ /* USER CODE BEGIN 11 */ /* USB Mass storage Standard Inquiry Data */int8_t STORAGE_Inquirydata_HS[] = {//36 /* LUN 0 */ 0x00, 0x80, 0x02, 0x02, (STANDARD_INQUIRY_DATA_LEN - 5), 0x00, 0x00, 0x00, 'S', 'T', 'M', ' ', ' ', ' ', ' ', ' ', /* Manufacturer : 8 bytes */ 'P', 'r', 'o', 'd', 'u', 'c', 't', ' ', /* Product : 16 Bytes */ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '0', '.', '0' ,'1', /* Version : 4 Bytes */}; /* USER CODE END 11 */ }If this file is manually deleted before re-creating the cube project - it is created OK.Any ideas?