Search found 10 matches

by Raig
Thu Feb 16, 2012 12:17 am
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

Re: I2C using on STM32L15x

Hello again,

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. :D

Raig
by Raig
Tue Feb 14, 2012 1:46 pm
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

Re: I2C using on STM32L15x

What can I do for work around?

Raig
by Raig
Tue Feb 14, 2012 12:33 am
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

Re: I2C using on STM32L15x

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 ...
by Raig
Sat Feb 11, 2012 5:33 pm
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

Re: I2C using on STM32L15x

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 ...
by Raig
Sat Feb 11, 2012 1:55 pm
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

Re: I2C using on STM32L15x

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

Raig
by Raig
Sat Feb 11, 2012 12:42 pm
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

Re: I2C using on STM32L15x

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 ...
by Raig
Fri Feb 10, 2012 9:22 pm
Forum: General Support
Topic: I2C using on STM32L15x
Replies: 18
Views: 13678

I2C using on STM32L15x

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 ...
by Raig
Fri Jan 20, 2012 12:21 am
Forum: Development and Feedback
Topic: The PVD_DEV branch topic
Replies: 7
Views: 6153

Re: The PVD_DEV branch topic

Hy Barthess,

thank you very match for the hint, I never looked at this folder. Now I will try my luck.

Raig
by Raig
Wed Jan 18, 2012 11:34 pm
Forum: Development and Feedback
Topic: The PVD_DEV branch topic
Replies: 7
Views: 6153

Re: The PVD_DEV branch topic

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 ...
by Raig
Wed May 18, 2011 11:14 pm
Forum: General Support
Topic: CodeBlock/GCC
Replies: 2
Views: 4295

CodeBlock/GCC

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.

codeblocks said:
Stack level 0 ...