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.

Question aboutC6727 in PADK: boot from prallel flash

Other Parts Discussed in Thread: SPRC203

Hello:

I used a PADK EVM.When I wanted to try the bootloader from prallel flash,I had a trouble in process.I followed the operation in PDF of PADK. In D:\Lyrtech\PADK\bootload\flash\makerom,there are a makerom.exe.The pdf requires proceed as
follows.
1.  Copy the .out file of a working application to the Makerom folder.
2.  Run MakeRom.exe Updater.out <application_name> in a command shell.
   This creates a file named FLASH_<application_name>.out.
3.  Use Code Composer Studio to upload and run this file on the PADK.
4.  Make sure that the PADK is set to boot from the flash memory.
5.  Reset the PADK to run the programmed application.

So I made a FLASH_SwitchesAndLeds.out with the provided example that named SwitchesAndLeds.
But after these operations,when I run the  FLASH_SwitchesAndLeds.out,the CCS4 told me "the main() in the Updater.c were Unfound".And the PADK doesn't provide the soucecodes.So the bootloader didn't success.

Could you give me some help?Thanks very much!

  • Is this version of  PADK supported for CCS4? Can you use an exisiting example/application (with the package) to confirm?

    Thanks,
    Gaurav

  • Adding some more feedback to Gaurav's suggestions...

    Can you try flashing using the steps provided in the C672x bootloader appnote, http://focus.ti.com/lit/an/spraa69d/spraa69d.pdf?  It looks like the tools you are using are different than the ones provided in the TI bootloader appnote.  

    In the bootloader zip file, there are pre-built flash images that should work with PADK, with one example being a simple LED blinking program. 

    --Christina

  • I don't know whether this version of  PADK is supported for CCS4.These examples are built in CCS3.3,I used "Project->Import Legacy CCSv3.3Project" in CCS4 to Migrate them to CCSv4.But all others example are successfully. My English is very poor,I don't know whether I express clearly。Thanks very much for you help!

  • It's my second trouble.

    I had used the flashburn.prj of padk_examples in "sprc203.zip" as your advice.It told me "Error writing to FLASH, error code = -4".(in PADK_FLASH.h,#define FLASH_ERROR_NOMEMORY   (-4)). However I write a simple flashburn programme by myself that can burn flash successfully.So I don't know what's happened.My English is very poor,I don't know whether I express clearly。Thanks very much for you help!

  • When I try to compile the SwitchesAndLeds example project I get the following linker error:

    undefined symbol: int00

    error: unresolved symbols remain
    warning: entry-point symbol "int00" undefined
    warning: no suitable entry-point found; setting to 0

    So I changed the linker command file 

    line

    -e int00

    to

    -e  _c_int00

    The error  disappeared,it's successful. Is the bootloader's error related to this?

  • eric said:
    The error  disappeared,it's successful.

    Glad that you got it to work! 

    eric said:
    Is the bootloader's error related to this?

    This could potentially be the reason why it didn't work.  It couldn't find your entrypoint, so it defaulted to 0.  When it does this, it can't find your main function.

    --Christina

  • In the .map file,I see "ENTRY POINT SYMBOL: "_c_int00"  address: 10004ee0",it's not 0.

    But in the CSL of  C6727,are there any definition about int00? If I didn't change the cmd file,it appeared a error,the example was not successful.

    I think the bootloader's failure is related to the flashburn's error.I had used the flashburn.prj of padk_examples in "sprc203.zip" as your advice.It told me "Error writing to FLASH, error code = -4".(in PADK_FLASH.h,#define FLASH_ERROR_NOMEMORY   (-4)). However I write a simple flashburn programme by myself that can burn flash successfully.So I don't know what's happened.

  • eric said:

    In the .map file,I see "ENTRY POINT SYMBOL: "_c_int00"  address: 10004ee0",it's not 0.

    When you had "-e int00" in your linker command file, I assume that the .map file will say "ENTRY POINT SYMBOL: "int00" address: 0" since it couldn't find the entrypoint.  Since you correct the linker command file, you should have a valid starting address.

    eric said:

    But in the CSL of  C6727,are there any definition about int00? If I didn't change the cmd file,it appeared a error,the example was not successful.

    I believe there are two potential places that could define the entrypoint.  One is the linker command file, and another is the build options (under the Linker tab).  The two entrypoint values should match.  By default if you do not specify a value in the build options, I think it will use the value _c_int00. 

    --Christina

  • I had runned the examples successfully which cmd file wasn't corrected under CCS3.3.But in CCS4 it still failed.

    Now,I used the "TISecondaryBootPADK.c","SwitchesAndLedscfg.c"of the sprc203.zip and the  flashburn.prj made by myself  to bootload the PADK.Fortunately it successed.

    However the flashburn.prj of  the sprc203.zip  still appeared error which was mentioned to the above issue.And I converted the .out file to .ais file as the mention in "Using the TMS320C672x Bootloader.pdf",the bootloader failed.When I converted the .out file to .dat with Techshine Company's C6727BootLoaderTool.exe,the bootloader is successful.I don't know why.

    PS:If I will use the C6727 board except PADK,do I just need to change the "unsigned TISecondaryBoot_fetchAis(void)" in TISecondaryBoot.c?