cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303xE - std peripheral library

agamonet
Associate II
Posted on July 24, 2015 at 11:43

Dear all,

I will work on an STM32F303VET6 and I have to use I2C3 port.

I started 2 months ago to work on an STM32F303VC (STM32F3-discovery board) and I developed many functionalities with standard peripheral library, so I would to continue to develop with this library.

The problem is, in the file ''stm32f30x_i2c.c'', functions don't support I2C3.

Should I have to modify them by myself ? I'm not very experimented on STM32 and that seems complicated for me.

Or maybe library especially for STM32F303xE has already been developed ?

I haven't found any of this on the internet.

Best regards.

#stm32f3 #stm32 #i2c #library
5 REPLIES 5
Nesrine M_O
Lead II
Posted on July 24, 2015 at 12:34

Hi,

To download STM32F30x/31x DSP and standard peripherals library you have to use this

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1939/PF258144#

It is the one that support STM32F303xE.

-Syrine-

agamonet
Associate II
Posted on July 24, 2015 at 13:46

Hi Syrine,

Thanks for your reply.

I've already downloaded these files, but when you look at the file ''stm32f30x_i2c.c'', the I2C3 peripheral doesn't appear.

For example, in the header of the function ''I2C_DeInit()'', you can see :

@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral.

So you can't use I2C3 with these functions.

Nesrine M_O
Lead II
Posted on July 24, 2015 at 16:02

It is a typo in the comment, but I2C3 is defined in header files. 

Our software team will fix it in subsequent release.

-Syrine-

agamonet
Associate II
Posted on July 24, 2015 at 16:32

Ok, thanks a lot !

I have another question : I cross compile with gcc, but the file ''startup_stm32f303xe.s'' for gcc_ride7 doesn't exist.

Will it be included in your next release ? If yes, have you an idea about the release date please ?

Posted on July 24, 2015 at 19:45

It's nothing magic, just merge in the vector table from one of the other GNU chains, 5 minute task.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..