Search found 6 matches

by dev
Tue Mar 07, 2017 6:13 pm
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6286

Re: i2c returning i2c_timeout

Hi,
I am receiving data as '0' for any transaction. I think I2C is initialized otherwise data would be 0xFF.

i have changed the control flow little-bit. But no luck.

I tried by changing duty_cycle setting in I2CConfig struct.

I am not sure about DMA, because i didn't use DMA before.

i have ...
by dev
Thu Mar 02, 2017 7:36 pm
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6286

Re: i2c returning i2c_timeout

Hi,
yes, i am using address as
#define CS43L22_ADDR (0x94 >> 1)


And I2C driver version I2CV1 only,

I was doing code debugging, Following are my observation,
1. Whenever i was reading using following function,
i2cMasterTransmitTimeout(&I2CD1, CS43L22_ADDR, txbuf, 1, rxbuf, 2, MS2ST(4));

i ...
by dev
Thu Mar 02, 2017 4:27 pm
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6286

Re: i2c returning i2c_timeout

@Giovanni,
There were two i2c driver files as i2cV1 and i2cV2.
So, in i2cV1, i tried address (0x94>>1) , Because we are again left shifting there.
And in i2cV2, i tried 0x94 only.
(AD0/A0 is connected to ground).
Which address i should try?

@RoccoMarco, i took RT-STM32F411RE-NUCLEO for reference ...
by dev
Wed Mar 01, 2017 6:53 pm
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6286

Re: i2c returning i2c_timeout

I found one correction, board.h file was bit incorrect. I have corrected but no luck. Still audio/tone is not hearing.

#define VAL_GPIOB_MODER (PIN_MODE_INPUT(GPIOB_PIN0) | \
PIN_MODE_INPUT(GPIOB_PIN1) | \
PIN_MODE_INPUT(GPIOB_PIN2) | \
PIN_MODE_ALTERNATE(GPIOB_SWO) | \
PIN_MODE_INPUT(GPIOB ...
by dev
Wed Mar 01, 2017 4:36 am
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6286

Re: i2c returning i2c_timeout

Hi,
I did follow this link. http://wiki.chibios.org/dokuwiki/doku.p ... e_shooting
And I re-checked the the suggested steps.

My codebase is latest synced.
My pin config is also seems to be fine.
mcu_conf is also updated.
here is attached files.
CS43L22.7z
project
(16.39 KiB) Downloaded 423 times
by dev
Tue Feb 28, 2017 7:59 pm
Forum: STM32 Support
Topic: i2c returning i2c_timeout
Replies: 10
Views: 6286

i2c returning i2c_timeout

Hi,
I am using chibios3 and STM32F411RE discovery board.
I am using cs43l22 ic. I have configured the pins for I2C in code as well. Here is look of my code. (Code is took from forum only)
/*
* codec_CS43L22.c
*
* Created on: Jun 7, 2012
* Author: Kumar Abhishek
*/


// I2C address ...