Skip to main content
micha2
Associate II
Nov 13, 2013 1:35 PM UTC
Question

I2C under Matlab Simulink STM32F4 Discovery

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
This topic has been closed for replies.

2 replies

Amel NASRI
ST Technical Moderator
Nov 13, 2013 2:10 PM UTC
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 "Best Answer" on the reply which solved your issue or answered your question.
micha2
micha2Author
Associate II
Nov 13, 2013 3:55 PM UTC
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