Search found 4 matches

by ryan.yu@boneco.ch
2024年 Sep 25日 09:48
Forum: TuyaOS-Networked Device Development
Topic: the SPI communications “hangs” randomly-urgently
Replies: 5
Views: 3922

Re: the SPI communications “hangs” randomly-urgently

but every SPI can transfer data in full duplex. we final have found the problem in the Tuya System and could manage to apply a solution that works for us. Please find attached the updated document. could you please check and change the TUYA System as well? thank you

by ryan.yu@boneco.ch
2024年 Sep 24日 15:24
Forum: TuyaOS-Networked Device Development
Topic: the SPI communications “hangs” randomly-urgently
Replies: 5
Views: 3922

Re: the SPI communications “hangs” randomly-urgently

we found the following comment in the file “software/TuyaOS/vendor/t2/beken_os/beken378/driver/spi/spi_master_bk7231n_new.c”: // 全双工收发接口,也可仅发送或仅接收 //存在问题,收发同时时,接收会丢掉一个字节,在2M频率下 int bk_spi_master_dma_xfer(struct spi_message *spi_msg) This function is call by tkl_spi_transfer(SPI_ID, spi_send_buffer, ...
by ryan.yu@boneco.ch
2024年 Sep 24日 08:36
Forum: TuyaOS-Networked Device Development
Topic: the SPI communications “hangs” randomly-urgently
Replies: 5
Views: 3922

Re: the SPI communications “hangs” randomly-urgently

thanks very much for your propose. It was a little confusing. But we have found a solution, The program is working but in hardware it does NOT work, because the Chip-Select Pin does not work correct. could you please give some advise for us, thank you / spi init / STATIC TUYA_SPI_BASE_CFG_T spi_cfg ...
by ryan.yu@boneco.ch
2024年 Sep 18日 16:11
Forum: TuyaOS-Networked Device Development
Topic: the SPI communications “hangs” randomly-urgently
Replies: 5
Views: 3922

the SPI communications “hangs” randomly-urgently

the SPI communications “hangs” randomly. Please find attached the analysis of the problem and the modified tuya_app_main.c from the quickstart demo. can you check this on a T2 Demo Board and can you run the spi in a Loop for a few minutes at least and with the function “tkl_spi_transfer(SPI_ID, spi_...