Post Go back to editing

I2C communication with STM32F407VG

Category: Hardware
Product Number: MAX30101

Dear Readers,

I am unable to communicate with the MAX30101/30102 by an STM32F407VG processor (in Mikromedia board by Mikroelektronika). The same original MAXREFDES117 and Sparkfun MAX30101 breakout board works perfectly with PIC microprocessor. At the same time, the STM proc works perfectly with e.g. ADXL345. 

Please see attached scope screen, there is no ACK by MAX 30101 with proper address and communication. The Interrrupt line (orange line) is pulled down continuously. 

The code: 

I2C1_Init_Advanced(100000, &_GPIO_MODULE_I2C1_PB67);
Delay_ms (20);
TFT_Write_Text("I2C1 Initialized", 15, 35);
if (I2C1_Is_Idle()) {TFT_Write_Text("I2C1 is free", 15, 55);}
tt[0]=0xFF; tt[1]=0x01; tt[2]=0x0C;
inttostr(tt[0], xx); TFT_Write_Text(xx, 100, 95);
Delay_ms (50);
I2C1_Start();

I2C1_Write(0x57,tt[0], 1, END_MODE_restart); 
I2C1_Read(0x57, tt, 1, END_MODE_Stop);

It stops at the writing I2C waiting for the ACK.

I would appreciate any idea!

Regards,

Laszlo