eclipse-plugin icon indicating copy to clipboard operation
eclipse-plugin copied to clipboard

Zephyr plugin hello world example CONFIG_BOARD could not be resolved

Open hasikp1 opened this issue 4 years ago • 3 comments

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);
}

hasikp1 avatar Jul 01 '21 06:07 hasikp1

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

ktuulos avatar Aug 25 '21 06:08 ktuulos

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

xuanvuong1702 avatar Apr 03 '23 14:04 xuanvuong1702

Hey is anyone found any solution about this issue ?

ElMehdiHD avatar Jun 29 '23 22:06 ElMehdiHD