Skip to main content
benyBoy
Associate III
April 15, 2017
Question

How to add I2C and SPI to audio application?

  • April 15, 2017
  • 1 reply
  • 1385 views
Posted on April 15, 2017 at 17:40

stm3269i-discovery audio application demo. I cant find the stmcubeMX, no ioc file? How to add i2c and spi to the project on arduino connector

I am trying to add i2c and spi pins to an stm3269i-discovery audio application demo. I cant find the stmcubeMX ioc file so i can add the arduino i2c and spi pins to the project. Can anyone guide me as to how i can do this?

#demo-application #i2c #ioc #audio
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
April 15, 2017
Posted on April 15, 2017 at 18:26

Most of the Examples files are hand crafted HAL code rather than CubeMX generated boiler-plate. Would suggest you get CubeMX to make you the examples you need, or review other examples within the HAL directories, and merge the code.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
benyBoy
benyBoyAuthor
Associate III
April 15, 2017
Posted on April 15, 2017 at 18:43

Ok,  that sounds hard to do!  

I'll try and merge i2c example with audio application example. Has anyone here done this before? Is there a decent guide anywhere for HAL with stm32f769i?

I'm new to stm32 platform,  so far it all seams a bit confused, cobeMX HAL bsp packages, the hardware abstraction layer will be replaced by CubMX? or more reliable code is made with HAL and it's her to stay? If examples are made with HAL then it's presumably it's best to avoid cobeMX?

I'll report back here if the gpio code does'nt conflict with the example code or more likely I get stuck.

Tesla DeLorean
Guru
April 15, 2017
Posted on April 15, 2017 at 20:23

Programming is complicated, CubeMX trivializes the exercise. Merging is likely to be a challenge, at least initially, as the examples were generated by someone who thought about the problem, vs the computer, which honestly doesn't.

CubeMX is a frame-work generator, it does the rough framing, and you fill in the specifics. How good the output is depends on the boiler-plate code it assembles. It generates code that uses the HAL libraries.

The examples are hand crafted in HAL, to do a specific jobs, or illustrate a specific point. If you want to understand the HAL you should review these examples, and the source for the HAL itself.

You should review the part's Reference Manual to gain an understanding of the hardware and how different parts or peripherals interact.

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