cancel
Showing results for 
Search instead for 
Did you mean: 

Problem via SPI with STM32F103ZE and MCP4262 [Solved]

vbruno1
Associate III
Posted on March 10, 2016 at 17:04

I've the problem, my communication via SPI between STM32F103ZE and MCP4262 don't work.

I try with PIC and the spi communication with MCP4262 works fine in mode 1,1.

I try via SPI2 through GPIO pins from STM3210E-EVAL but do't work.

I have attached main.c and stm32f1xx_hal_msp.c files

Some idea for solution, please?

Some ideas

for solution

Some ideas

for solution

4 REPLIES 4
Posted on March 10, 2016 at 18:12

Really can't help you with the HAL/Cube issues, consider if there is a better library to do this, or access the SPI registers.

I will note that the DWT code you have in there is gravely flawed, where did that come from?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
vbruno1
Associate III
Posted on March 11, 2016 at 08:47

The DWT code was made by me. For entering microsecond delay 10 ^ -6.

With the oscilloscope waveforms generated by STM32 and the pic are stackable. I don't understand what is not working.

I also tried to use SPI with interrupt, but nothing.

I don't know what to do.

Alternative solutions?

Also with different libraries so as to compare between them.

Some ideas

for solution

Some ideas

for solution

vbruno1
Associate III
Posted on March 11, 2016 at 11:47

I solved. Connections were too long between the MCP4262 and the GPIO pins of the board.