I have problem use Freescale USB Stack v4.1.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I have problem use Freescale USB Stack v4.1.1

705 Views
pedrogonzagadas
Contributor I

I test example "msd_mfs_generic_test"

 

C:\Freescale\Freescale USB Stack

v4.1.1\Source\Host\examples\msd_mfs_generic_test

 

and when use function read in function in first nivel of main, this function

performs ok, but when use this function read with pointer FIL this

function fail.

 

I wrote a function for text find in file that call function f_read

int f_search_tag_xml(FIL *file, uint32 sequencia, unsigned char

*tag_xml, uint8 fim)

 

 

 

Problem, the firsts bytes that come in buffer, come different. No real

information.

 

The first byte of file read should be '<' but come '@'.

 

I used kit tower MCF52259 with TWR-SER

 

My pendrive was format with FAT32 4096 sector and only file

 

idiomas.bin in folder idioma

 

I am send saveral files:

 

project

file that is in my pendrive

screen shots with problem

file info version

 

Please, help me.

Pedro

Original Attachment has been moved to: problem_read_file.rar

Labels (1)
0 Kudos
Reply
1 Reply

499 Views
TomE
Specialist II

"rar" isn't universal. Please edit/delete and repost the attachment using "zip".

What is "first nivel of main", and what is "pointer FIL"? Remember I can't read any of your sources to find out.

You do know this is a BIG-ENDIAN CPU, and if you read anything other than BYTES (like 16 or 32-bit integers) that have been written on a little-endian PC then they'll be byte-swapped.

Tom

0 Kudos
Reply