Search found 8 matches

by Blosso
Sat Mar 20, 2021 3:39 am
Forum: General discussion
Topic: I2C timeout for STM32F103C8
Replies: 13
Views: 594

Re: I2C timeout for STM32F103C8

Sure I will try that out. To my guessing, I feel that the processing time might not be an issue. Every time I run the code, i flush the serial right at the beginning, to make sure all data has been sent through, while the string size is smaller than the set buffer size 256. Would this avoid the over...
by Blosso
Fri Mar 19, 2021 11:10 am
Forum: General discussion
Topic: I2C timeout for STM32F103C8
Replies: 13
Views: 594

Re: I2C timeout for STM32F103C8

The idea is that every 20ms, the loop will repeat itself, if processing time is much longer than this, it could just repeat right away without any delay. Yes, I have modified the code accordingly, to print the string as above, it takes 0ms processing time. However, it still freezes after awhile. Thi...
by Blosso
Fri Mar 19, 2021 5:24 am
Forum: General discussion
Topic: I2C timeout for STM32F103C8
Replies: 13
Views: 594

Re: I2C timeout for STM32F103C8

stevestrong Thanks, here is the code I used to test with. Buffer sizes for RX and TX for USART are set to 256, and fixed values are printed to Serial3 (no analog read or I2C request are performed). I tested with both 115200 and 460800 baud rate for HC05, but transmission freezes within 20 seconds. ...
by Blosso
Thu Mar 18, 2021 12:59 pm
Forum: General discussion
Topic: I2C timeout for STM32F103C8
Replies: 13
Views: 594

Re: I2C timeout for STM32F103C8

Thank you, I'm using Roger's core now, and tried to separate the problem. It looks like that the problem comes from the bluetooth HC05 module, (not quite sure if that's the only problem though :shock: ) I tried on the same I2C connection and displaying data to the serial monitor instead of transmitt...
by Blosso
Thu Feb 25, 2021 1:21 pm
Forum: General discussion
Topic: I2C timeout for STM32F103C8
Replies: 13
Views: 594

Re: I2C timeout for STM32F103C8

Hi Steve,
Do you mean the boards manager? it is STM32F1xx/GD32F1xx board by stm32duino, version 2020.12.26.
I'm using STM32F103C8
I have tested out with solely the IMU and displaying in the serial monitor, the same happens.
by Blosso
Thu Feb 25, 2021 1:02 pm
Forum: General discussion
Topic: I2C timeout for STM32F103C8
Replies: 13
Views: 594

I2C timeout for STM32F103C8

Hi there, I'm working on a project with a connection with an IMU through I2C (25Hz, Wire set to 100000), it however, always hangs. The stays stable longer if I lower the speed. The reason I suspend it is the IMU is that whenever I unplug it, the rest of it works without a problem (together with a Bl...
by Blosso
Thu Feb 25, 2021 12:02 pm
Forum: General discussion
Topic: Check Clock Speed for STM32f103c8t6
Replies: 3
Views: 279

Re: Check Clock Speed for STM32f103c8t6

Great! thanks for letting me know!
by Blosso
Mon Feb 15, 2021 4:40 pm
Forum: General discussion
Topic: Check Clock Speed for STM32f103c8t6
Replies: 3
Views: 279

Check Clock Speed for STM32f103c8t6

Hello, I'm very new in using STM32 chip on arduino platform. I made a pcb board with STM32f103c8t6, 8MHz HSE and 32.768kHz LSE. Can I check the clock speed of the MCU on arduino platform to make sure it is running with 72MHz, or by default, it runs at 72MHz? I checked with the variant.h from ..AppDa...

Go to advanced search