Stm32h7 spi problem. STM32 SPI Driver Receiving Data Always 0.

Stm32h7 spi problem . The RXNE is true onle at end of 8'th bit clock. M4 core (D2 domain) i use for transmit data trouth MOSI PE_14 Earlier versions of SPI do not feature the programmable counters and DMA overtakes the task, using its settings. 0. But problem is if I used SPI mode 0 then its working properly but If I used mode 3 then it is not working, However in windbond datasheet says its support mode 0 and mode 3. The latest versions feature embedded counters, hence SPI takes over control of programmable counters action via the SPI configuration. The mcu has to interface with an external ADC (LTC2335-16) to permit a max sample rate of 1M/s (during software develop 20KHz see images). STM32H7 SPI DMA Low Level - sends only one Frame. but running process halt on 'HAL_SPI_Init()' function. Product forums. Hi. I checked the datasheet for Upgrading CubeMX is not enough. I use SPI1 and SPI4, both in D2 domain, together with. Some read commands return data with first 4 bits corrupted. use one st eval board and another board. It is a blocking SPI send function only without the blocking part. (I am using a nucleo board). I guess it is correct to perform these operations inside the callback functions ? All variables involved in this need to be aligned with 32bytes. 3. Mark as New; Bookmark; Subscribe; Mute; Subscribe to RSS Feed; Permalink; Print; Email to a Friend STM32H7 SPI TXP flag not resetting in STM32 MCUs Products 2021-10-28; STM32H7 SPI low speed stabilization problem in STM32 MCUs Products 2021-06-18; Top. STM32F103 Nucleo Board: SPI Problem. I am having a very strange problem with respect to SPI6 and I am hoping someone can give me some direction. Hot Network Questions The problem is related to two things: memory layout on STM32H7 and internal data cache (D-Cache) of the Cortex-M7 core. I'm having a problem using DMA with SPI. Needless to say, that this is the exact sequence at the first start. 7. a timer overflow. The key parameters are the DSIZE field in SPI->CFG1 and the slave select management bits in SPI->CFG2. phanks for interst to my problem, but your topic i have been read in past. My requirement is to use spi mode 3 only. BTW, why do you wait for HAL_SPI_STATE_READY after HAL_SPI_Receive_DMA()?Your SPI receiver is already initialized properly and ready, what you have checked with if before Disable/Enable of SPI did not cure the problem. Even though I have quite a bit experience with the older series of STM32 ARM MCUs, it seems that a lot of things are different for the H7 series and it takes quite an effort to relearn and to remaster even some of the more common features. For example (see picture): I send a 4-line, 1 byte inst We were experiencing strange crashes originating from HAL_SPI_TransmitReceive and HAL_SPI_Receive when operating in SPI Slave mode. Jdoe. And keep CFG2. 0 in STM32 MCUs Embedded software 2024-12-10 Output comparison pulse problem in STM32 MCUs Products 2024-11-14 SPI Delay problem between two SPI transmission (using DMA) STM32F0. If they aren't matching SOLUTION: CubeMX set the MOSI pin to be on another bus/port on the nucleo board (not sure why). Issue Have tried with full-duplex, half-duplex and latest now simplex transmitter. I have turned stones and tried to find the working solution (e. The HAL_SPI_Transmit is not a ready to use function. 0 and problem is there Now I have a problem concerning SPI which is quite strange to me. So, I have bought 2 NUCLEO-H743ZI, one to be the master, the other to be the slave. HAL_SPI_TransmitReceive_DMA always returns HAL_OK but code quickly falls into I have tried HAL_SPI_TransmitReceive_DMA and HAL_SPI_Receive_DMA on a STM32F7 to be sure that there is no technological problem on Cortex-M7. Show the initialization of SPI. When it is activated, it seems that the debugger is reading regularly the SPI data register, which reads the FIFO (so changes the state of the FIFO). These events generate an interrupt if On a STM32H745ZI-Q - Board I want to create periodical 4-byte SPI transfers triggered by a timer. My requirements are as follows: Receive messages of unknown size Receive messages at any time Ability to transmit at any time So far I am having the following issues with the HAL SPI slave implementation: its very simple code generated by cubeMX . no problems, so i think your problem is not about the spi , but something else. Why is this? The process is performed in the following order: HAL_SPI_Receive_IT(&hspi2, tmp, Hello all, I am using an STM32H7 and STM HAL drivers V1. I will give it a try asap. Figure 3: part 1 of my main while loop with the enable and workaround shown. 5. If SPI clock is F_PCLK/128 - on the Master side. Pavel A. But why does the SPI buffers anything anyway? Shouldn't it always transmit and receive equal amount of data? Probably HAL splits Rx/Tx streams and puts an unused part of SPI exchange in Tx-only Common Receiver Issues with STM32H7 Interrupt-Based SPI. So, i've decide to use LPTIM2 to generate the 1MHz signal (50% duty) to generate the start conversion for ADC (posi HAL_SPI_TransmitReceive_DMA(&hspi1, pTx, pRx, bufSz); to (re-)start it afterwards. 0, SPI slave in interrupt mode. I am sending a 2 byte command and receiving a 6 byte response. STM32H7 SPI communication: FIFO management problem. 56Mhz SPI clk speed is running. smati2. 1 Problem: I am observing significant overshoots (up to 30%) on the SPI signals when probing at the connector (refer to the attached picture). cube code was generated ,receive and transmit values via SPI. What I am trying to do is read an adas3022 adc (Link to datasheet below) on a spi peripheral from the STM32H7. Senior Options. We are facing same problem with SPI+DMA on stm32h7. Hello, I am working on a full duplex SPI communication through DMA using STM32H7. I use two core M7 and M4. I am using SPI5, to allow connecting an X-NUCLEO-NFC08A1 directly via the Arduino headers. first comes to my mind: problem at 32 byte I had a communication problem with my SPI code and after a while I found out that it was due to the Periodic Windows Update. The STM32H7 SPI DMA not working; Options. SPI Slave Receive does not work. 0. SSI := 1. I'm using SPI 1 on an STM32F429ZGT6. Hello! I tested my DAC8563 on a STM32H743 but it doesn't work (0V on A & B Channels) So I tried with an Arduino UNO and it's OK. Viewed 3k times 0 I am currently learning on STM32F0k6 board (ARM Cortex M0) using DMA and SPI. So, the second byte is sent immediately after first byte is shifted to SPI's TxBuffer (HW). "interrupt-based SPI slave transmitter/receiver on a STM32H7 MCU": InitializeMasterTxSPI() shouldn't really configure the SPI as a master as the name implies. I want to configure a simple interrupt-based SPI slave transmitter/receiver on a STM32H7 MCU. Because the number of bytes that will be received by the slave is unknown I don't use DMA. This is a question about Receive Only Master (SPI_DIRECTION_2LINES_RXONLY). Modified 4 years, 4 months ago. It woks using : CR1. STM32H7 SPI clock frequency, is not changing with different BaudratePrescaler Value STM32H7 SPI communication: FIFO management problem. I'm trying to implement SPI slave on STM32H7 that responds with different data based on command bytes from master. Interrupt Priority Conflicts: Problem: The SPI interrupt may have a lower priority than other interrupts in the system, causing delays in interrupt handling and potentially missed data. Test SPI independantly (UART3 disabled, or DMA disabled on UART3) Disable ISR/DMA one at a time on SPI Btw, if you're using only one SPI instance, you shouldn't need to enable both SPI_STM32_DMA and SPI_STM32_INTERRUPT at the same time. I'm transmitting 2 dummy data bytes (0xFF) in order to get some response from the SPI slaves. Furthermore the HAL functions already call Disable/Enable SPI. My system use SPI clock speed 13,5 MHz. \$\begingroup\$ What is the actual SPI state code? You can read the code of actual SPI state with HAL_SPI_GetState() and see what is actually going on. Author Topic: STM32H7 SPI do not transmit (Read 3392 times) 0 Members and 1 Guest are viewing this topic. Here is the problem: In the slave SPI interrupt I just count the received bytes and when I get four (two command and two CRC bytes) I The main problem was the access to data register. When writing a full What I meas by pulsated NSS is that the NSS is released after each SPI byte/halfword , automatically in burst transmission and DMA modes. 2. Hot Network In STM32F7, The code is running from the internal flash (default), we can read/write data from/to internal flash. Newbie; Posts: 1 I'm having the same problem with the stm32h7 using the NUCLEO-H743ZI and mbed-os. c provided by STM32CubeIDE 1. 12 SPI I don't know the STM32H7 DMA implementation exactly. STM32 SPI Slave configuration. Modified 3 years ago. Problem is, after the trigger has started your first DMA transfer it has to be changed to SPI RX buffer empty trigger which can not be done automatically. 2 Frequency constraints I am trying to transfer the data in SPI using DMA, where as my Hal status is HAL_SPI_STATUS_BUSY_TX. Here's my setup: SPI_HandleTypeDef SPI_1; void SPI_INIT(void) { Skip to main content. The slave MISO lines are also multiplexed ( 16 per mux ), also spi controlled. Ask Question Asked 4 years, 4 months ago. Figure 4: part 2 of the main while loop with disable and abort used for testing the spi and trying to get it unstuck. Viewed 174 times 0 I use an STM32F0 discovery board. I would like to use this capability to trigger an SPI On STM32H7 spi_ker_clk maximum frequency is 200Mhz (so with a prescaler set to 8 your SPI clock is at 25Mhz maximum). STM32 SPI Interrupts The SPI interrupt events are connected to the same interrupt vector. The problem is sending 8 packets one after the other. Then I could use one master spi port to control data out and clk to all slave including the rx spi ports, and the other four spi ports would receive the 3-bytes simultaneously. I do not see any data on the SCK line and HAL_SPI_Transmit() always fails. EEVblog Electronics Community Forum . the first MCU (master ) is stm32L100 and the second (slave) is stm32h743II (I understood that SPI with DMA don't work in this type of MCU, bug or something) I am using STM32H7 family of microcontroller as SPI Master Transmit device which needs to talk to 4 SPI slave devices receive only which are also all STM32H7 MCU's. Generally, GPIO output is preferred but the STM32H7 also has proper hardware support for controlling CS. Communication problem with SPI NAND flash memory (STM32L4, QSPI) 6. SSOE to 0. This morning again: The system was running the whole night with the ULINK connected and Keil Debugger running. What is may be wrong? I use SPI1 on stm32F7 as a master only mode with SSOE config bit. The only difference is: SPI_Abort() and SPI1_Init() have no effect on the first run, because the SPI is in it's initial state after a hardware reset. This configuration does not work, but if I set pull-up mod I am using stm32h7a3 MCU and I am trying get manufacture id from external SPI flash(W25Q64FV). I have attached a snippet from the technical reference manual below that describes the operation modes of the CS line: I I have tried to set DMA and SPI with STM32CubeMx but the problem remains the same. I use ping-pong buffer in SRAM2 (two similar buffers). When I reduce the speed, sometimes the PN532 can read the card's ID, Hi. My board is a nucleo STM32L432KCU board. g CRCSIZE Such a bit shift could indicate that you the SPI master or slave is not operating in the correct SPI mode. Issue is that. On STM32H7 I'm using DMA for SPI transfer. Associate III Options. Transmission of commands works fine (checked with a logic analyzer), but receiving doesent work (allthough the ADS1298 device sents the right commands back - checked with a logic analyzer) - see the two figures attached (one with decoding the sent command, the other decoding the Update: Well, it appears that in fact leading zero bytes were a buffering problem, calling HAL_SPIEx_FlushRxFifo() before SPI transaction for data cleared one of issues. All DMA functions are working Good day The problem I am trying to get an SD card working using an STM32H7 uController. STM32H7 SPI DMA not working. Both master and slave are configured for software slave management. Hot Network Questions Use an RC network to ensure reset on power on Is anyone in the Tanakh referred to by their mother's name? Defining a differential equation only on the domain interior or on its closure. > The I have recently switched to the newly-produced SM32H7 MCUs and I am currently in the process of migrating some of my old code to them (I want to see how they handle some applications that require a bit more speed). How can I overcome this problem? Thank you for the responses @PGump. Data processing performing for first part of the buffer in thread, while second it's part is filled with data over DMA. STM32F0x8 SPI with 25LC256 recieve problem [Peripheral Lib] Ask Question Asked 3 years ago. All DMA functions are working Use CS how you want. – Ilya. QUADSPI->DR is a volatile uint32_t. All forum topics; Previous Topic; Next Topic; 14 REPLIES 14. [SOLVED] STM32F4 Hal: SPI problems: SPI sets itself to slave mode - Page 1. DMA transfer data from SPI to SRAM2 (0x30000000). One SPI was not working any more. Hi, no, I am sending and receiving 84 Bytes, then CS goes high and I disable SPI to flush buffers. FAQs Sign In. Mark as New; Bookmark; Subscribe; Mute; Subscribe to RSS Feed; Permalink; Print; Email to a Friend; Report Inappropriate Content ‎2023-12-15 07:48 AM. In summary these can be the possible issues: Memory placed in DTCM RAM for D1/D2 peripherals. The problem start when we use HAL_SPI_Transmit() function. 0 Kudos Reply. The software will have to detect it. My problem is: I want to use external QSPI flash for my code execution (Memory mapped . I have stm32H745 nucleo board, in my project i want send data from MOSI via DMA (i did the same on old F4 discovery correctly). Stack Overflow. HAL_SPI_TransmitReceive_DMA() works fine with DMA for us. but i don't know why? I am using STM32CubeMX to generate main project and Keil IDE to write and debug. I’m testing a 32Mb serial QUAD SPI RAM (ISSI – ISS66WVS4M8) with the nucleo – H723ZG development board. Times ago I used different STM MCU without problems (F4, F7). See screeshots. Code: // read encoder expander chips for encoder button data HAL_GPIO_WritePin(GPIOG, ENC_CS1_Pin, GPIO_ It looks like the STM32H7 SPI controller is capable of pulsing CS after every 24 bit frame on its own. So whenever I access QUADSPI->DR, even if I received 1 byte, it reads 4 bytes from the register, and it also produces gibberish with I have tried to set DMA and SPI with STM32CubeMx but the problem remains the same. The SPI mode defines clock polarity and phase. 2. I try sending 1-8 to this slave, and the data shows correctly on oscilloscope; however, I just get repeating sequences of: For the ADC and SPI RX working in DMA mode I need instead to do a Invalidate the cache in order to be sure the CPU look for new data in the SRAM rather than in the local cache. I'm using HAL SPI drivers to read some MCP23S17 expander chips. Setting it to 23 (one less than the actual frame size) has two effects. 3. __HAL_SPI_ENABLE(&hspi1); __HAL_SPI_DISABLE(&hspi1 . DAC8563: STM32H7 SPI problems. So I do not know if there anything else wrong, but you certainly should wait You may find that the SPI transfer by DMA works the very first time. problem seems due to below errata. You have to update HAL firmware to 1. I have configured the SPI6 to be in SPI master mode and I am continuously reading data from a sensor. All DMA functions are working Hi All, Looking at the STM32H7 Ref manual it seems the DMAMUX would allow for a DMA channel to be synchronized with an external event on the EXTI0 input. Observations: I am aware that I can adjust the speed of edges on the STM32 side, which results in a I want to read/write from external flash (Winbond W25Q16BV) with STM32 micro (stm32F030F4). c, I see that SPI_FLAG_EOT i A miracle has happened: For the first time ever, I was able to successfully utilize the hardware nSS management mode on STM32 SPI peripheral. I'm using low level driver to read 2 bytes of data. I have downloaded, built and flashed By default the SPI is in slave mode, I need to fix the SS for master. A Free & Open Forum For Electronics Enthusiasts & Professionals 0x80,r);}} #pragma GCC diagnostic pop My problem: When I probe the pins with my oscilloscope I get a square wave of around 12khz on the data lines and spiking on Hi, I'm working with stm32H743zi (Nucleo-144) , I have a device that transmitting data via SPI to my stm32H7, the problem is that the device sending data with a variable length that I have no idea about it and there is no way to receive the length before . The project uses SPI1 to transmit to SPI2 on the same board at 25 megabits per second using 4 inch wires for both data Hi there! I have a problem when using QSPI with NOR flash. Problem: When following line of code is executed *((__IO uint8_t *)&hspi->Instance->TXDR) = *((uint8_t *)hspi->pTxBuffPtr); That is how it would work on the STM32F4, but the STM32H7 SPI does not function the same as older/simpler families. The clock line does nothing and just sits idle so it just hangs waiting for the EOT. Now, I noticed that just after I've done the SET_BIT in the SR register happen to be Figure1: part 1 of my spi_protocol() function. It seems that the code shown below can manage the problem. In these cases, the DMA role is limited to manage data transfers. Thanks in Advance. I want to execute a simple example I have been having a bit of trouble getting an SPI CS line to behave as I expect it should. The data shifts on one byte: in case of SPI clock is about F_PCLK/4 - on the slave side. You didn't present DMA configuration, and the problem is either that you didn't activate DMA in the SPI peripheral, or DMA is misconfigured. We have tried this, Problem may not be due to D-Cache handling, because we have tried same code with D-Cache disabled also. Associate II i am running up to 4 SPI , one is in slave mode receiving 2KB blocks at 12 Mbit. Fault is almost certainly me as this is the first time I have used SPI/DMA Im moving my project code from stmf407 to stm32h743 and i have stucked with spi. At the transfercomplete interrupt I am also disabling SPI. STM32H7 HAL SPI DMA Not receiving data Rob Ashworth. STM32 SPI communication with HAL. > As i mentioned TXP is becoming zero if you write two time in TXDR register through expression window La versione attuale della libreria gestisce la comunicazione SPI via: standard SPI: W25Q gestisce QuadSPI ma questa libreria usa Standard SPI; polling mode: non viene usato "interrupt mode" nè "DMA mode" Vedi i video youtube sotto per conoscere i vantaggi di questo approccio. Subscribe to RSS Feed; Mark Topic as New; Mark Topic as Read; Float this Topic for Current User; Bookmark; Subscribe; Mute; I've red few posts with the same problem but the solution is never explicated or done not using only HAL function. Finally, here is the write_SPI function, but due to it's simplicity, I don't think that it is the problem. STM32H7 SPI DMA transfer, always in busy transfer state, HAL_SPI_STATE_BUSY_TX. The problem is the SPI doesn't start at all. By the way i have noticed that the master(F7) sends 26 bytes twice. It works fine if I use all the QUAD SPI commands but my need is to use it in memory mapped mode. The SPI is configured as "Transmit only master" and the hardware NSS signal is disabled. @StefJar Would you be able to test you set up using differential testing. Most of the time, the receive works well, but from time to time, I'm receiving 0x Found problem: HAL_SPI_TransmitReceive sends data over MOSI when TXE becomes true. First of all stmh743 has many more registers and it also lack some of them like RXONLY register in CR1. What I use : @wek: i followed your hint and I now clear the Interupt Status Registers before starting a new TxRx. g. When i use the memory mapped mode configuration I notice a problem in the write phase. The trouble is there is 6 mS of delay between the write and read. Ask Question One reasone which could cause such problem is that the Variable which stores data to be sent is placed in the wrong RAM reigon, review you With my STM32, I use the SPI protocol in slave mode (full duplex) and I use a 27-bit buffer memory for reception (RxBuffer [26]) and 8 buffers of 27 bits each for transmission. the only thing that I know is the maximum data length that could be received But new problem appeared. Using SPL's SPI Transmit & Receive library, I implemented and proved the SPI data transmit & receive and confirmed SCK, MISO, MOSI, and SS signal on the Nucleo-H7A3 evaluation board. However, no data is being received(tmp). While interrupt-driven SPI is efficient, several factors can lead to receiver issues: 1. With this configuration, only 1. The receive works very well. Everything looks to be fine until I generated and started to use the SDMMC interface to connect to a SD card. GPIOA#4 is used as NSS pin alternative function 5, push-pull output. Evangelist III Highest suggested version is 1. This way the SPI DMA is almost useless ,because I need to monitor the end of SPI transmission in order to release and reassert NSS manually. void write_spi(char data) { SPI1->DR = data; while (!(SPI1->SR & SPI_I2S_FLAG_TXE)); while (!(SPI1->SR & SPI_I2S_FLAG_RXNE)); while (SPI1->SR & SPI_I2S_FLAG_BSY); } STM32H7 SPI communication: FIFO management problem. However, the SPI transfer timing (CS low) has a STM32H7 SPI communication: FIFO management problem. DMA writ I continue filling in the continuation of the response in both HAL_SPI_TxRxHalfCpltCallback and HAL_SPI_TxRxCpltCallback until the CS is released. It did not send clocks. Looking in stm32h7xx_hal_spi. (TxBufferPKG0[27], TxBufferPKG1[27], ,TxBufferPKG7[27]). MARIO MAINO Prodigy 70 points Part Number: DAC8563. Browse STMicroelectronics Community. STM32 SPI Driver Receiving Data Always 0. SPI; STM32H7 Series; 0 Kudos Reply. Solution: Ensure the Hello, I am running into an issue using the SPI functionality on my STM32H7 chip that is on a custom made board. I checked the debug process, and found HAL_SPI_STATE_BUSY. Then I set CFG2. Commented Feb 25 at 9:11. In this case, the HAL SPI DMA setup is waiting for some interrupt handlers (DMA transfer complete) to reset the internal BUSY state. So, I'm thinking I could use 4 spi ports on STM32H7 in simplex receive only mode. All master transmitters. So the SPI fires a single interrupt signal regardless of the source of it. 1. I'm trying to send a character over SPI using the Low Level API. I am working with a Nucleo-H743ZI on a Makefile C project using STM32CubeMX generated project code (Fiirmware version V1. STM32 Master/Slave SPI communication using HAL_SPI_TransmitReceive() Hot Network Questions Problem with lua's load function Can a ship like Starship roll during re-entry? How to print from Surface Snapdragon to printer without ARM compatible driver Using the STM32H747I-DISCO, I am having problems getting SPI working at all. Describing the problem: I can see that the Tx-Buffer that DMA is working with is as expected at all times, but the output of the SPI slave is wrong. SPI communication on STM32H7 Working on interfacing Nucleo-H7A3 to COMX-CN-FB evaluation board which embedded netX made by Hischer using SPI interface. On other STM32 controllers you can select the DMA trigger interrupt to be e. When CS goes low I am enabling SPI, shortly after the transfer begins (a few µs). 0) to troubleshoot a problem with SPI transmit using DMA. It can be controlled by hardware or by you control it manually using it as a GPIO output. Fill the 4x4 grid with numbers to make eight arithmetic progressions Hi everyone I'm currently working with the STM32H755ZI SPI1 peripheral. Figure 5: the spi configuration that has been set up. So far I got this working the following way: TIM triggers DMA DMA initiates the SPI transfer. I was able to output the waveform shown in the attachment using Receive Only Master. This made me start looking at the TxFIFO SPI controller of STM32H7 is more complicated than in other models. After investigation, I have found that the issue only appears if there is switch from output to input without dummy cycles. It don't help me. MASTER to 1 We were experiencing strange crashes originating from HAL_SPI_TransmitReceive and HAL_SPI_Receive when operating in SPI Slave mode. The MCU first sends a byte array as a command to the device on the PIS bus, this device interprets the sequence and, depending on the content of the command received, also sends back a byte array of different lengths as a response. Ok, this settings is not a byte count, rather it is "item Hello, I'm working on a board with STM32H745. This is STM SPI initialization code: I cannot to set NSS pin in push-pull mode. So if an interrupt (or contex switch) occured right after transmission of the first byte, when we return to read DR it may Strangely, I have a communication problem when I set the spi prescaler for baud rate to 256 after reducing the spi speed from these settings. What im trying to do its receive 19bytes from the master,the master is a complete device and i cant control it. I can see one problem for sure which is HAL related. CFG2. And the problem still exists. But that does not change the fact, that I still need the TC-interrupt on the TX DMA Stream to turn it off immediately, my SPI kernel clock at 400Mhz and prescaler 256 at this configuration alone, my SPI is generating Clk, MISO,MOSI, CS signals, when I change the Prescaler Value other than this value, none of the signals are generated, the code enters into a Loop, Device busy status is returning. Setting MOSI to the required GPIO pin manually worked. I'm trying to set up a basic SPI interface using the HAL Problem: The SPI interrupt may have a lower priority than other interrupts in the system, causing delays in interrupt handling and potentially missed data. Figure2: part 2 of my spi protocol function. Use case is STM32H7 being a master for an SPI slave with fixed 32-bit word width, with only single-word packet length, one device per SPI bus. I still have no clue why so much old data (it is more than 2 Bytes) is send. Second question: Who causes the issue? I have tried to set DMA and SPI with STM32CubeMx but the problem remains the same. 1 and @gbm, I have found that I needed to call __HAL_SPI_ENABLE(&hspi1); to get the interrupt to trigger however the data coming in seems random. Setting DSIZE tells the controller the number of bits in one frame. I have in the past successfully integrated SDIO with STM32F4/F7 microcontroller but cannot get it to work on an Hello, I have a problem with the SPI protocol (NUCLEO144-STM32H743Z2 board) in a very specific case. SSM := 1. STM32H7 SPI DMA transfer, always in busy transfer state, HAL_SPI_STATE_BUSY_TX 1 SPI with DMA transfer between two STM32 chips results in reordered data in struct Problem with SPI5 in stm32h747-Disco SLuit. I reduced 'SPI_DATLEN_BYTES' to 26/2. It seems, that sometimes data in cached memory is corrupted. 1. The CSTART bit (that is the one that start the transfer) remain cleared, even right after I SET the bit. Asantos. I have tried to set DMA and SPI with STM32CubeMx but the problem remains the same. All DMA functions are working Problem in STM32F7 with ethernetif. In this version there are no SPI issues known. calling HAL_SPI_Receive_DMA gives all 0's after calling HAL_SPI_Transmit_DMA. How did you set up your clocks ? Communication problem with SPI NAND flash memory (STM32L4, QSPI) 0 stm32 and external flash (w25q) connection problem. mqo otcghmbe rpeab ahxz jmphk giod xby zek veiy qjhu