Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 SDK Forum Discussions

Gide_1238951
Level 2
Level 2
First solution authored First like received Welcome!

Hi,

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 ?

Thanks.

Gilles.

0 Likes
1 Solution

Finally I find the solution:

- On project name, right click, select index --> Freshen All files

follow by:

- On project name, right click, select index --> Rebuild

and after Build project and every things are Ok.

G*

View solution in original post

7 Replies
Gide_1238951
Level 2
Level 2
First solution authored First like received Welcome!

Just to complete my question I have the following kit : CY8CPROTO-062-4343W

G*

0 Likes
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi,

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?

Regards

Alakananda

Alakananda
0 Likes

Hi,

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.

Gilles.

pastedImage_2.png

0 Likes

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:

pastedImage_0.png

0 Likes

Hello,

Anybody do you have  any news ?

0 Likes

Finally I find the solution:

- On project name, right click, select index --> Freshen All files

follow by:

- On project name, right click, select index --> Rebuild

and after Build project and every things are Ok.

G*

Hi,

FYI,

Before reading your solution, I tried

Changing

Cy_DMA_Descriptor_SetDstAddress(&txDma_Descriptor_0, (void *)&mSPI_HW->TX_FIFO_WR);

to

Cy_DMA_Descriptor_SetDstAddress(&txDma_Descriptor_0, (void *)&SCB_TX_FIFO_WR(mSPI_HW));

And it was also compiled OK.

moto

0 Likes