2016-03-10 08:04 AM
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 filesSome idea for solution, please?Some ideas
for solution
Some ideas
for solution
2016-03-10 09:12 AM
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?2016-03-10 11:47 PM
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
2016-03-11 12:35 AM
I've attached the updated filesmain.c and main.h stm32f1xx_hal_msp.c, cleaned by the comments and code not helpful
________________ Attachments : main.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0qV&d=%2Fa%2F0X0000000bhk%2Fq7IhbUIrgmCNfeMqMTWHFsD0LX3ez0c1fuRO39dTeiE&asPdf=falsemain.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0nw&d=%2Fa%2F0X0000000bhj%2FMkC1M08mnJoA34ZKjT4ZW8ZrVSn6qNM_fJhJ0r44CVk&asPdf=falsestm32f1xx_hal_msp.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I14C&d=%2Fa%2F0X0000000bhi%2FnpDSaFu9ys_PdLUOj4k7kUpdHxp8mO63SjmbBC4_Fog&asPdf=false2016-03-11 02:47 AM
I solved. Connections were too long between the MCP4262 and the GPIO pins of the board.