当前位置:网站首页>Stm32f411 SPI2 output error, pb15 has no pulse debugging record [finally, pb15 and pb14 were found to be short circuited]
Stm32f411 SPI2 output error, pb15 has no pulse debugging record [finally, pb15 and pb14 were found to be short circuited]
2022-07-01 15:24:00 【Please call me Chang Sicong】
Debugging last night TFT when , Due to hardware problems TFT Of SDA and SCL Interface is used in SPI2 Of PB15(SPI_MOSI) And PB13(SPI2_SCK) On .
There should be no problem with the logic in the program , And also in SPI1 The port has been verified , The normal operation , But received SPI2 There is no output on ,
Thought it was hardware SPI Why , Replaced by software SPI,
void LCD_SPIx_WriteByte(u8 data)
{
// HAL_SPI_Transmit(&LCD_SPI_CH,&data,1,0xffff);
unsigned char i=0;
for ( i = 8; i > 0; i --)
{
LCD_SCL_CLR;
if ( data & 0x80)
LCD_SDA_SET; // Output data
else
LCD_SDA_CLR;
LCD_SCL_SET;
data <<= 1;
}
}
however TFT It still doesn't show .
Last one blog:STM32F4-TFT-SPI Commissioning record of sequential logic analyzer
The normal timing has been captured by the logic analyzer , Only change to PB15 and PB13 There is no output on .
The logic analyzer found :
SCL–PB13 The pin sends pulses normally , however SDA–PB15 The hardware is always high , So the problem may be PB15 On ,
And now it's software SPI, Do not rule out PB15 In hardware SPI It is also constant high in mode , Check it out .
Change to hardware SPI:
Output is still problematic , Now we can locate the root cause should be SPI_MOSI That is to say PB15 There is a problem .
Check the hardware , See if there is a short circuit
Find out PB15 And PB14 A short circuit !!!!
Cheating ....
Change into another chip with tears
Then test 
The timing is basically wrong , No wonder it can't be displayed ...
Switch to software SPI try , See if there is something wrong with the hardware ;
It's still not right ,TFT It doesn't show
Change SDA Pin to PB2:
This meeting seems to be right , however TFT No display , The inspection found that DC The pin is connected incorrectly , In turn, , According to the normal
Then change SDA To PB15:
According to the normal !!!!
Poor migrant workers in Shenzhen , Line up to do nucleic acid ....
-------------------------------------- Split line --------------------------------------------
Make nucleic acid ,
Change to hardware SPI Well ?
The timing looks wrong , But normal display ... Suddenly I remember


This is awkward ... The sampling rate is only twice as high ... Moreover, it is already the highest sampling rate of the logic analyzer !!!.
But I can only adjust the hardware SPI Baud rate


Finally, it is normal !!!!
Admire myself !!!
However, I think of another one before bug:
【STM32-USB-MSC Ask for help 】STM32F411CEU6 (WeAct)+w25q64+USB-MSC Flash use SPI2 The readout capacity is only 520KB
This is also the same development board ,,,, Should not ?? Cold behind .. Test it tomorrow ..
边栏推荐
- Flink 系例 之 TableAPI & SQL 与 MYSQL 插入数据
- What are the EN ISO 20957 certification standards for common fitness equipment
- What is the relationship between network speed, broadband, bandwidth and traffic?
- Create employee data in SAP s/4hana by importing CSV
- opencv学习笔记六--图像拼接
- Summary of empty string judgment in the project
- Solid smart contract development - easy to get started
- Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
- opencv学习笔记六--图像特征[harris+SIFT]+特征匹配
- Basic use process of cmake
猜你喜欢

opencv学习笔记四--银行卡号识别
![[leetcode] 16. The sum of the nearest three numbers](/img/60/6a68333d6e543c601e6ed586b830d0.png)
[leetcode] 16. The sum of the nearest three numbers

"Qt+pcl Chapter 6" point cloud registration ICP Series 6

Qt+pcl Chapter 9 point cloud reconstruction Series 2

入侵检测模型(An Intrusion-Detection Model)

【ROS进阶篇】第五讲 ROS中的TF坐标变换

opencv学习笔记六--图像拼接

How to realize clock signal frequency division?

Hardware design guide for s32k1xx microcontroller

【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(三)
随机推荐
leetcode:329. 矩阵中的最长递增路径
skywalking 6.4 分布式链路跟踪 使用笔记
《性能之巅第2版》阅读笔记(五)--file-system监测
入侵检测模型(An Intrusion-Detection Model)
摩根大通期货开户安全吗?摩根大通期货公司开户方法是什么?
Introduction to MySQL audit plug-in
Beilianzhuguan joined the dragon lizard community to jointly promote carbon neutralization
A unifying review of deep and shallow anomaly detection
Flink 系例 之 TableAPI & SQL 与 MYSQL 插入数据
Create employee data in SAP s/4hana by importing CSV
Apk signature principle
Opencv Learning Notes 6 -- image mosaic
What are the test items of juicer ul982
Tableapi & SQL and Kafka message insertion in Flink
竣达技术丨多台精密空调微信云监控方案
Intelligent operation and maintenance practice: banking business process and single transaction tracking
【目标跟踪】|STARK
opencv学习笔记六--图像特征[harris+SIFT]+特征匹配
[cloud trend] new wind direction in June! Cloud store hot list announced
张驰课堂:六西格玛数据的几种类型与区别