2025-03-21 1:24 AM - last edited on 2025-03-26 4:09 AM by KDJEM.1
本人在实践过程中遇到一个问题。项目中需要用到外置flash芯片-W25q128。本人计划用f103C8T6的SPI2、DMA去通讯。用的是cube生成的工程文档。
第一次用的是STM32CubeF1 固件包 v1.8.6。串口打印不出flash芯片的ID号,串口发送0x0。
花了一天检查,最后用STM32CubeF1 Firmware Package v1.8.5。串口打印成功了,falsh芯片的ID 号为0xEF17.
请问这2个版本的包中对SPI2和DMA有啥异同吗?
2025-03-26 4:07 AM
Hello @白茶清欢;
I've translated your question with a web-based translation tool to increase the chances that you will get an answer from our experts and community members, as the majority communicate in English:
I encountered a problem during the practice. The project needs to use an external flash chip-W25q128. I plan to use the SPI2 and DMA of f103C8T6 for communication.
I used the project document generated by cube. The first time I used STM32CubeF1 firmware package v1.8.6. The serial port cannot print the ID number of the flash chip, and the serial port sends 0x0.
I spent a day checking and finally used STM32CubeF1 Firmware Package v1.8.5. The serial port printing was successful, and the ID number of the flash chip was 0xEF17.
Is there any difference between SPI2 and DMA in these two versions of the package?
Could you please share your project?
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-03-26 6:38 PM
2025-03-26 6:40 PM
Sorry, I can't share the project due to confidentiality requirements, but I can share my w25q128.c and.h files.
PA8 is CS software
2025-03-27 1:58 AM - edited 2025-03-27 1:59 AM
Hello @白茶清欢;
Thank you for updating post.
For the main changes in STM32CubeF1 1.8.6 firmware, I recommend you to take a look to STM32CubeF1 release notes.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.