How to keep USB alive while entering bootloader?

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

How to keep USB alive while entering bootloader?

1,372 次查看
georgschmidt
Contributor III

Hi,

I'm working on a USB-Bootloader for my Kinetis K60 project.

I have to seperate projects (bootloader and application) stored in different Flash-sections.

Currently I'm able to jump from application to bootloader and back.

The problem is, that I loose the USB-connection (running on USB0-module) after jumping from one section to the other.

If I do a complete reinitialisation of the USB, the USB disconnects and reconnects imediately after the jump.

But I don't want the PC to recognize the jump, so I have to recover some settings of the USB-module.

But which?

I tried to recover the BDT-Table contents, but this seems not to be enough. Do I need to recover the Endpoint-Buffers also?

Has anyone done something like this without using a RTOS or Processor Expert?

Regards,

Georg

标签 (1)
标记 (2)
2 回复数

1,165 次查看
juanma_clautron
Contributor II

Hi Georg!

How do you jump from the app to the bootloader "Currently I'm able to jump from application to bootloader and back." ???

Thanks

0 项奖励
回复

1,165 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Georg:

I think the jump cannot be transparent for the PC. The bootloader and the application do not share the same BDT table, instead each one has its table, and the transition is detected, so as you mentioned you need to reinitialize the USB.


Regards!,
Jorge Gonzalez