Seeed-Studio / Seeed_Wio_WM1110_Dev_Board

Applications on WM1110 Development Board
5 stars 4 forks source link

Compilation Error in SEGGER Embedded Studio for Wio-WM1110 Dev Kit #1

Open Unaitecnalia opened 11 months ago

Unaitecnalia commented 11 months ago

Compilation Error with Wio-WM1110 Dev Kit in SEGGER Embedded Studio

Hello,

I'm encountering some compilation issues while working on a project with the Wio-WM1110 Dev Kit using SEGGER Embedded Studio v7.32. I have imported several header files, including nrf.h, nrfx.h, compiler_abstraction.h, nrf52840.h, nrf_drv_clock.h, nrf_drv_uart.h, nrf_config.h, nrfx_config.h, system_nrf52840.h, nrf_storage.h, and nrf_uart.h.

However, when I attempt to compile the project, I am getting the following error:

Building ‘wm1110_dev_kit_pca10056’ from solution ‘wm1110_dev_kit_pca10056’ in configuration ‘Debug’
  Compiling ‘app_uart_fifo.c’
  Compiling ‘nrf_fstorage_nvmc.c’
  Compiling ‘nrf_pwr_mgmt.c’
  Compiling ‘nrf_section_iter.c’
  Compiling ‘nrf_strerror.c’
  Compiling ‘nrf_drv_clock.c’
    nrf_drv_clock.h
    nrf_drv_clock.c
    #error "This code is not supposed to be compiled when neither POWER nor CLOCK is enabled."
    expected expression before ')' token
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    incompatible type for argument 1 of 'nrf_clock_task_address_get'
    expected 'const NRF_CLOCK_Type *' but argument is of type 'nrf_clock_task_t'
    too few arguments to function 'nrf_clock_task_address_get'
    declared here
    incompatible type for argument 1 of 'nrf_clock_event_address_get'
    expected 'const NRF_CLOCK_Type *' but argument is of type 'nrf_clock_event_t'
    too few arguments to function 'nrf_clock_event_address_get'
    declared here
  Compiling ‘nrf_drv_rng.c’
  Compiling ‘nrf_drv_uart.c’
    nrf_drv_uart.c
    unknown type name 'nrf_uarte_baudrate_t'
    unknown type name 'nrf_uarte_error_mask_t'
    unknown type name 'nrf_uarte_hwfc_t'
    unknown type name 'nrf_uarte_parity_t'
    unknown type name 'nrf_uarte_task_t'
    unknown type name 'nrf_uarte_event_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    unknown type name 'ret_code_t'
    Build failed
  Compiling ‘nrf_nvmc.c’
  Compiling ‘nrf_nvic.c’
  Compiling ‘nrfx_atomic.c’
  Compiling ‘nrfx_clock.c’
Build failed

The error message doesn't specify which header file is causing the issue; it simply mentions "unknown type names."

I would appreciate any help identifying the error's cause and guidance on resolving it, including suggestions on missing header files or potential solutions.

Thank you in advance for your assistance!

Jessie219-web commented 11 months ago

Hi, thanks. which project do you compile? could you take a screenshot of the explorer? please contact sensecap@seeed.cc for more details.

企业微信截图_16971694079024
unaiberis commented 11 months ago

Hi Jessie,

I am working on this project and trying to compile it.

image

Thanks

Unaitecnalia commented 11 months ago

Issue: Resolving Compilation and Linker Errors in Seeed Wio WM1110 Dev Board Project

Description

Hi Jessie, I encountered a series of errors while working on the Seeed Wio WM1110 Dev Board project, which I was able to resolve through a series of steps. I'd like to share my experiences and solutions here for reference and to help others facing similar issues.

Issue Resolution

Step 1: Incorrect Nordic SDK Path

Step 2: Library I/O Configuration

Step 3: ".text" and ".rodata" Size Errors

Step 4: "undefined reference to __RAM_segment_end__" Error

Correct Compilation