Skip to content
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

pio usb working, though core1 is not fully run from SRAM just yet #18

Open
wants to merge 17 commits into
base: imx_usb_host
Choose a base branch
from

Conversation

hathach
Copy link

@hathach hathach commented Jun 29, 2023

Get pio usb working with cpy, though core1 is not fully run from SRAM just yet

  • CPU freq needs to be 120 Mhz
  • CFG_TUSB_OS should be PICO for multiple core spinlock
  • add check for tud/tuh task with OS NONE & OS PICO
  • core1 should wait for core0 initialize usbh before calling SOF.
  • may not reset VBUS power pin ?

PS: just fixed conflict, seems like you also added OPT_OS_PICO as well :)

@@ -57,6 +58,7 @@ static void __not_in_flash_func(core1_main)(void) {
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | // Processor clock.
SysTick_CTRL_ENABLE_Msk;

#if 0
Copy link
Author

Choose a reason for hiding this comment

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

@tannewt This PR get USB host running but this MPU code need to be commented out. It is probably due to some code not entirely in RAM (or still ROM access e.g const data). I guess this already made some progress for you to work on.

@hathach hathach changed the title get pio usb working with cpy, though core1 is not fully run from SRAM just yet pio usb working, though core1 is not fully run from SRAM just yet Jun 29, 2023
@tannewt tannewt force-pushed the imx_usb_host branch 2 times, most recently from 64e4145 to 2686bea Compare July 10, 2023 21:22
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