-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Add support for NXP Kinetis K28FA #2462
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,35 @@ | |||
UF2_FAMILY_ID = 0x7f83e793 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should be put here?
Looks like the |
yeah, it should be ci_hs, try to compile with |
If I didn't totally misunderstand, this is what I've already done? Please check the PR description. Additionally, I have observed the |
sorry my bad, look like it could be an clock/setup issue, each MCU will have slightly different clock setup. Unfortunately I don't have any K28 to test with. I will try to see if I could find a reasonable Kinets with hs usb from ebay. It may take a while though. |
By the way. I am seeing the same behavior on NXP MIMXRT1160-EVK secondary processor (M4). The primary core or M7 is working as expected. Just in case you have access to these boards more easily. |
a7a60fc
to
d5c8da1
Compare
Oh, I don't have rt1160 but got 1170. Let me try to see if I could make a quick switch from m7 to m4 to compile with. However, they can be two different issues with different clock/pin configuration since these MCUs are totally different. |
1170 should be fine. As a background, I did the M4 experiment in MCUXpresso. I took some M4 example as a base and then followed the tinyUSB porting guide replacing the NXP USB stack. |
Just ordered an frdm k66f from ebay to test out this pr. Couldn't find a k28, but I guess it would be much more similar than rt1170. It will take a month or so for it to be delivered to my desk so please be patient. |
This is an attempt to add support for NXP Kinetis K28FA. Effort is mostly based on the existing ports for
kinetis_k32l2
,mimxrt1170_evkb
and thefrdmk28fa_dev_composite_cdc_vcom_cdc_vcom_bm
example in NXP MCUXpresso.Unsure if the
ci_hs
driver is applicable here as is.Current state of the port
Build OK:
Board boots up but doesn't seem to receive the setup message:
Error messages on the Windows 11 host:
Porting guide suggests that this scenario indicates there's something wrong with the USB setup. This is possible but I am running out of ideas what to check. I took the clock config from the working MCUXpresso example and have been also otherwise comparing the projects but have not been able to find the relevant difference. Any tips what to check next? As a disclaimer, I have not worked with tinyusb earlier so I am likely to miss some obvious items too.