In USB USBRST bit is not getting set.

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

In USB USBRST bit is not getting set.

848 Views
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

Labels (1)
0 Kudos
4 Replies

645 Views
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 Kudos

645 Views
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!
-----------------------------------------------------------------------------------------------------------------------

645 Views
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 Kudos

645 Views
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 Kudos