rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.53k stars 1.26k forks source link

stm32f4 and i2s to get codec working. #43

Closed gpud closed 8 years ago

gpud commented 9 years ago

Hi and thanks for your port of Arduino to STM32f4. I've got it working and was wondering if i2s is available to get the stm32f4 discovery's audio codec working? Thanks again. Steve.S

madias123 commented 9 years ago

Please post you wishes also in the new forum! Maybe some of them has worked with I2s (I don't think so!) http://www.stm32duino.com/index.php

rogerclarkmelbourne commented 9 years ago

@gpud

Not sure about Wire on the F4, as I've not tested it.

However on the F103 its a software implementation (bit banged) so I expect its the same on the F4

There were some minor bug fixes to the F103 version, so even if the F4 I2C works, I'd recommend you copy the Wire folder from STM32F1/libraries and give that one a try.

I can't recall all the fixes, but the important one was that the example sketch "i2C Scanner" didnt work, until the fix.

Re: Codec Sorry no idea. Probably not. The initial port from F103 to F4 was done by the AeroQuad team for use on quadcopters, so I doubt they'd have need of an audio codec ;-)

If you care to join the forum (if youve not joined already) I added a F4 boards see http://www.stm32duino.com/viewforum.php?f=39

rogerclarkmelbourne commented 9 years ago

There isnt and I2S library for any of the boards (not even STM32F1)

This will need to be written by someone. I personally have more urgent things on the project that need my attention.

I recommend you read the programming reference

http://www.st.com/web/en/resource/technical/document/reference_manual/CD00171190.pdf

and probably duplicate and modify the SPI lib, as I2S on STM32 seems to be an additional function within the SPI section of the chip

rogerclarkmelbourne commented 8 years ago

STM are now writing their own Core for the Nucleo boards, which will include a Nucleo F4, the best option is probably to wait for them to release a the code for the Nucleo F4 and then make a modified version of that to suit your boards

"Watch" the stm32duino github account