I try the example project SCB_SPI _Master_DMA but there is an error with the following line:
Cy_DMA_Descriptor_SetDstAddress(&txDma_Descriptor_0, (void *)&mSPI_HW->TX_FIFO_WR);
The TX_FIFO_WR : could not be resolved.
I try to find some advice in google, but no luck!
Do you have some advice ?
We are not facing any issues while we build the example project.
Can you let us know your PC configuration?
Can you also try building other code examples and check if that is working?
Thank You for your answer. My PC is Windows 10 last update, I try the blink led and hello word without any trouble.
I have updated Modus Toolbox with the last patch 2.21 and I have the same trouble. In fact I would to use the WS2812 Project (https://iotexpert.com/psoc-6-dma-ws2812-leds-modus-toolbox/ ) and I have this error. So I try the SPI-DMA project from scratch to verify if there is some error in the project WS2812, and I have the same trouble. I paste a print screen with the error in the spi_dma.c
I try to replace &mSPI_HW->TX_FIFO_WR by &SCB2->TX_FIFO_WR but no luck, same problem.
Just to complete, when I build the project there is no errors, no warning, but there is a problem as I show in the previous print screen. And when I try the program on the board it is not OK.
Result of build:
Finally I find the solution:
- On project name, right click, select index --> Freshen All files
- On project name, right click, select index --> Rebuild
and after Build project and every things are Ok.