Closed Brando753 closed 7 years ago
The HG is a Cortex-M0, which I don't have / haven't tested. I suspect the compiler / linker options are not configured correctly for the target. It might be that something in the startup script is accessing unaligned memory or using an invalid instruction and causing a hardfault, though usually you would be able to break (or interrupt) the debugger and see that IIRC.
Weird that you're not getting /anything/ from the debugger. Can you dump a line from the output of a make VERBOSE=1
so we can have a look at the command that's actually being called?
Yea no problem, I removed build, recreated cmake file and then run make VERBOSE=1
:
➜ build git:(master) ✗ make VERBOSE=1
/usr/bin/cmake -H/home/brandon/workspace/temp_tracker -B/home/brandon/workspace/temp_tracker/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/brandon/workspace/temp_tracker/build/CMakeFiles /home/brandon/workspace/temp_tracker/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/brandon/workspace/temp_tracker/build'
make -f CMakeFiles/emlib.dir/build.make CMakeFiles/emlib.dir/depend
make[2]: Entering directory '/home/brandon/workspace/temp_tracker/build'
cd /home/brandon/workspace/temp_tracker/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/brandon/workspace/temp_tracker /home/brandon/workspace/temp_tracker /home/brandon/workspace/temp_tracker/build /home/brandon/workspace/temp_tracker/build /home/brandon/workspace/temp_tracker/build/CMakeFiles/emlib.dir/DependInfo.cmake --color=
Dependee "/home/brandon/workspace/temp_tracker/build/CMakeFiles/emlib.dir/DependInfo.cmake" is newer than depender "/home/brandon/workspace/temp_tracker/build/CMakeFiles/emlib.dir/depend.internal".
Dependee "/home/brandon/workspace/temp_tracker/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/brandon/workspace/temp_tracker/build/CMakeFiles/emlib.dir/depend.internal".
Scanning dependencies of target emlib
make[2]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
make -f CMakeFiles/emlib.dir/build.make CMakeFiles/emlib.dir/build
make[2]: Entering directory '/home/brandon/workspace/temp_tracker/build'
[ 2%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_acmp.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_acmp.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_acmp.c
[ 4%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_adc.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_adc.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_adc.c
[ 7%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_aes.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_aes.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_aes.c
[ 9%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_assert.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_assert.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_assert.c
[ 11%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_burtc.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_burtc.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_burtc.c
[ 14%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_cmu.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_cmu.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_cmu.c
[ 16%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_crc.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_crc.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_crc.c
[ 19%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_cryotimer.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_cryotimer.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_cryotimer.c
[ 21%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_crypto.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_crypto.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_crypto.c
[ 23%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dac.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dac.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_dac.c
[ 26%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dbg.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dbg.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_dbg.c
[ 28%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dma.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dma.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_dma.c
[ 30%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_ebi.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_ebi.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_ebi.c
[ 33%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_emu.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_emu.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_emu.c
[ 35%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_gpio.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_gpio.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_gpio.c
[ 38%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_i2c.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_i2c.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_i2c.c
[ 40%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_idac.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_idac.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_idac.c
[ 42%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_int.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_int.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_int.c
[ 45%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_lcd.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_lcd.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_lcd.c
[ 47%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_ldma.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_ldma.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_ldma.c
[ 50%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_lesense.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_lesense.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_lesense.c
[ 52%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_letimer.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_letimer.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_letimer.c
[ 54%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_leuart.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_leuart.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_leuart.c
[ 57%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_mpu.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_mpu.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_mpu.c
[ 59%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_msc.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_msc.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_msc.c
[ 61%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_opamp.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_opamp.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_opamp.c
[ 64%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_pcnt.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_pcnt.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_pcnt.c
[ 66%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_prs.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_prs.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_prs.c
[ 69%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rmu.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rmu.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_rmu.c
[ 71%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rtc.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rtc.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_rtc.c
[ 73%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rtcc.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rtcc.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_rtcc.c
[ 76%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_system.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_system.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_system.c
[ 78%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_timer.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_timer.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_timer.c
[ 80%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_usart.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_usart.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_usart.c
[ 83%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_vcmp.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_vcmp.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_vcmp.c
[ 85%] Building C object CMakeFiles/emlib.dir/efm32-base/emlib/src/em_wdog.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/emlib.dir/efm32-base/emlib/src/em_wdog.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/emlib/src/em_wdog.c
[ 88%] Linking C static library libemlib.a
/usr/bin/cmake -P CMakeFiles/emlib.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/emlib.dir/link.txt --verbose=1
/usr/bin/arm-none-eabi-ar qc libemlib.a CMakeFiles/emlib.dir/efm32-base/emlib/src/em_acmp.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_adc.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_aes.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_assert.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_burtc.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_cmu.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_crc.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_cryotimer.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_crypto.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dac.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dbg.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_dma.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_ebi.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_emu.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_gpio.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_i2c.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_idac.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_int.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_lcd.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_ldma.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_lesense.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_letimer.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_leuart.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_mpu.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_msc.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_opamp.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_pcnt.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_prs.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rmu.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rtc.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_rtcc.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_system.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_timer.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_usart.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_vcmp.c.obj CMakeFiles/emlib.dir/efm32-base/emlib/src/em_wdog.c.obj
/usr/bin/arm-none-eabi-ranlib libemlib.a
make[2]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
[ 88%] Built target emlib
make -f CMakeFiles/device.dir/build.make CMakeFiles/device.dir/depend
make[2]: Entering directory '/home/brandon/workspace/temp_tracker/build'
cd /home/brandon/workspace/temp_tracker/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/brandon/workspace/temp_tracker /home/brandon/workspace/temp_tracker /home/brandon/workspace/temp_tracker/build /home/brandon/workspace/temp_tracker/build /home/brandon/workspace/temp_tracker/build/CMakeFiles/device.dir/DependInfo.cmake --color=
Dependee "/home/brandon/workspace/temp_tracker/build/CMakeFiles/device.dir/DependInfo.cmake" is newer than depender "/home/brandon/workspace/temp_tracker/build/CMakeFiles/device.dir/depend.internal".
Dependee "/home/brandon/workspace/temp_tracker/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/brandon/workspace/temp_tracker/build/CMakeFiles/device.dir/depend.internal".
Scanning dependencies of target device
make[2]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
make -f CMakeFiles/device.dir/build.make CMakeFiles/device.dir/build
make[2]: Entering directory '/home/brandon/workspace/temp_tracker/build'
[ 90%] Building ASM object CMakeFiles/device.dir/efm32-base/device/EFM32HG/Source/GCC/startup_efm32hg.S.obj
/usr/bin/arm-none-eabi-g++ -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -x assembler-with-cpp -DLOOP_ADDR=0x8000 -O0 -g -gdwarf-2 -o CMakeFiles/device.dir/efm32-base/device/EFM32HG/Source/GCC/startup_efm32hg.S.obj -c /home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Source/GCC/startup_efm32hg.S
[ 92%] Building C object CMakeFiles/device.dir/efm32-base/device/EFM32HG/Source/system_efm32hg.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/device.dir/efm32-base/device/EFM32HG/Source/system_efm32hg.c.obj -c /home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Source/system_efm32hg.c
[ 95%] Linking C static library libdevice.a
/usr/bin/cmake -P CMakeFiles/device.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/device.dir/link.txt --verbose=1
/usr/bin/arm-none-eabi-ar qc libdevice.a CMakeFiles/device.dir/efm32-base/device/EFM32HG/Source/GCC/startup_efm32hg.S.obj CMakeFiles/device.dir/efm32-base/device/EFM32HG/Source/system_efm32hg.c.obj
/usr/bin/arm-none-eabi-ranlib libdevice.a
make[2]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
[ 95%] Built target device
make -f CMakeFiles/temp_tracker.dir/build.make CMakeFiles/temp_tracker.dir/depend
make[2]: Entering directory '/home/brandon/workspace/temp_tracker/build'
cd /home/brandon/workspace/temp_tracker/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/brandon/workspace/temp_tracker /home/brandon/workspace/temp_tracker /home/brandon/workspace/temp_tracker/build /home/brandon/workspace/temp_tracker/build /home/brandon/workspace/temp_tracker/build/CMakeFiles/temp_tracker.dir/DependInfo.cmake --color=
Dependee "/home/brandon/workspace/temp_tracker/build/CMakeFiles/temp_tracker.dir/DependInfo.cmake" is newer than depender "/home/brandon/workspace/temp_tracker/build/CMakeFiles/temp_tracker.dir/depend.internal".
Dependee "/home/brandon/workspace/temp_tracker/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/brandon/workspace/temp_tracker/build/CMakeFiles/temp_tracker.dir/depend.internal".
Scanning dependencies of target temp_tracker
make[2]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
make -f CMakeFiles/temp_tracker.dir/build.make CMakeFiles/temp_tracker.dir/build
make[2]: Entering directory '/home/brandon/workspace/temp_tracker/build'
[ 97%] Building C object CMakeFiles/temp_tracker.dir/source/main.c.obj
/usr/bin/arm-none-eabi-gcc -DEFM32HG322F64 -I/home/brandon/workspace/temp_tracker/efm32-base/device/EFM32HG/Include -I/home/brandon/workspace/temp_tracker/efm32-base/cmsis/Include -I/home/brandon/workspace/temp_tracker/efm32-base/emlib/inc -I/home/brandon/workspace/temp_tracker/efm32-base/include -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -o CMakeFiles/temp_tracker.dir/source/main.c.obj -c /home/brandon/workspace/temp_tracker/source/main.c
[100%] Linking C executable temp_tracker
/usr/bin/cmake -E cmake_link_script CMakeFiles/temp_tracker.dir/link.txt --verbose=1
/usr/bin/arm-none-eabi-gcc -std=gnu99 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd --specs=nano.specs -MMD -MP -O0 -g -gdwarf-2 -Wextra -Wall -Wno-unused-parameter -mcpu=cortex-m3 -mthumb -fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer -Xlinker -T/home/brandon/workspace/temp_tracker/build/efm32hg.ld -Wl,-Map=temp_tracker.map -Wl,--gc-sections -Wl,-v CMakeFiles/temp_tracker.dir/source/main.c.obj -o temp_tracker libdevice.a libemlib.a -lgcc -lc -lnosys -lgcc -lc -lnosys
collect2 version 5.4.1 20160919
/usr/lib/gcc/arm-none-eabi/5.4.1/../../../arm-none-eabi/bin/ld -plugin /usr/lib/gcc/arm-none-eabi/5.4.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/arm-none-eabi/5.4.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccTQx855.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lg_nano -plugin-opt=-pass-through=-lc_nano -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc_nano -X -o temp_tracker /usr/lib/gcc/arm-none-eabi/5.4.1/armv7-m/crti.o /usr/lib/gcc/arm-none-eabi/5.4.1/armv7-m/crtbegin.o /usr/lib/gcc/arm-none-eabi/5.4.1/../../../arm-none-eabi/lib/armv7-m/crt0.o -L/usr/lib/gcc/arm-none-eabi/5.4.1/armv7-m -L/usr/lib/gcc/arm-none-eabi/5.4.1/../../../arm-none-eabi/lib/armv7-m -L/usr/lib/gcc/arm-none-eabi/5.4.1 -L/usr/lib/gcc/arm-none-eabi/5.4.1/../../../arm-none-eabi/lib -T/home/brandon/workspace/temp_tracker/build/efm32hg.ld -Map=temp_tracker.map --gc-sections -v CMakeFiles/temp_tracker.dir/source/main.c.obj libdevice.a libemlib.a -lgcc -lc_nano -lnosys -lgcc -lc_nano -lnosys --start-group -lgcc -lg_nano -lc_nano --end-group --start-group -lgcc -lc_nano --end-group /usr/lib/gcc/arm-none-eabi/5.4.1/armv7-m/crtend.o /usr/lib/gcc/arm-none-eabi/5.4.1/armv7-m/crtn.o
GNU ld (2.27-9+9) 2.27
arm-none-eabi-objcopy -O binary temp_tracker temp_tracker.bin
arm-none-eabi-objcopy -O ihex temp_tracker temp_tracker.hex
arm-none-eabi-objdump -d -S temp_tracker > temp_tracker.dmp
arm-none-eabi-size temp_tracker
text data bss dec hex filename
10476 120 196 10792 2a28 temp_tracker
make[2]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
[100%] Built target temp_tracker
make[1]: Leaving directory '/home/brandon/workspace/temp_tracker/build'
/usr/bin/cmake -E cmake_progress_start /home/brandon/workspace/temp_tracker/build/CMakeFiles 0
So these are the important bits for the compile step.
-DEFM32HG322F64
-std=gnu99 -Wextra -Wall -Wno-unused-parameter
-mcpu=cortex-m3 -mthumb -mfix-cortex-m3-ldrd
-fno-builtin -ffunction-sections -fdata-sections -fomit-frame-pointer
--specs=nano.specs -MMD -MP
-O0 -g -gdwarf-2
The cpu configuration is -mcpu=cortex-m3 -mthumb -mfix-cortex-m3-ldrd
but should be (something like) -mcpu=cortex-m0 -mthumb
CPUs are identified here based on the device family name. If you add the following case to that block (then remove all build cache and re-run everything) you should see that change, and if nothing else is broken it will hopefully boot.
elseif(CPU_FAMILY_U STREQUAL "EFM32HG")
set(CPU_TYPE "m0")
set(CPU_FIX "")
See how that goes and let me know?
Yea that did it, seems to now program and flash correctly, however the debugger still wont break at anything on main when I set break points there followed by monitor reset halt
and continue
is it being optimized out? I applied a camke cmake -DCMAKE_CXX_FLAGS_DEBUG=-g3 -DCMAKE_BUILD_TYPE=Debug ..
but it made no difference...
Worth noting that I can set a break point and successfully break at the SysTick Handler and the Delay Function, but I cannot break before the Delay function, which is why I was thinking it might be being optimized out. I can also get a back trace so I can interact with the debugger, just not break anywhere in main.
So the led flashes, but you don't get hit the breakpoint at main?
You can see the debug options are being passed through in the paste above (-O0 -g -gdwarf-2
is no-optimisation, include debug, and use dwarf2 debug symbols which should be all).
IIRC there is some weirdness with the ways that some debuggers handle monitor reset halt
, but I can't remember what the solution is :-/
You might be able to jump to Reset_Handler
to fake a restart / see if it hits main there.
yea that seemed to do it, interesting to note, never had to fake a restart like that before, but with that it seems to work. Should I put a pull request for the one line fix or are you going to push it through?
Thanks for the PR!
I have had it with some debug adaptors / drivers / devices and not others. One day I will have to follow it up / solve it properly.
Hey thanks for being so helpful with all of this! Once I get some time to follow up I will hope to get openocd working and I can see if the issue follows through with openocd or not. Once I finish up this project, I will start my next one which uses the EFR32 family.
I seem to be having some problems getting the sample blinky program to run on this board I created a new repo and added efm32-base as the submodule, copied the CMakeList file and updated it to use the EFM32HG322F64 device and updated it to point to the new efm32-base location. I copied over the source directory and only modified the macros to look like:
which should be the EFM32HG kits correct port and pin for one of the two led's. I then created a build directory ran
cmake ..
followed bymake
andmake flash
(using the Jlink configuration) and it uploads to the board; the problem is however is the board will not blink the light as expected. Cmake:make:
and make flash:
So the first thing I think to do is alright spin up the debugger so I create two shells, one I run
cmake debug-server
and the other I runmake debug
in GDB I runmonitor reset halt
followed bybreak main
followed bycontinue
however it never breaks.Output of
make debug-server
:I also tried deleting build and recreating it with both the commands
cmake -DCMAKE_BUILD_TYPE=Debug ..
andcmake -DCMAKE_CXX_FLAGS_DEBUG=-g3 -DCMAKE_BUILD_TYPE=Debug ..
followed by rebuilding and reflashing however that made no difference. Any ideas or would be great cause I am not sure where to go from here...