FLAGA behaviour not changing after configuration, please help ! | Cypress Semiconductor
FLAGA behaviour not changing after configuration, please help !
Hello all, I have a strange problem with a simple synchronous 8bit slave FIFO and the programmable FLAGA.
The FIFO is stryctly P->U, the U socket is EP3IN and the P clock is 50MHz, there is only one thread ( no address pins used) and the GPIO_21 is used as the FLAGA. If use a very simple state machine that works OK with a reduced data rate.
To be able to increase the data rate I have programmed the FLAG a "FIFO almost FULL" flag by using the function:
CyU3PGpifSocketConfigure ( 0, (CyU3PDmaSocketId_t)(CY_U3P_UIB_SOCKET_CONS_0 | EP3IN), 8, CyTrue, 1 )
The pin reacts to the data but no matter what value I use for the the number of elements ( 8 in the ex.) the behaviour of the pin does not change amd I'm losing data :((
I didn't do any other GPIO settings for the used pin GPIO_21, are they any settings needed besides the calll to CyU3PGpifSocketConfigure() ?
What am I doing wrong, please help ?
Also I used also the current thread and thread 0 in the state machine ( firmware recompiled each time ) but it didn't make a difference.
If any other info or data are needed I will gladly provide them because this issue drives me crazy and I don't have many hairs left to pull.
Many thanks, MC
P.S> Including in the next SDK release of a full example deaiing with progammable flags in the sample firmwares I think it will be a good ideea.