Zephyr plugin hello world example CONFIG_BOARD could not be resolved
Hello, When I try to create the project I get the following error for the hello world example.
Symbol 'CONFIG_BOARD' could not be resolved
When I build the project I get
Errors occurred during the build.
Errors running builder 'Zephyr Application Builder' on project 'test'.
java.lang.NullPointerException
How to fix it? Code is as below
#include <zephyr.h>
#include <sys/printk.h>
void main(void)
{
printk("Hello World! %s\n", CONFIG_BOARD);
}
This same occurred to me on fresh Zephyr and Eclipse installation under Ubuntu 20.04. Installation is as follows:
- zephyr SDK 0.13.0, installed to /opt/
- Eclipse IDE for EMbeddec C/C++ Developers, version 2021-06 (4.20.0), Build id: 20210612-2011
- Zephyr Project Development Support version 0.2.99.202009250453
- Zephyr Project Development Support Developer Resources version 0.2.99.202009250453
- board frdm_k64f
The project was created according to instructions here: https://github.com/zephyrproject-rtos/eclipse-plugin
Error message from Eclipse: Symbol 'CONFIG_BOARD' could not be resolved, main.c, path /hello_world/src, line 6, Semantic error
This same occurred to me on fresh Zephyr and Eclipse installation under Windows 10 . Installation is as follows:https://docs.zephyrproject.org/latest/develop/getting_started/index.html
The project was created according to instructions here: https://github.com/zephyrproject-rtos/eclipse-plugin
Error message from Eclipse: Symbol 'CONFIG_BOARD' could not be resolved, main.c, path /hello_world/src, line 6, Semantic error
Hey is anyone found any solution about this issue ?