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.

unable to load program into memory sections

Hi,

         Today we got the Spectrum digital Davinci TMS3206467 EVM.I connected the board through the JTAG EMULATOR.Its connecting fine with both ARM & DSP.But when i ran some sample code like printing "Hello",it is showing unable to load the program into the memory sections.Iam not using any cmd file for this. Please send If you have any cmd file for Davinci platform.

Iam waiting for your reply.

Please help.....

With regards

bharath

 

  • Hi Bharath,

    You can get the cmd file from some of the sample codes for DM6467 EVM from Spectrum Digital website.

    This link might help.

    http://support.spectrumdigital.com/boards/evmdm6467/revf/

    Regards,

    Sid

  • Hi Sid,

                Thank you ver much.

    This problem "unable to load the program into memory sections" is because of .cmd file or something else.

    Please calrify it.

    With Regards

    Bharath

     

     

  • Hi Bharath,

    The error could be as a result of GEL file error or .cmd file (linker file) error.

    Have you included GEL file for DM6467? This GEL file is necessary to define the default state of DM6467 in reset state.

    Also, post your cmd file here, it may help to detect any errors in ampping.

    Regards,

    Sid

  • Hi sid,

                 Thanks a lot.

                  I created new bios project. That is working fine on the EVM 6467 with JTAG.

    when i use the printf("hello\n");iam not able to see any messages on the stdout window.It is always showing the GEL outut window. After that i tried to write some values into the file using fprintf function,but data is not written into the file.Please let me know if i need to add some libraries.

    With regards

    Bharath

     

     

  • The printf functions need a dynamic heap to operate correctly, and this probably includes the fprintf function, too. The default DSP/BIOS configuration does not make allowance for this, so you need to do the following in your .tcf file from the BIOS GUI:

    1. Click + by System, right-click Properties on MEM, uncheck No Dynamic Memory Heaps. You will get a box telling you to reconfigure heaps. Click OK.
    2. Click + by MEM, right-click Properties on one of your memories where you want the system heap to be, like IRAM. Click "create a heap in this memory" and pick a size, at least 0x400 but bigger is better. Click OK.
    3. Right-click Properties on MEM again, use both drop-down boxes to select the memory from #2 for Segment for DSP/BIOS Objects and for Segment for malloc()/free(). Click OK.
    4. Be sure you have #include <stdio.h> in your source file.
    5. Rebuild, load, set a breakpoint on the closing brace at the end of main() and run. stdout should show up and have your message printed. The breakpoint is not always required, but it seems to help the first time; could just be something odd I did, but it might help.
  • Thanks Randy,

    It worked by allocating the dynamic Heap Memory

    Regards,

    Bharath