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
已解决! 转到解答。
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
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
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.
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
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