Skip to main content
TMich.1
Associate III
Mar 15, 2023 3:18 PM UTC
Question

I'm using a stm32g473 and a sim7600E-H, uart not working reliably.

In my code i first setup the sim7600 using blocking mode and later switch to dma. But in blocking mode I'm having trouble receiving data over uart. Using a nucleo it sometimes works very reliably and other times doesn't work at all or it only receives the first letter. on my custom board i once was able to get at ok response but other times it was nothing or some random character. What could be the reason?

This topic has been closed for replies.

5 replies

Karl Yamashita
Principal
Mar 16, 2023 7:50 AM UTC

Post your relevant code

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
TMich.1
TMich.1Author
Associate III
Mar 16, 2023 10:10 AM UTC

sorry, here it is:

0693W00000aJ6ZGQA0.png0693W00000aJ6c8QAC.png0693W00000aJ6ZyQAK.png0693W00000aJ6btQAC.pngthat good enough? i can put in the entire code as well if that is better

Mohamed Aymen HZAMI
ST Employee
Mar 27, 2023 10:24 AM UTC

Hello @TMich.1​,

Try to use the CubeFirmware USART with DMA example.

Mohamed Aymen

Karl Yamashita
Principal
Mar 27, 2023 3:02 PM UTC

There is no way to know what you're doing in SIMTransmitSetup? Post your code as a Code Snippet.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
TMich.1
TMich.1Author
Associate III
Apr 6, 2023 3:17 PM UTC

it ended up being a poor connection between chip and pcb, thank you for your help