Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
事情的起因是I2C的SCL短地后,会造成外部的RTC通讯死掉,取消短接后不可恢复。SDA短地不存在这个问题。
但MCU复位后I2C通讯又能恢复正常,不像是I2C挂死。
现在设想是把SDA,SCL转为GPIO口折腾一下看看有无改善。但MCAL框架层数太深,不敢实时切换PORT模块配置,因为还有别的外设。
怎么办
Prot.h 里面提供了函数 Port_SetPinMode(),供用户手动切换。可以自己实现一个函数更改相关的引脚功能试试
Prot.h
Port_SetPinMode()
发帖前请查看
帮助没办法联网的电脑使用YCT
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...