优化实现W25Qxx板级驱动

This commit is contained in:
冯佳
2026-01-23 11:15:05 +08:00
parent 5dce1bf382
commit 0a30f956b4
7 changed files with 545 additions and 542 deletions

View File

@ -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 */