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.

TMS320F28027: How to know How many RAM and FLASH TMS320F28027 is take for our code?

Part Number: TMS320F28027

Hi every one.

Good day :)

1.How to know How many RAM and FLASH TMS320F28027 is take for our code? 

2.I made my own board (NOT STICK CARD) .I am using TMDSHVMTRISPIN (HVkit) which has Isolated JTAG(I made a daughter board  for DIM100pin socket to get Isolated JTAG ) and I made my flat cable as short as possible,in addition I changed the speed of Jtag to 100khz to be able to work in noisy condition. but it will disconnect so easy.. as soon as I run my motor .:( 

I got confuse ... because it is  Isolated JTAG. it must not get any noise from USB to Microcontroller

please help me to solve my problem thanks .

thanks for attention 

Dave.

  • Dave:
    I can answer question 1, but I will leave the 2nd question to the JTAG experts...

    In the \Debug (or \Release) directory, you should find a file associated with your project, with a .map suffix. In this file, you will find out how much flash and RAM is being used by the project.

    Hopefully, that helps.
  • Hi Dave,

    Dave Hunson said:
    .How to know How many RAM and FLASH TMS320F28027 is take for our code? 

    CCS also has a graphical tool called "Memory Allocation". Go to Window -> Show View -> Memory Allocation

    Dave Hunson said:
    2.I made my own board (NOT STICK CARD) .I am using TMDSHVMTRISPIN (HVkit) which has Isolated JTAG(I made a daughter board  for DIM100pin socket to get Isolated JTAG ) and I made my flat cable as short as possible,in addition I changed the speed of Jtag to 100khz to be able to work in noisy condition. but it will disconnect so easy.. as soon as I run my motor .:( 

    Motor based applications do face this so called "frequent disconnection" issue. I would recommend to use an isolated USB adapter that would isolate your laptops/PCs USB port. You can also wind a ferrite core around the USB cable or use a ferrite USB cable.

    Dave Hunson said:
    I got confuse ... because it is  Isolated JTAG. it must not get any noise from USB to Microcontroller

    It seems like the isolation is not enough then.

    Regards,

    Gautam

  • Dave,

    Please check out this E2E thread concerning emualtion stability when running the motor; there are some best practices for the earth ground/shielding and so forth.

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/317868/1106149 

  • dear my friend thanks for recommendation

    but I could not figure out about this charts would you please explain how to know total used RAM & FLASH ?

  • Thank a lot dear MatthewPate that was useful :)
    Dave.
  • Thanks dear Todd Anderson
    the only thing which I found related to FLASH was this bout I could not quite understand How to extract RAM & FLASH used from that .
    Would you please explain it more?




    MEMORY CONFIGURATION

    name origin length used unused attr fill
    ---------------------- -------- --------- -------- -------- ---- --------
    PAGE 0:
    P_RAML0 00008000 00000800 0000064e 000001b2 RWIX
    OTP 003d7800 00000400 00000000 00000400 RWIX
    FLASHB_D 003f0000 00006000 00004350 00001cb0 RWIX
    CSM_RSVD 003f7f80 00000076 00000000 00000076 RWIX
    BEGIN 003f7ff6 00000002 00000002 00000000 RWIX
    CSM_PWL_P0 003f7ff8 00000008 00000000 00000008 RWIX
    IQTABLES 003fe000 00000b50 00000000 00000b50 RWIX
    IQTABLES2 003feb50 0000008c 00000000 0000008c RWIX
    IQTABLES3 003febdc 000000aa 00000000 000000aa RWIX
    ROM 003ff27c 00000d44 00000000 00000d44 RWIX
    RESET 003fffc0 00000002 00000000 00000002 RWIX
    VECTORS 003fffc2 0000003e 00000000 0000003e RWIX

    PAGE 1:
    RAMM0_M1 00000000 00000600 000004e6 0000011a RWIX
    D_RAML0 00008800 00000800 000000b1 0000074f RWIX
    D_FLASHA 003f6000 00001f80 000001e0 00001da0 RWIX


    Dave.
  • dear my friend.

    my USB cable has ferrite core itself .in addition i could not find isolated USB adapter anywhere even in google !

    Dave
  • length shows the amount in that entity, in you case 6000 is hex value translates to 24576, and you are using x4350, which is 17232 - roughly 70% full. A lot of the items you have NO control over, like IQTABLES.

    If you have a lot of features to add, you may want to bump up to a higher capacity part...
  • Dave,
    Wanted to reach out to see if this issue can be closed or if you have more feedback for myself or the others on the thread.

    Best regards,
    Matthew
  • dear Gautam Iyer,
    I would be happy if you explain it more about memory Allocation chart
  • Dave,

    To your questions on how to use the chart, this is a view showing how much of the defined memory you have in your .cmd is used.  It is important to note that only the memory that you have defined in the .cmd will show its allocation; which is not neccesarrily the same as the total memory on the device.

    For instance, your chart is showing that PRAML0 is 16% used of a total size of 2048 words.  You then have the other half of L0 dedicated to data space, or DRAML0 which is only 1% full of the 2048 words it is allocated.

    You could use this to re-allocate more of L0 to Program RAM if needed.

    Another example is that your program space flash (sectors B/C/D) is 88% utilized, while you data space flash (sector A) is only 1% allocated.  Now, this is just a load time estimate and doesn't take into account any run time flash writes you might do; but you could also re-allocate some of sector A to program space.  

    Let me know if this makes sense.