- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
下面这张图是我在函数中设置CONT和CONTC位为0:
从串口输出界面可以看出,函数的设置并未生效。但是是我在另外的函数进行相同的设置却是可以生效的,这是为什么呢?如下图:
下面是我的未生效的函数代码的实现:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't read Chinese but this might help:
https://community.nxp.com/t5/i-MX-RT/LPSPI-bugs-around-TCR-More-FSL-library-bugs-plus-an-LPSPI/td-p/...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't read Chinese but this might help:
https://community.nxp.com/t5/i-MX-RT/LPSPI-bugs-around-TCR-More-FSL-library-bugs-plus-an-LPSPI/td-p/...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad to help, Don't forget to click "Kudos" on my posts!
It would be great if NXP would fix the FSL drivers - this is apparently a known problem (but not documented in errata nor fixed in FSL).
Best Regards, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @TheSix ,
从这个输出来看确实很奇怪。可以尝试加一个打印在if语句之前吗?应该置位是成功的,如果这样是不是说明在等待TxFifo发送的时候又被其他函数改变了?
Best regards,
Gavin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
尝试一下先禁用中断再修改寄存器呢?等处理逻辑结束之后再使能中断。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content