I have problem use Freescale USB Stack v4.1.1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I have problem use Freescale USB Stack v4.1.1

652 次查看
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

标签 (1)
0 项奖励
回复
1 回复

446 次查看
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 项奖励
回复