[sdiy] STM32 vs WM8731

Rob Spencer rob at gmsn.co.uk
Tue Feb 16 10:12:27 CET 2016


Thanks Peter, I’ll try that.

Quick question, when you say 0 is a general call, will anything that’s listening on the bus respond?

Rob Spencer
gmsn.co.uk
07590 267835

From:  Ullrich Peter
Date:  Tuesday, 16 February 2016 08:44
To:  Rob Spencer, 'synth-diy'
Subject:  Re: [sdiy] STM32 vs WM8731

Hi Rob!

 

As a little I2C trouble shooter I normally make a little routine that’s called I2C_Scan that just makes a master transmit or receive to all addresses from 1 to 127 (0 is normally general call) and just checks if it receives an acknowledge or not followed by a stop condition that ends the communication without sending or receiving any data byte.

All addresses that get an acknowledge will be printed to the debugging console/serial interface and a summary tells how many addresses/devices have been found on the bus.

 

If you don’t get a response from your WM8731 then I would look for eventual hardware errors.

 

Ciao
Peter

 

Von: Synth-diy [mailto:synth-diy-bounces at dropmix.xs4all.nl] Im Auftrag von Rob
Gesendet: Dienstag, 16. Februar 2016 09:37
An: 'synth-diy'
Betreff: [sdiy] STM32 vs WM8731

 

Just continuing on the STM32 discussions…

 

I’ve been trying to get a Nucleo-F411RE talking to a WM8731, but not having much luck getting it to communicate over I2C

 

I send the following from the STM32:

 

                WM8731Status[0] = HAL_I2C_Master_Transmit(&hi2c1, 0x34, WM8731PowerOn1, 1, 10000);

 

But I don’t get an Ack from the WM8731:

 

                https://www.dropbox.com/s/yhen98n17pyrqgr/Screenshot%202016-02-16%2008.22.15.png?dl=0

 

Here’s the schematic for the WM8731 setup:

 

                https://www.dropbox.com/s/e6fkerkmf95ldzf/Screenshot%202016-02-16%2008.20.29.png?dl=0

 

I’m pretty sure everything on the STM32 side is setup correctly, and I’m working on the assumption that there’s not a lot to do with the WM8731. Once all the power is connected and the I2C mode and address pins are set low it should just receive I2C messages. I think the issue might be around the address, but I’ve tried all combinations I can think of.

 

Any help would be much appreciated as my wife is getting tired of me shouting at the darn thing!

 

Many thanks in advance

 

Rob

gmsn.co.uk



The information contained in this e-mail message is privileged and confidential and is for the exclusive use of the addressee. The person who receives this message and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof, and is kindly asked to notify the sender and delete the e-mail immediately.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20160216/1dc9f0ae/attachment.htm>


More information about the Synth-diy mailing list