the initialization of the I2C pins works fine with the OR operation posted by mabl. My sensor delivers stable values now, in moment I got 1004.8hPa here in Berlin.
Hello, I'm back like promised. Ok my 25€ Sensor is not destroyed, very good. The reason why the sensor don't give an acknowledge was a wrong initialisation of the I2C ports. To use the pins of I2CD2 I initialized the pins with alternate mode (4) for I2C function. But the open drain bit of this ...
Thank's Badger, for the hint. To be sure not to have the wrong address I wrapped a loop around the I2C output function. With the debugger I tried the 128 possibilities, every time the same result. May I destroyed the sensor . I got more but in the office but this is in the opposite site of the town ...
Yes, the address is 1110111 or 1110110 depends on a pin. In hexa is this 0x77 or 0x76. This is what come out. The response of the sensor is equal to both addresses. For information the data sheet of the sensor. http://www.rapose.de/Raig/MS5803-02BA%20005.pdf
Hy Giovanni, I prepared a project which shows the problem. You can download it here: http://rapose.de/Raig/ChibiOS_2.4.0_I2C_Problem_Raig.zip In the demo folder you will find my RV project. It should easily compile. On the I2C2 port (PB10, PB11) of the stm32L discovery the ...
I like to use the I2C2 interface on my STM32L Discovery for an pressure sensor (MS5803). I take the function "status = i2cMasterTransmitTimeout(&I2CDx, ms5803_addr, ms5803_tx_data, 2, ms5803_rx_data, 2, tmo);" and the initialisation like de-scripted in the testhal examples (2.4.0). All what comes ...
Hy, I got now running the 2.4.0 (trunk) on my STM32L-Discovery board. I like to use the PVD feature to switch over from external supply to battery operation. The plan is to generate an interrupt which switch the controller in stop mode and RTC is still running. My problem is now to generate the ...
I try to run your "ARMCM3-STM32F103" example on codeblocks. The project will be opened, compiled and programmed on the chip. But I cant run it. The debugger ends in the while(true) of the _unhandled_exception(void). It seems to bee a stack/heap initializing problem.