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 regarding copy from FLASH (spraau8) using DSP/BIOS

I have an ezdsp28335 with CCSv4.1, XDC 3.16, and DSP/BIOS 6.20 and I'm preparing my project for standalone operation (which won't be on the ezdsp board).

The spraau8 application note implies that the method of copying the .text section during the codestart execution may not work when using the DSP/BIOS (Tim Love indicated he abandoned the attempt).  My assumption is that this is because there is some BIOS boot code that runs prior to branching to _c_int00 which would be otherwise designated to run from RAM, but would not be copied over until after the codestart functions were run. 

Would it be possible, however, to include the copy code in the Boot.xdc package or somewhere similar?  There are several functions in there that I would assume get executed before the branch to _c_int00.  I've read the other application notes (spra958h in particular) and have determined that it would be possible to simply assign each critical code section to RAM using the method indicated, but I'd rather run my entire application from RAM rather than just certain functions.  Also, there are a few differences in the way DSP/BIOS 6.xx works compared to the application notes that seem to be based on version 5.xx which makes me wary to follow them directly.

Any help would be appreciated.

Mark Takatz

  • Mark,

    When I wrote the app note a few years ago I was having some issues with copying the DSP/BIOS sections. I believe this may have been due to a bug that I had in the code. I tested not that long ago and I was able to get the BIOS sections to copy as well. I have planned on going back to this and test further but have not had a chance yet. I should be able to get to this sometime next week. In general the copy sections portion of the code is called before any other initialization happens so it should work. Can I get back with you say Tuesday or Wednesday with my test results?

    Regards,

    Tim Love

  • Sure.  Can you send me what you have now so I can test in parallel?  After all the grief of updating from CCSv3.3 to CCSv4, BIOS 5.xx to BIOS 6.xx, and related XDC tools, plus reading dozens of app notes and all the related documentation, I'm prepared for anything even it is still in a debug state.

    Thanks,

    Mark Takatz

  • Mark,

    I tested only a few BIOS sections and this was for version 5. I actually haven't even used 6 yet. I have attached the code start file that I used. You would need to add the correct memory allocations in the .cmd file.

    Regards,

    Tim

    DSP28xxx_SectionCopy_BIOS.asm
  • Thanks Tim!

    I'll let you know how things go.  BIOS 6 is fun... in a painful sort of way.

    Mark

  • Tim,

    With Dave Russo's help, I've actually managed to get the linker symbols (_text_loadstart, etc.) defined in the DSP/BIOS 6.20 project.  Of course, the new tools come with their own section copy functionality located in ${XDC_INSTALL}\packages\ti\catalog\c2800\init which defaults as the _c_int00 placement in 0x3FFFC0.  I have boot to flash selected (ezdsp28335 board), which should jump to the codestart location, but it doesn't.  I have more work to do.

    Oh, the relevant help topic is here:  http://www.eclipse.org/forums/index.php?t=msg&th=170012&start=0&

    Mark Takatz