Search found 4 matches

by user99
Sun Dec 15, 2013 7:01 pm
Forum: STM32 Support
Topic: I2C No ack error
Replies: 17
Views: 13299

Re: I2C No ack error

After a lot of headache I finally found that a different i2c config works, at least it doesn't stop after the first byte.
I found this on a post from someone who also had problems running the STM32F4 with STD_DUTY_CYCLE.


/* this didn't work
static const I2CConfig i2c1cfg =
{
OPMODE_I2C,
100000 ...
by user99
Mon Jul 22, 2013 4:28 am
Forum: STM32 Support
Topic: I2C No ack error
Replies: 17
Views: 13299

Re: I2C No ack error

I think I figured out I'm reading the trace incorrectly. Only the 9th rising edge of sda should be at gnd level for the ack.
From and i2c tutorial I found "If the receiving device sends back a low ACK bit, then it has received the data and is ready to accept another byte"

Shouldn't the ack have a ...
by user99
Mon Jul 22, 2013 12:42 am
Forum: STM32 Support
Topic: I2C No ack error
Replies: 17
Views: 13299

Re: I2C No ack error

4.7K pullups on both lines.

The first scope screenshot shows the rise and fall time of the signals. From what I've read within spec for 100KHz timing.
It's a stm32f4discovery board and the pins I'm using are marked as free in the user manual.

Anything unusual in the code?
by user99
Sat Jul 20, 2013 7:17 pm
Forum: STM32 Support
Topic: I2C No ack error
Replies: 17
Views: 13299

I2C No ack error

I'm trying to write to a 24lc256 with all the address pins at ground, it should have an address of 0x50. When I call i2cMasterTransmitTimeout I see the correct start bit and address and I think that the ACK is there but only the first byte is sent over the bus and i2cGetErrors responds with a value ...