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.

TMS570LC4357: application can't start from a special address

Part Number: TMS570LC4357

Dear Sir

     I am trying the safety demo and want the application start  from a special address such as 0x10020 in order to cater for the boot loader, but the application can't run properly, everything follow the document and example, not so sure why, attach the code , can any body check the link.cmd and intvec.asm file?  thanks!0167.TMS570LC43x_target_sources.rar

  • Hello,

    I read your linker command file and interrupt vector table (intvec.asm), and the settings are fine for execute the code from 0x10020.

  • You can create a simple RTI lED blinky project, and test on 0x10020. This is my test code. The code is loaded to 0x10020, and executes from 0x10020. The LED3 on launchpad is blinkying.

    2480.HL_sys_intvecs.asm

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/0020.HL_5F00_sys_5F00_link.cmd

    1376.HL_sys_main.c

  • 2625.halcogen_example - sendto QJWANG.rarDear QJ Wang,

        thanks for your quick reply! it is a pity that the project I create is not working from the special address, if use default address 0x000000, the project working no any issue! I follow your suggestion but it failed to work! can you help me check it ? really appreciate for this!

  • Hi, Qj

        after I untick the option "reset the target on a program load or restart" the project working well in correct starting address when in debug mode , but when I press button s3 and s4 (nRst and nPoRRST), I think the program start from 0x000000 again (the led no more flash) , is it the correct performance or not? thanks!

  • Hello,

    Please click "Insert File" button to insert picture, or document:

  • hi, QJ see attached, I need untick the option "reset the target on a program load or restart" then program will start from my decided address, but after press the button s3 or s4 on HDK board, the program start from 0x000000 again!

  • Hi, Qj Wang

         now I put boot loader project and this project in the flash together , after reset , from tera term can see the bootloader menu come out, press 3 can go to the application address to start the application correctly

        now I have one more question...I modified your can bus boot loader ( downloaded from Ti git) and select UART option, so the latest version also cater for UART one?  ( I got quite some compile error, but I modified and compile OK), not so sure the UART one also got the same function as can's...

        now I use the modified UART boot loader to upload my application to update the firmware, the boot loader give the information "the application image has been programmed successfully" but when select the "execute application code" the application not working....

  • The project in TI git doesn't include UART bootloader. I am sorry for that.

    Please make sure that:

    1. the application start address defined in bl_config.h of bootloader is 0x10020

    2. the vector start from 0x10020 in linker.cmd of your application

    3. open CCS memory browser, check the content at 0x10000. If the application is programmed correctly, the content at this location should not be 0xFFFFFFFF.

    It is 0x5A5A5A5A.

  • hi, QJ Wang

       thanks!

    I think the whole process are correct!, the content at 0x10000 is 0x5A5A5A5A true, but when I open memory map browser , compare the memory with the downloading bin file and found some bit wrong, so not so sure where the error happened , it is not lucky I am using USB for debugging and difficult to find the error....I am thinking …..

  • Hi, QJ Wang

          finally I made the UART boot loader fully working.....previously I modified your old bl_flash .c so caused some bit writing error , now I modified your latest bl_flash.c , after that everything OK even with ECC generator...

         anyway, thank you very much, thanks for all! 

  • Hi, QJ Wang

        finally I made the boot loader fully working  with modifying your latest BL_flash.c , after that everything OK , thanks for all....

  • Hello,

    If the problem has been solved, could you please click "Resolved" to close the thread? Thanks