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.

Cannot write SCI registers with lab01 on F28069M ControlCARD

Other Parts Discussed in Thread: MOTORWARE

I am working with an F28069M ControlCARD.

When I load a legacy project, I can modify the SCI registers via code or via the debugger.

However, when I load MW proj_lab01, my code does not modify the SCI registers, nor can I modify the registers from the debugger.

This condition is true when I break on the first line of main, so the difference must be in the linker command file or the boot code.

What am I missing?

  • Here are the linker flags for the two projects:

    Can Modify SCI Regs

    Can NOT Modify SCI Regs

    -v28

    -v28

    -ml

    -ml

    -mt

    -mt

    --cla_support=cla0

     

    --float_support=fpu32

     

    --vcu_support=vcu0

     

    -O4

    -O2

    --opt_for_speed=5

     

    -g

    -g

     

    --define=FAST_ROM_V1p6

    --diag_warning=225

    --diag_warning=225

    --display_error_number

    --display_error_number

    --diag_wrap=off

     

    -z

    -z

    -m"be-motor-v2.map"

    -m"proj_lab01.map"

    --stack_size=0x300

    --stack_size=0x3B0

    --warn_sections

    --warn_sections

    -i"c:/ti/ccsv6/tools/compiler/c2000_6.2.7/lib"

    -i"c:/ti/ccsv6/tools/compiler/c2000_6.2.7/lib"

    -i"c:/ti/ccsv6/tools/compiler/c2000_6.2.7/include"

    -i"c:/ti/ccsv6/tools/compiler/c2000_6.2.7/include"

    --reread_libs

    --reread_libs

    --display_error_number

     

    --diag_wrap=off

     

     

    --diag_suppress=16002

    --xml_link_info="be-motor-v2_linkInfo.xml"

     --xml_link_info="proj_lab01_linkInfo.xml"

    --rom_model

    --rom_model

  • Hello,

    jim henderson said:
    When I load a legacy project, I can modify the SCI registers via code or via the debugger.

    Which legacy project that you used?

    jim henderson said:
    when I load MW proj_lab01, my code does not modify the SCI registers, nor can I modify the registers from the debugger.

    As I know, proj_lab01 is used to blink the led, no SCI implemented in this project. Do you modify this project to have SCI implemented ?

    Best regards,

    Maria

  • The legacy project was derived from an old version of MotorWare.

    I included the proper sci.c and sci.h files and it compiles and runs. The weird thing is that I cannot modify the registers from the Registers tab of the debugger.

  • When I change the build settings of proj_lab01 to the same build settings as the legacy project, I get several of the following linker errors:

    error #16008-D: file

    "c:/ti/ccsv6/tools/compiler/c2000_6.2.7/lib/rts2800_fpu32.lib<fd_neg.obj>"
    specifies ISA revision "C28FPU32", which is not compatible with ISA revision
    "C2700" specified in a previous file or on the command line

  • don't change the build settings.

    the compiler build is set-up correctly in MotorWare.

    I think you just need to go through the process of enabling the proper clocks, PIE, GPIO set-up etc. 

    by default not every peripheral is ON and ready to use in a project.  In the project all we are activating is what is required for the specific EVM we are using, nothing else.