starting out in uVision 4.73 and getting error :
compiling main.c... main.c(3): error: #5: cannot open source input file "inc/hw_memmap.h": No such file or directory #include "inc/hw_memmap.h" main.c: 0 warnings, 1 error ".\again.axf" - 1 Error(s), 0 Warning(s). Target not created
I right clicked on the group...went into manage project items...clicked the group...clicked add files...found inc/hw_memmap.h and added it. It shows up in source group 1.
was that the wrong way or am I just missing something? This for a Launchpad Tiva TM4C123G
thanks, Chris
You should not add .h files to a project, you need to correctly define include paths in the project options.
how do i do that? the only place i found "include path" was in the c/cc+ tab in options. " ..;..\..\..\.. " was in there. i know it's something simple. u just dont know what all those ..;.../ stand for. thanks, chris
by u, i mean i :/
Standard MS relative path notation...
DOT means this directory DOT DOT means the parent directory
You need to add to the list where the INC directory is relative to the directory the project is in. The line has a browsing tool to allow additional directories to be added.
So if you have \FOO\SRC and \FOO\INC you might want paths that visit \FOO, \FOO\SRC and \FOO\INC
Thanks for the help. i got the error fixed. but now another showed up.
Build target 'Target 1' compiling main.c... linking... .\TryAgain.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_tm4c123.o). Not enough information to list image symbols. Finished: 1 information, 0 warning and 1 error messages. ".\TryAgain.axf" - 1 Error(s), 0 Warning(s). Target not created
So you forgot a library. Then add it.
Hi there,
Just go to dir\Arm\startup\IT\TM4c123 and add the file system_TM4c.c to your project.