I2C not working with STM32F103C6 and STM32F103C8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-18 6:00 AM
we have been trying to get the I2C up on both the controller and no responses from anyone the cubeMx issue if I2C is really a problem..Kindly respond as we are trying to get I2C up ..
requesting the experience forum experts to respond.
Thanks
Ravi
Solved! Go to Solution.
- Labels:
-
I2C
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 3:43 AM
Get ready status is not seen to check whether sensor is ready to send??..
tried adding that piece of code was well...
any change let me know
thanks and regards
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 3:56 AM
so no error, sensor and I2C working ok.
did you power cycle?
power off sensor and STM board, wait, then power up again. sensor need power restart...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:00 AM
yes I2C is working ..
did the power cycle....power off both sensor and STM board...still not getting any values...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:01 AM
added the code for reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:02 AM
when there are no values and printing only dddd..I used to do the power cycle and then get the version number properly...but here I am not seeing any values.....let me know any change...thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:03 AM
I was referring to my earlier code when I had the version number print ON
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:08 AM
Oo, sensor want/need crc byte also... ****.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:13 AM
I thought initially...but in my earlier I used to get the version number fine without sending 0xC2 as the CRC...well...let me know the change..so that I will try making here...just at the start we shall add or for every SCD30_cnt_measurement[0] = 0xC2 buffer value??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:14 AM
SCD30_cnt_measurement[0]=0xC2;
SCD30_cnt_measurement[1]=0x00;
SCD30_cnt_measurement[2]=0x10;
SCD30_cnt_measurement[3]=0x04; //0x400 = 1020 mbar
SCD30_cnt_measurement[4]=0x00;
is this the change you are referring??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-24 4:19 AM
code reference to check version number also..
..I have added different pattern like..sending stop bit first ..then soft reset..then 2s interval..then firmware...then start...then get ready ...then read....is this pattern correct..do we need to follow this...comparing this with workiing Rpi model we have...let me know your thoughts...
