当前位置:网站首页>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 ..
边栏推荐
- 【STM32-USB-MSC问题求助】STM32F411CEU6 (WeAct)+w25q64+USB-MSC Flash用SPI2 读出容量只有520KB
- Demand prioritization method based on value quantification
- Short Wei Lai grizzly, to "touch China" in the concept of stocks for a living?
- MySQL service is starting. MySQL service cannot be started. Solution
- 【锁】Redis锁 处理并发 原子性
- Returning to the top of the list, the ID is still weak
- Description | Huawei cloud store "commodity recommendation list"
- 《QT+PCL第九章》点云重建系列2
- Introduction to MySQL audit plug-in
- 微信小程序02-轮播图实现与图片点击跳转
猜你喜欢

【一天学awk】函数与自定义函数

Qt+pcl Chapter 6 point cloud registration ICP Series 2

如何实现时钟信号分频?

重回榜首的大众,ID依然乏力

The data in the database table recursively forms a closed-loop data. How can we get these data

采集数据工具推荐,以及采集数据列表详细图解流程

竣达技术丨多台精密空调微信云监控方案

《QT+PCL第六章》点云配准icp系列6

雷神科技冲刺北交所,拟募集资金5.4亿元

The solution to turn the newly created XML file into a common file in idea
随机推荐
cmake 基本使用过程
What are the test items of juicer ul982
厦门灌口镇田头村特色农产品 甜头村特色农产品蚂蚁新村7.1答案
TypeScript:var
Survey of intrusion detection systems:techniques, datasets and challenges
Digital transformation: data visualization enables sales management
phpcms后台上传图片按钮无法点击
Wechat official account subscription message Wx open subscribe implementation and pit closure guide
【LeetCode】16、最接近的三数之和
采集数据工具推荐,以及采集数据列表详细图解流程
What is the relationship between network speed, broadband, bandwidth and traffic?
Logical analysis of automatic decision of SAP CRM organization model
Solid smart contract development - easy to get started
DirectX repair tool v4.1 public beta! [easy to understand]
swiper 轮播图,最后一张图与第一张图无缝衔接
【一天学awk】函数与自定义函数
《性能之巅第2版》阅读笔记(五)--file-system监测
Flink 系例 之 TableAPI & SQL 与 MYSQL 插入数据
STM32F411 SPI2输出错误,PB15无脉冲调试记录【最后发现PB15与PB14短路】
SAP S/4HANA: 一条代码线,许多种选择