KSDK 1.1.0 Bootloader isn't Resetting USB Register Settings

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

KSDK 1.1.0 Bootloader isn't Resetting USB Register Settings

2,106件の閲覧回数
derekvalleroy
Contributor I

Hello,

I have an application on the K22 that gets bootloaded by the KSDK 1.1.0 bootloader.  The bootloader and the application both use USB.  I've found that I need to manually reset all the USB registers after the bootload to get my application's USB to work.  Has anyone else come across this?  I guess I would have thought that the bootloader (FSL_Kinetis_Bootloader_1_1_0) would do this before jumping to the application.  Maybe I'm missing something.

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

1,882件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Derek,

I just used the flashloader from the FSL_Kinetis_Bootloader_1_1_0 to program dev_hid_mouse_frdmk22f120m_bm from the KSDK 1.1.0 through the USB interface.

After programming process completed, the demo run well, it needn't to reset all the USB registers before the demo start to execute.

I've attached the Demo Applications User-s Guide for the Kinetis K22 Platforms and you can learn the procedure to program the application by the bootloader, please refer to it for details.
Have a great day,
Ping

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

0 件の賞賛
返信

1,882件の閲覧回数
derekvalleroy
Contributor I

Hi Jeremy,

Thanks for the info.  Where can I find the dev_hid_mouse_frdmk22f120m_bm project?  I'd like to take a look at it to see if there is something different in the way the USB is used. 

In our application the USB is configured as a host (not OTG).  I could see that the bootloader left some of the registers configured for OTG, and this is where problems started happening.

Regards,

Derek Valleroy

0 件の賞賛
返信

1,882件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Derek,

The demo dev_hid_mouse_frdmk22f120m_bm from the Kinetis SDK 1.1.0 and you can download the develop kit through the link as below.

Software Development Kit for Kinetis MCUs|Freescale

Wish it helps.
Have a great day,

Ping

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

0 件の賞賛
返信

1,882件の閲覧回数
derekvalleroy
Contributor I

Hi Jeremy,

Thanks.  Are you using the SKDK_1.10/usb/example/device/hid/hid_mouse example?  I didn't see a mouse in the KSDK_1.1.0/demos folder.

-Derek

0 件の賞賛
返信

1,882件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Derek,

Sorry, I should list the path of the demo in the last reply.

And he demo reside in the ~:\Freescale\KSDK_1.1.0\usb\example\device\hid\hid_mouse\sdk\iar\dev_hid_mouse_frdmk22f_bm, please refer to it.
Have a great day,
Ping

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

0 件の賞賛
返信