优化实现W25Qxx板级驱动
This commit is contained in:
@ -129,6 +129,12 @@ int main(void)
|
||||
}
|
||||
} else {
|
||||
log_error("W25QXX initialization failed\r\n");
|
||||
/* Try to read device info even if initialization failed to debug SPI connection */
|
||||
w25qxx_device_info_t device_info;
|
||||
if (bsp_w25qxx_get_device_info(&device_info)) {
|
||||
log_error("Debug - Read ID: Manufacturer=0x%02X, Device=0x%04X\r\n",
|
||||
device_info.manufacturer_id, device_info.device_id);
|
||||
}
|
||||
}
|
||||
/* USER CODE END 2 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user