Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

HAL_SPI_Transmit_DMA?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Guys,

Does anyone of you have experience on using SPI1 with DMA on STM32CubeMx?
I tried using this function HAL_SPI_Transmit_DMA(&hspi1, data, 3);

But I didn't see any response on my Logic analyzer..
Any ideas ?
I have initialize clock, GPIO, DMA and SPI setting according to STM32CubeMx setting...

Thanks
 

anyone ?
Code:
uint8_t data[3] = {0x01, 0x02, 0x03};
HAL_SPI_Transmit_DMA(&hspi1, data, 3);
 

I have initialize clock, GPIO, DMA and SPI setting according to STM32CubeMx setting...
But don't show how.

I'm not working specifically with STM32 DMA, in so far can't help in this regard. I would expect you have already done some things:
- checked SPI operation with non-DMA HAL functions. Seeing it working would reduce the problem to correct DMA setup.
- have read the HAL documentation and DMA examples thoroughly and implemented your DMA initialisation according to the example code

For the future, you should consider to learn in-system debugging with ST-LINK.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top