- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I move the code to SlFifoAppThread_Entry()
my GPIF project follows
void
SlFifoAppThread_Entry (
uint32_t input)
{
CyU3PReturnStatus_t apiRetStatus = CY_U3P_SUCCESS;
uint32_t *buffer1=0;
*buffer1=0x0000FF00;
/* Initialize the debug module */
CyFxUhpiDebugInit();
//CyU3PDebugPrint (4, "CyFxUhpiDebugInit success,code = %d\n",1 );
/* Initialize the GPIF */
CyFxGpioInit();
//CyU3PDebugPrint (4, "CyFxGpioInit success,code = %d\n",2 );
//uint16_t ENdian;
//CY_U3P_GPIF_BYTE_ENDIAN=0x0001;
/* Initialize the GPIF */
CyFxUhpiGpifInit();
/* Initialize the slave FIFO application */
CyFxSlUhpiApplnInit();
//CyU3PDebugPrint (4, "CyFxSlUhpiApplnInit success,code = %d\n",3 );
apiRetStatus=CyU3PGpifWriteDataWords (0,0,1,buffer1,10);
CyU3PDebugPrint (4, " CyU3PGpifWriteDataWords, Error code = %d\n", apiRetStatus);
CyU3PGpifControlSWInput(CyTrue);
CyU3PThreadSleep (100);
in this way ,my Oscilloscope read the data bus nothing ,the date writes successfully ,so i want to know if the configure of theCyU3PGpifWriteDataWords is right , I have test the bits get for one time,16bits one time ,so if you have a example that can do success ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sorry . there is data in data bus when move the code to SlFifoAppThread_Entry(). today I use 32bit data bus it put out right , but when i sent two 32bit data ,but it can not refresh the data
uint32_t *buffer1=0;
uint32_t *buffer2=0;
*buffer1=0x00FFFF00;
*buffer2=0xFF0000FF;
apiRetStatus=CyU3PGpifWriteDataWords (0,0,1,buffer1,10);
CyU3PDebugPrint (4, " CyU3PGpifWriteDataWords, Error code = %d\n", apiRetStatus);
CyU3PGpifControlSWInput(CyTrue);
apiRetStatus=CyU3PGpifWriteDataWords (0,0,1,buffer2,10);
CyU3PDebugPrint (4, " CyU3PGpifWriteDataWords, Error code = %d\n", apiRetStatus);
CyU3PGpifControlSWInput(CyTrue);
I can get the first data ,but the second data lost. so can I Initialize the register?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
uint32_t tmp_data[4] ={0x55, 0x22, 0x11, 0x44};I'm not very clear about this, the data type is not the same to the data, it whether indicate that the register can transfer 16 bits for one time ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Did the attached project help you?.
Please let me know if you have any more questions regarding this.
Thanks,
sai krishna.