TinyUSB does not build on CM4 core inside RT117x #2821
Unanswered
mastupristi
asked this question in
Q&A
Replies: 1 comment 4 replies
-
It's a issue with cache management functions, since DCACHE is not present on CM4 these functions are not available. You can try to comment out these lines. PS: I'd like to remove these cache functions and instead provide a MPU example setting to mark USB buffer sections non-cacheable. Since frequent cache clean invalidate hurt performance and prone to data synchronization issues. But I can only theorycrafting since I don't have dev board... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom FW very similar to the
examples/device/cdc_uac2
example that runs well on the CM7 core of RT117x.If I try to compile it on CM4 it fails the build though. The compile fails because for the CM4 core the functions
SCB_CleanDCache_by_Addr
,SCB_InvalidateDCache_by_Addr
andSCB_CleanInvalidateDCache_by_Addr
are not defined.Is this a bug or a new feature (I mean the one to allow execution on the non-primary core of multicore socs)?
If you want, there is the
__DCACE_PRESENT
symbol that might help.For the CM7 core it is defined 1 (in the file MIMXRT1175_cm7.h), while for the CM4 core (in the file MIMXRT1175_cm4.h) it is not defined at all.
Could you give me a suggestion to move forward in my work? is it enough to simply comment the inside of the functions that cause the error?
best regards
Max
Beta Was this translation helpful? Give feedback.
All reactions