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

Cannot enable UART #23

Open
sunnychon opened this issue Jan 4, 2025 · 0 comments
Open

Cannot enable UART #23

sunnychon opened this issue Jan 4, 2025 · 0 comments

Comments

@sunnychon
Copy link

When I try to enable the UART console(#define CONSOLE_UART 1)
it throws this error

┌──(sunny㉿IdeaPadPro5i)-[~/pico-rv32ima]
└─$ make
[ 0%] Built target bs2_default
[ 1%] Built target bs2_default_library
[ 21%] Built target ps2
[ 22%] Built target slower_boot2
[ 23%] Built target slower_boot2_library
[ 23%] Building C object pico-rv32ima/petitfatfs/CMakeFiles/petitfatfs.dir/mmcbbp.c.o
In file included from /home/sunny/pico-sdk/src/common/pico_stdlib_headers/include/pico/stdlib.h:14,
from /home/sunny/pico-rv32ima/pico-rv32ima/petitfatfs/mmcbbp.c:22:
/home/sunny/pico-sdk/src/rp2_common/hardware_uart/include/hardware/uart.h: In function 'uart_get_instance':
/home/sunny/pico-rv32ima/pico-rv32ima/petitfatfs/../rv32_config.h:38:23: error: called object is not a function or function pointer
38 | #define UART_INSTANCE uart0
| ^~~~~
make[2]: *** [pico-rv32ima/petitfatfs/CMakeFiles/petitfatfs.dir/build.make:90: pico-rv32ima/petitfatfs/CMakeFiles/petitfatfs.dir/mmcbbp.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2009: pico-rv32ima/petitfatfs/CMakeFiles/petitfatfs.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

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