In USB USBRST bit is not getting set.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

In USB USBRST bit is not getting set.

1,172件の閲覧回数
shabana
Contributor II

Hi,

The following are the things that I have done.

     1. Im using the Freescale USB stack v4.1.1.

     2. The example project that Im refering is msd_msf_generic -> K40.

     3. Im converting the K40 project to KL46.

     4. In not using the same workspace to create the project instead I have copied the files to some other workspace.

The problem is if I connect the USB memory stick the control comes to the ISR but the USBRST bit is not set.

The register looks like the attached picture.

can any one help me!!!!!!!

Regards,

Shabana

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

969件の閲覧回数
shabana
Contributor II

Hi,

Actually now Im trying using processor expert. In same USB atack there are some example project for MSD using processor expert. In that I have changed the code created in KL25 for KL46.

In UART Im getting following error message..

Waiting for USB mass storage to be attached...

Mass Storage Device Attached

================ START OF A NEW SESSION ================

Testing: GET MAX LUN Command..........................OK

Testing: TEST UNIT READY Command...Unsupported(bStatus=0xfffffff9)

Testing: REQUEST SENSE CommandFAILED(ff)

Testing: INQUIRY CommandFAILED(ff)

Testing: REQUEST SENSE CommandFAILED(ff)

Testing: READ CAPACITY CommandFAILED(ff)

Testing: REQUEST SENSE CommandFAILED(ff)

Testing: READ FORMAT CAPACITIES CommandFAILED(ff)

Testing: REQUEST SENSE CommandFAILED(ff)

Testing: MODE SENSE CommandFAILED(ff)

Testing: PREVENT-ALLOW MEDIUM REMOVAL CommandFAILED(ff)

Testing: REQUEST SENSE CommandFAILED(ff)

Testing: VERIFY CommandFAILED(ff)

Testing: WRITE(10) CommandFAILED(ff)

Testing: REQUEST SENSE CommandFAILED(ff)

Testing: READ(10) CommandFAILED(ff)

Testing: START-STOP UNIT CommandFAILED(ff)

Test done!

all the test has been failed..:smileysad:

help me!!!!

Regards,

Shabana

0 件の賞賛
返信

969件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Shabana,

I think that might be some incompatible issue between the usb stack and the pen driver, just like what is mentioned in the release note for usb stack ver 4.1.1.

1.png


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

969件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Shabana m,

As I know, there is some code issue in the demo of msd_mfs_generic host from usb stack ver 4.1.1, please kindly refer to [USB stack ver 4.1.1] a code issue in msd_mfs_generic host demo for more details.

Hope that helps,


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

969件の閲覧回数
shabana
Contributor II

Hi Kan,

The code has been changed as they have said in the link even though the problem is not solved.

Regards,

shabana

0 件の賞賛
返信