ryankurte / efm32-base

Base project for Silicon Labs EFM32 microcontrollers
89 stars 33 forks source link

Fails for devices other then EFM32GG990F1024 #1

Closed Brando753 closed 9 years ago

Brando753 commented 9 years ago

I tried using this to work with a EFM32G890F128 but for all other chips it will simply say

efm32-base/device/EFM32G/Source/system_efm32g.c:34:23: fatal error: em_device.h: No such file or directory
 #include "em_device.h"
                       ^
compilation terminated.

This will happen for all chips besides the EFM32GG990F1024, The instructions say you just have to change the device name, is this a bug or is there a missing step? Seems like the probelm is in the device/device.cmake on how it includes other family header files.

Brando753 commented 9 years ago

Well at least its something simple, the EFM32GG directories include uses a lower case 'i' while all the others use a capitol 'I' adding another "include_directories(${CMAKE_CURRENT_LIST_DIR}/${CPU_FAMILY_U}/Include)" into the device.cmake file will let it build for all chips.

ryankurte commented 9 years ago

Oops. Looks like it should be devices/EFM32GG/Include, and entry in the devices/device.cmake file should be capitalised. Never picked it up in case insensitive OSX. Sorry that took a while to look at, should be fixed now.