C2000-GANG: Storing Serial Numbers

Part Number: C2000-GANG
Other Parts Discussed in Thread: TMS320F28069F,

Tool/software:

Hello,

I'm working on a project that is nearing completion. We are working out manufacturing details, and would like to be able to program a unique serial number to each device's micro (TMS320F28069F), at the same time it's being programmed with code. These "serial numbers" are a mix of alphabetic and numeric characters. They would consist of 10 ASCII characters each, representing date of manufacture, number off the line, and product code. We would procure this jumble of characters using a bar-code scanner.

Can the C2000-GANG retrieve 10 characters from a text file and save them, in order, at some arbitrary (but safe) memory location in the micro?

If so, how is this done?

Thanks,

Dave

  • Dave,

    The method I can think of is to pass an equivalent hex or txt file that matches the format you are using to pass in the main application to the C2000-GANG.  For example, let's say you are generating a .hex output for your main application; I would open that file up to see the format and then encode your data in the same way to a new file. 

    I would suggest looking at the .map file from your main application to determine the appropriate flash location to store this information.

    Option1: Pass this file on its own into the GANG, if this option is used you also need to make sure that the GANG is set to "program" only; as you don't want to erase the entire sector assuming you have already programmed code in the same sector(I'm also assuming any unused flash is already erased)

    Option2: Add this to the end of your existing .hex file along with your main application, for this one you can erase/program as normal since you are giving the whole image at once.

    Outside of this I don't know a different way to give some type of raw file with just ASCII and a start address, it will need to match the native formats that our tools create the output as I mentioned above.  

    Best,

    Matthew

  • Hi Matthew,

    Thanks for the prompt reply. I ran across something in the C2000-GANG user manual that initially looked promising.

    It's in section 4.1 (page 66). Here's a quote:

    Examples of using the new C2000-GANG.dll are provided and can be found in these locations (if the
    default installation directory was used):
    C:\Program Files\Texas Instruments\C2000-GANG\Examples\C_Applications_C2000_DLL
    and
    C:\Program Files\Texas Instruments\C2000-GANG\Examples\Cpp_Applications_C2000_DLL
    These examples show how to configure the C2000 Gang Programmer to the desired target device type,
    select code, and subsequently program connected devices. In addition, the examples also show how to
    write a serial number into a custom memory location. To use these examples copy the MSG-Gang.dll into
    the working directory. [Bold added by me].

    The file DLLtestDlg.cpp appears to be what I'm looking for.

    Problem is... I installed the C2000 Gang Programmer Support Software, but there is no MSG-Gang.dll anywhere.

    Maybe I have to actually buy the thing and there's some dlls that come with it?

    Thanks,

    Dave

  • Dave,

    Thanks for digging on this some more, I think the files you want are located here: C:\Program Files (x86)\Texas Instruments\C2000-GANG\Examples.  

    I think the MSG-Gang is a typo and should be C2000-Gang.  Likely some common source documentation that snuck its way in (there is a MSP GANG as well).

    There are C and C# examples of calling the dll, as well as a .h file with the definitions of the arguments, etc.

    Best,
    Matthew

  • Thanks Matthew.

    I'm glad MSG didn't stand for Monosodium Glutamate - I'm on a low-sodium diet!

    I guess the only way to figure out how to do this is to buy the programmer and try it out.

    Best Regards,

    Dave