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

Compile failed using project created in Nuclei Studio #1

Open
fanghuaqi opened this issue May 31, 2023 · 0 comments
Open

Compile failed using project created in Nuclei Studio #1

fanghuaqi opened this issue May 31, 2023 · 0 comments

Comments

@fanghuaqi
Copy link
Member

When you create a tflm project using Nuclei Studio, you may meet with following compiling issue

image

d:/software/nucleistudio/toolchain/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe: tflm_microspeech.elf section `.text' will not fit in region `ilm'
d:/software/nucleistudio/toolchain/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe: tflm_microspeech.elf section `.bss' will not fit in region `ram'
d:/software/nucleistudio/toolchain/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe: section .stack VMA [000000009000f800,000000009000ffff] overlaps section .bss VMA [000000009000efd8,0000000090012913]
d:/software/nucleistudio/toolchain/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe: region `ilm' overflowed by 75848 bytes
d:/software/nucleistudio/toolchain/gcc/bin/../lib/gcc/riscv-nuclei-elf/10.2.0/../../../../riscv-nuclei-elf/bin/ld.exe: region `ram' overflowed by 0 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:84: tflm_microspeech.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

You need to change the linker script file from 64K to 512K, which is documented.

image

Then you will be able to compile it

image

Thanks

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

No branches or pull requests

1 participant