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.

From launchpad XL TMS320F28027F, to TMS320F28026 MCU using a C2000 gang programmer

Other Parts Discussed in Thread: TMS320F28026, TMS320F28027F, C2000-GANG

Hello everybody!

Everything is in the title. I would like to use a launchpad project with ccs (launchpad XL TMS320F28027F), for a TMS320F28026 MCU.

It should not be a big deal in theory, because both are quite similare (the 28026 has just a smaller flash memory). I'm using the exemple file from control suite (Example_F2802xLaunchPadDemo.c).

I can now compile it for both MCU, but when I try to load it in the 28026, using the c2000 gang programmer software, a lot of errors like "out of flash space Addr 00xx" apprear, and I don't know how to solve it... I tried to reduce the size of the program to the minimum, but it doesn't help...

Thanks in advance for your advices.

C.

  • Hello,

    Our group's C2000 Gang Programmer expert is currently on vacation. I will ask an Elprotonic employee to take a look at this post.

    Thanks,
    Elizabeth
  • Hi,

    If you are using code size that is smaller that the MCU flash space, please check if the location of the code space is not out of the flash space location. Also make sure that the hex file used with C2000-GANG is correctly converted from the out file. The hex file should be 16 bits wide and data location specified with absolute address, not relative address. If you wish, you can send me part of the hex code you have (converted from the *.out file) - ~5-10 first line of code and ~5-10 last lines of the code in the hex file, then we can checked if the hex code file looks OK.

    Best regards,

    Gregory Czajkowski
    Elprotronic Inc.

  • Hello Gregory, thanks for your fast reply.

    Here is my .hex file:

    :04000000004082A892
    :20005000FFFF890000000001FFFE8902000000000000FFFE8904000000000000FFFE890868
    :14006000000082C20000FFFE890A000082C200000000000074
    :20006A00000000000000000000000000000000000000000000000000000000000000000076
    :20007A00000000000000000000000000000000000000000000000000000000000000000066
    :20008A00000000000000000000000000000000000000000000000000000000000000000056
    :20009A00000000000000000000000000000000000000000000000000000000000000000046
    :2000AA00000000000000000000000000000000000000000000000000000000000000000036
    :2000BA00000000000000000000000000000000000000000000000000000000000000000026
    :2000CA00000000000000000000000000000000000000000000000000000000000000000016
    :0C00DA000000000000000000000000001A
    :1000E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF20
    :0800E800190156C3FFFF0006D9
    :208000008F006F80026A764082C3761F0224A8069A1C9B00764081C7761F02249A1D9B01B5
    :208010008A06764081C7761F02249A1C9B038A06764081FB761F02249A1C9B018A0676409E
    :208020008104761F02249A1D9B018A0676408104761F02249A009B008A0676408104761F92
    :2080300002249A019B008A0676408104761F02249A029B008A0676408104761F02249A03F4
    :208040009B008A0676408104761F02249A009B018A0676408193761F02249A019B018A06ED
    :2080500076408193761F02249A029B018A0676408193761F02249A039B018A0676408193AB
    :20806000761F02249A0C9B008A0676408104761F02249A0C9B008A0676408193761F022428
    :208070009A0C9B018A06764081C7761F02249A008A0676408295761F02249A018A067640D2
    :208080008295761F02249A028A0676408295761F02249A038A067640829528A98D069B5B06
    :20809000764000E8761F02249A008A0676408282761F02249A018A0676408282761F022438
    :2080A0009A028A0676408282761F02249A038A067640828228A98D069B5B764000E86FC60B
    :2080B00028AD0400FF69561F5616561A2940761F00002902761B764082CA520061427622D5
    :2080C00028A9005028A800000901611B76C0005029046F0F9B0024A9DF016C04290424A847
    :2080D000DF011EA6F7A1248606A781A109011EA724A96303FF5C3B0459A9DF010009FFEC69
    :2080E00028A9FFFF28A8FFFF090161058F3FFFFF7640814D761A764082CC28A9FFFF28A8F0
    :2080F000FFFF0901610E76FFFFFF6F06DF01C3BD1EA73E67C5BE24A9DF0124A8FF5860F79D
    :20810000764082697640822827A876225210643152206418560301A99CC02DA90203563B47
    :208110001EA63B0185AB563BFF5A83A4DD1606A6FF55C0C5C1CDDC1692AB98C492AA98CCDD
    :208120006F2A560301A99CE02DA90203563B1EA63B0185AB563BFF5A83A4DD0806A6FF5595
    :20813000C0C5C1CDDC0892AB98C492AA98CC6F13560301A92DA90203563B1EA63B0185ABDE
    :20814000563BFF5A06A6FF55C0F4C1FC92AB98F492AA98FC761AFF690006B2BDAABDFE0455
    :2081500086A488CAD1006F392901560303A107A209028AA992C461039A026F029A00B600F5
    :2081600093CC56B001A794A7611F520161155202610B5203602106E41E4206F41E4406D458
    :208170007640824F6F1806E41E4206F41E4406D47640824F6F1006E41E4206F41E4406D4DB
    :208180007640824F6F0806E41E4206F41E4406D47640824F88CAD90192A654A166C6FE84D3
    :2081900086BE8BBE000688A880A976225220641F9CE028AB00012BAA83A42DA9A9A9DD1AEB
    :2081A000563BFF55FF5A92ABC0C592AAC0CD3B0185A6DC1AFF5A92A79CE02DA9A9A9563BD2
    :2081B000FF5A92AB98C492AA98CC6F0F83A402012DA7DD0A563BFF55C0C5C1CD3B01DC0AA0
    :2081C00085A6563B98C499CC761AFF69000688A880A976225220641F9CE028AB00012BAA19
    :2081D00083A42DA9A9A9DD1C563BFF55FF5A92ABC0C592AAC0CD3B0185A6DC1CFF5A92A78D
    :2081E0009CE02DA9A9A9563BFF5A92AB98C492AA98CC6F0F83A402012DA7DD0C563BFF556E
    :2081F000C0C5C1CD3B01DC0C85A6563B98C499CC761AFF6900062DA976225210641C5220FB
    :20820000640F522662213B0185A81EA6D01292AC9CE1FF802DA906A6563B1E946F153B0122
    :2082100085A81EA692AC9CF1FF802DA906A6563B1EE46F0A3B0185A81EA6560301AC2DA97C
    :2082200006A6563B1ED4761AFF69000677006F00B2BD761F022459A99200610D28ABFFFF2E
    :2082300028AAFFFF28A9FFFF28A8FFFF0FAB6103767FFFFF761F0224C5083E67761F0224C8
    :20824000C50406A7610392A13E67761F0224060261031EA73E67764082268BBE00061EA769
    :208250008A440646520061049CFFF7A924845300611027462BAA565700A7A9A72484DF0128
    :2082600028A9FFFEF7A9248408AA0001FFD0EDF6000628ABFFFF28AAFFFF28A9FFFF28A83D
    :20827000FFFF0FAB6004BE00D4006F098AA928A9FFFF88C428A8FFFF09028AA992A6764080
    :20828000800000062DA9762252206409BE019CE02DA9D04A06A6563B1E946F050201D04268
    :20829000563B1E94761AFF6900062DA9762252206409BE019CE02DA9D04C06A6563B1E9424
    :2082A0006F050201D044563B1E94761AFF690006561F7622B9C028290068761A004080B0B3
    :2082B00096BD7612000676083B3092BE000696BD76000006761F0224A80A0006761F022491
    :1A82C000A808000600061EA6026A0FA66903D400000600069A010006000610
    :00000001FF

    Can you give me some detail about how to know use absolut adress?

    Thanks

    C.
  • Hi,

    Your hex file does not have the absolute address in the first line. Your hex files started from data contents and it assumed that the start address is 0x0000 if the extended address is not specified in the first line.

    Your first line should specify extended linear address (04 record type) offset e.g. 0x003D0000 

    :02000004003DBD     ->   04 record type (Extended Linear Address)   -> 0x003D  (address offset - in 64k pages -> 0x003D0000)

    or

    :02000002xxxxxxxx     ->   02 record type (Extended Segment Address) then address offset and CS

    What tools did you use for converting the *.out file to hex file?

    Best regards,

    Gregory

  • Hello Gregory, sorry for the late answer

    I don't know, I just compile and create the .hex file using CCS... I enabled the .hex file creation in the properties of the project, that's all. But there are some files that I had to include to make it work for the 28026 instead of the 28027...

    Do you know where does it comes from? Or can I modify the .hex file manually?

    Thanks,
    C.