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.

Compiler/TMS320F28027: specify program entry point in CCS

Part Number: TMS320F28027

Tool/software: TI C/C++ Compiler

Hi, In CCS7 properties I can specify program entry point.

But I wonder what's the difference between this setting and .cmd file.

In CMD file I have below codes, it 

BEGIN       : origin = 0x3F7FF6, length = 0x000002

codestart           : > BEGIN       PAGE = 0

In codestartbranch.asm there is code below:

.sect "codestart"

code_start:
.if WD_DISABLE == 1
LB wd_disable ;Branch to watchdog disable code
.else
LB _c_int00 ;Branch to start of boot.asm in RTS library
.endif

I think through these code we've already assigned code_start to 0x3F7FF6, and boot to flash is boot to 0x3F7FF6, so it's the entry point. I wonder if I still have to configure entry point in CCS. What if I specify the entry point to global symbol other than code_start, what will happen?

  • Hi Zou,

    Entry point info in in CCS is used to force the PC with the value of entry point after loading the code or when clicked on restart hence skips the BOOTROM execution. If it is not defined then when you hit the RUN icon on CCS, it'll run through the BOOTROM and device will boot with emulation boot and jump to the entry point if emulation boot is setup properly.

    Hope it is clear.

    Vivek Singh

  • What I observed is not like what you said.
    I import "Example_2802xCpuTimer" project. No matter if I specify entry point to code_start or none, after loading the code or hit restart, the PC will stop at the beginning of main().
    Besides, can i say that the symbol management entry point will only influence what code behaves when I'm debugging with CCS, if it's load to flash and run alone, it will not influence anything, right?
  • Hi Zou,

     I import "Example_2802xCpuTimer" project. No matter if I specify entry point to code_start or none, after loading the code or hit restart, the PC will stop at the beginning of main().

    That is because in CCS by default settings are such that CPU stops at main() after restart or code load. You can check (or change) this setting in CCS under Tool -> Debugger Options -> Auto Run and Launch Options 

     Besides, can i say that the symbol management entry point will only influence what code behaves when I'm debugging with CCS, if it's load to flash and run alone, it will not influence anything, right?

    That is correct.

    Regards,

    Vivek Singh