This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: Issue on uboot compilation with CCSV9

Tool/software: Code Composer Studio

Hi,

I followed the guide provided by TI for uboot compilation in CCS

I have installed CCS V9

Facing following issue upon compilation

CC      lib/asm-offsets.s
cc1: error: bad value (‘armv5’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2
Kbuild:43: recipe for target 'lib/asm-offsets.s' failed
Makefile:1276: recipe for target 'prepare0' failed

Note:

I have exported the environmental variables too,like ARCH ,CC,CROSS_COMPILER,etc

Can you please help me out for u-boot compilation?am I missing out something ?can I know is it possible to compile u-boot in CCS v9?

  • Hi,

    Which guide are you following? The reason is that the compiler you are using does not seem to be the cross compiler but instead the native x86-64 compiler on your host. Also, for which processor do you intend to build this? 

    Also, the u-boot (as well as the Linux kernel) are not usually built from inside an IDE such as the CCS/Eclipse. They have their own extensive makefiles and menu configurators that do all the setup and build job. 

    Regards,

    Rafael

  • Hi ,

    Sorry for the delayed reply.Guess I have confused with break points applying on code for debugging.But debugging u-boot/kernel code by applying break points is possible?

  • Hi,

    Please apologize for the delay; it is possible to debug u-boot and kernel from inside CCS and using breakpoints. However, depending on the type of debugging you are using (either stop or run mode) you will have to use a different type of breakpoint (CDT or CCS). 

    The training video below helps with some fundamentals of Linux debugging. 

    https://www.youtube.com/watch?v=JpXJ-F5QqOo 

    Hope this helps,

    Rafael