-
Notifications
You must be signed in to change notification settings - Fork 7.5k
drivers: misc: ethos_u: support nuvoton numaker m55m1x #88941
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
base: main
Are you sure you want to change the base?
Conversation
/* Address undefined _fini for the exit call | ||
* | ||
* With gcc command-line options -nostartfiles or -nostdlib, the gcc | ||
* built-in object files crti.o/crtn.o which implement _init/_fini | ||
* won't get linked in automatically and will cause undefined reference | ||
* to _fini error when exit is invoked. | ||
* | ||
* This is fixed by providing one dummey _fini to let linker pass. | ||
*/ | ||
__weak void _fini(void) | ||
{ | ||
} |
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.
Hi @ccli8, could you share your output log when running the |
With gcc command-line options -nostartfiles or -nostdlib, the gcc built-in object files crti.o/crtn.o which implement _init/_fini won't get linked in automatically and will cause undefined reference to _fini error when exit is invoked. This is fixed by providing one dummey _fini to let linker pass. Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
Add header file stdint.h so that fixed width integer type e.g. uint8_t can use without compile error. Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
It is unsafe to pass raw buffer as thread stack. Instead, use canonical K_THREAD_STACK_DEFINE or friends to define thread stack. Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
This addes frontend of arm ethos-u core driver for nuvoton numaker m55m1x. Special notes include: 1. Leaving application overriding dcache flush/invalidate weak functions for cacheable NPU buffer 2. Configuring macs_per_cc to 256 in arm ethos-u core driver to match m55m1x ethos-u RTL config Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
This supports nuvoton numaker_m55m1 board, including: 1. Choosing NPU buffer as cacheable or non-cacheable, dependent on CONFIG_NOCACHE_MEMORY. When cachealbe is chosen, data cache flush/ invalidate weak functions (ethos-u core driver) are also overridden. 2. Add Vela-compiled model which matches this targets's NPU, Ethos-U55 with 256 macs_per_cc Besides, re-organize for new board support, including: 1. Refactor Vela-compiled models which must match target Ethos-U RTL config 2. Add non-Vela-compiled model for evaluation of no-Ethos-U platform Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
|
Log of
|
This supports Nuvoton's M55M1 Ethos-U NPU. Besides, the
tflm_ethosu
sample is refined for this target's verification, including:_fini
symbol on invokingexit()
for newlib libcstdint.h
for e.g.uint8_t
typeK_THREAD_STACK_DEFINE
or friends instead of raw bufferNOTE: This PR covers #88218.