FRDMK64F_dev_cdc_vcom_bm question

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

FRDMK64F_dev_cdc_vcom_bm question

跳至解决方案
1,280 次查看
neilporven
Senior Contributor I

Hi everyone,

I was able to run the project sample FRDMK64F_dev_cdc_vcom_bm successfully.  I am wondering if there

is documentation that explain how can I now port just what I need for my custom board?

Example: There several folders CMSIS, board, component, device, drivers, osa, etc....

Thanks,

Neil

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,097 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

The main difference with the lite project is that it does not introduce CDC-ACM class, so users have to use a low level function to send and receive. The lite project uses USB_DeviceSendRequest to send data while the other uses  USB_DeviceCdcAcmSend.

If you want to modify the project for your own needs and board, I recommend you keep using the dev_cdc_vcom_bm  project.

Best Regards,

Ricardo Delsordo

在原帖中查看解决方案

7 回复数
1,097 次查看
mjbcswitzerland
Specialist V

With respect to USB on any K64 based board you need to ensure that the clock is set correctly for USB operation:
- that is, ensure that it is configured to deliver 48Mhz to the USB controller (based on the available clock source and clock configuration)
- or, in case of crystal-less operation you may need to configure this mode if it is supported as an option in the example or add the configuration, including the erratas (reference: http://www.utasker.com/kinetis/MCG.html - including IRC48M workaround reference).

Regards

Mark

0 项奖励
回复
1,097 次查看
neilporven
Senior Contributor I

Thanks Mark, I will make sure my clock settings and configured accordingly.  As I told Ricardo, I will then dig through the

available folders and see which are required and which I can omit.  I am still trying to adjust to MCUXpresso, since I worked

with Kinetis Design Studio in the past.

0 项奖励
回复
1,097 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

You can use the same SDK project you used with the FRDMK64F for your own custom board. However, as both boards are designed differently, you will have to modify the "board" folder from the SDK project according to your custom board.

Unfortunately, there are no guides for doing this (as every customer has a different design for their custom boards) but I can assist you with any doubts you could have.

Best Regards,

Ricardo Delsordo

0 项奖励
回复
1,097 次查看
neilporven
Senior Contributor I

Hi Ricardo,

Do you happen to know what is the difference between dev_cdc_vcom_bm and dev_cdc_vcom_lite_bm?

Thanks,

Neil

0 项奖励
回复
1,098 次查看
nxf51211
NXP Employee
NXP Employee

Hi,

The main difference with the lite project is that it does not introduce CDC-ACM class, so users have to use a low level function to send and receive. The lite project uses USB_DeviceSendRequest to send data while the other uses  USB_DeviceCdcAcmSend.

If you want to modify the project for your own needs and board, I recommend you keep using the dev_cdc_vcom_bm  project.

Best Regards,

Ricardo Delsordo

1,097 次查看
neilporven
Senior Contributor I

Thank you Ricardo.  That made it simple to understand the difference between the two.  I would definitely use the 

the dev_cdc_vcom_bm.

Neil

0 项奖励
回复
1,097 次查看
neilporven
Senior Contributor I

Thank you Ricardo, I will then dig through the folders and see was revalent to my custom board and what I can omit. 

0 项奖励
回复