The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DeAa_335316
Level 4
Level 4
First like received

while i am adding debug .h and .c file in my UART project and getting below error .

   

Build error: The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.

   

i want to use DBG_PRINTF(" "); function for that i had include debug.h and debug.c  now it showing me (Build error: undefined reference to `DBG_PRINTF') error .

0 Likes
1 Reply
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

The real error message comes earlier, what you are seeing is just the statement "there was an error". Please look for the real error message and look at what it says (but probably it just tells you that DBG_PRINTF is never declared anywhere).

0 Likes