Click here to Skip to main content
15,867,835 members

Comments by Veerendra-13142768 (Top 37 by date)

Veerendra-13142768 2-Aug-18 3:18am View    
i want inter face my USB 2.0 which comes under universal serial Bus controller. how to interface our Device with Direct show application and also i want to enumerate device AS image Device for this what i have to do can you explain?
Veerendra-13142768 7-Jul-18 1:37am View    
still facing the same problem can any one
Veerendra-13142768 9-Oct-17 2:55am View    
thanks for your suggestion ,
you can see now edited the question
actually i know the 8bpp and 16bpp gray image to dislpay by taking a file which has bixel data in the raw format(the file name is veer.raw )
i want to display in the 24bpp so can you help me to display a raw imgage by reading a file from memory and display as image .i hope you will help me
Veerendra-13142768 23-Sep-17 1:07am View    
Hi,
In my code for the first loop of page, 256 bytes are reading from ddr memory. for the second count test address(destination address) is adding with (page_size*page_count)+testaddress....
the pointer increment is also showing, but the the data is still ths same first 256 bytes....
Don't know how to solve this.....
void FlashWrite(XQspiPs *QspiPtr, u32 Address, u32 ByteCount, u8 Command)
{
u8 WriteEnableCmd = { WRITE_ENABLE_CMD };
u8 ReadStatusCmd[] = { READ_STATUS_CMD, 0 }; /* must send 2 bytes */
u8 FlashStatus[2];

/*
* Send the write enable command to the FLASH so that it can be
* written to, this needs to be sent as a seperate transfer before
* the write
*/
XQspiPs_PolledTransfer(QspiPtr, &WriteEnableCmd, NULL,
sizeof(WriteEnableCmd));


/*
* Setup the write command with the specified address and data for the
* FLASH
*/
WriteBuffer[COMMAND_OFFSET] = Command;
WriteBuffer[ADDRESS_1_OFFSET] = (u8)((Address & 0xFF0000) >> 16);
WriteBuffer[ADDRESS_2_OFFSET] = (u8)((Address & 0xFF00) >> 8);
WriteBuffer[ADDRESS_3_OFFSET] = (u8)(Address & 0xFF);

/*
* Send the write command, address, and data to the FLASH to be
* written, no receive buffer is specified since there is nothing to
* receive
*/
XQspiPs_PolledTransfer(QspiPtr, WriteBuffer, NULL,
ByteCount + OVERHEAD_SIZE);

/*
* Wait for the write command to the FLASH to be completed, it takes
* some time for the data to be written
*/
while (1) {
/*
* Poll the status register of the FLASH to determine when it
* completes, by sending a read status command and receiving the
* status byte
*/
XQspiPs_PolledTransfer(QspiPtr, ReadStatusCmd, FlashStatus,
sizeof(ReadStatusCmd));

/*
* If the status indicates the write is done, then stop waiting,
* if a value of 0xFF in the status byte is read from the
* device and this loop never exits, the device slave select is
* possibly incorrect such that the device status is not being
* read
*/
if ((FlashStatus[1] & 0x01) == 0) {
break;
}
}
}
Veerendra-13142768 22-Sep-17 7:15am View    
Thnk you so much sir, you have done really great job...... Xilinx people are not replying for this.... so we trying outside...
Now also ddr memory writebuffer is writing 256times at a time and qspi memory is reading. after the 1st page count write in loop, in the second loop....
pointer is incrementing, testaddress is incrementing, bytecount is 256 onlt, write command is writing. but the write buffer address(ddr memory address)is still the same. may be there we are getting problem I guess.... do you know how to solve this????