Skip to content

[WIP] Added support for AT32F415#1

Open
HorrorTroll wants to merge 1 commit into
masterfrom
at32f415
Open

[WIP] Added support for AT32F415#1
HorrorTroll wants to merge 1 commit into
masterfrom
at32f415

Conversation

@HorrorTroll

@HorrorTroll HorrorTroll commented Apr 12, 2024

Copy link
Copy Markdown

I'm tried to added support AT32F415 on TinyUSB, it just for in case if there are people want something to choose between CherryUSB.

I've try follow everything, it did get compiled the example of CDC_MSC firmware out. But flashing to the MCU doesn't seem to work, since it just sending error about USB not recognized. If you have some free time, could you take a look for review. Thanks

Notes:
Your project of CherryUF2 is really good and it work great. Oh btw, can I reuse UF2_FAMILY_ID on your CherryUF2?

@HorrorTroll HorrorTroll requested a review from zhaqian12 April 12, 2024 14:17
@HorrorTroll HorrorTroll changed the title Basic support for testing CDC_MSC, but not working [WIP] Added support for AT32F415 Apr 12, 2024
OTG1_GLOBAL->gccfg_bit.pwrdown = TRUE;
OTG1_GLOBAL->gccfg_bit.vbusig = TRUE;
OTG1_GLOBAL->gccfg_bit.avalidsesen = FALSE;
OTG1_GLOBAL->gccfg_bit.bvalidsesen = FALSE;

@zhaqian12 zhaqian12 Apr 18, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enable this, and then test it.

Suggested change
OTG1_GLOBAL->gccfg_bit.bvalidsesen = FALSE;
OTG1_GLOBAL->gccfg_bit.bvalidsesen = TRUE;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just tried, but it still just giving me USB not recognized error after waiting 5 or 10 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants