cancel
Showing results for 
Search instead for 
Did you mean: 

I2C under Matlab Simulink STM32F4 Discovery

micha2
Associate II
Posted on November 13, 2013 at 14:35

Hello everybody,

is it possible to use I2C with the Simulink Target for the STM32F4 Discovery? In the GPIO-Config-Block, you can set the Alternate Function on I2C, but I cant find how to initialise I2C oder read/send Data.

Thank you for your help,

Michael

#stm32-mat/target-matlab-stm32f4
2 REPLIES 2
Amel NASRI
ST Employee
Posted on November 13, 2013 at 15:10

Hi Michael,

Configuring GPIO pins doesn't mean I2C is supported. This is the GPIO block.

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Stm32F3%20in%20Matlab

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

micha2
Associate II
Posted on November 13, 2013 at 16:55

ah, sorry, I didn't see your last post in the other thread. Somehow I did not get an alert for your post.

Okay, then I maybe have to do this with an self written s-function in C.

Michael