Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
M2351: Override wait_ns to provide more accurate implementation #10741
At high HCLK rate, M2351 cannot provide zero-wait-state flash performance. Besides, its cache is forcibly turned off for non-secure land for internal reason. To pass
Pull request type
Dependent on #10683
At high HCLK rate, M2351 cannot provide zero-wait-state flash performance. Besides, cache is forcibly turned off for non-secure land for internal reason. We locate 'delay_loop_code' from flash to SRAM to achieve zero-wait-state performance.
I guess it isn't possible to come up with a scaling factor that lets you still use ROM and not mess with the MPU?
Another thought - should this be conditional on being non-secure (
On M2351, cache is on for secure land but off for non-secure land. The wait_ns.c file is placed under TARGET_M23_NS directory, which is scanned only in non-secure build. M2351 non-TrustZone code can be seen as secure-only code, so it doesn't need the