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.

Sys/Bios Boot to flash

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE, TMDSCNCD28335, TMDSDOCK28335, SYSBIOS

I''ve been reading SPRA958K to figure out how to run my application from flash on my TMS320F28335 and would just like to confirm one item.  The document was written for DSP/BIOS and I'm using SYS/BIOS.    Section 4.3 talks about copying the .trcdata section to RAM and the need to do this before main() or before bios starts, using the User Init Function. Uder DSP/BISO can specify this routine in the global Setting Properties dialog but I don;t this this exists in SYS/BIOS. If I understand this correctly, under SYS/BIOS I can run all my ram copies right from main() because BIOS does not start running until BIOS_start() is run.

Is this correct?

Ed

 

  • Looking further into this I think the above is wrong and I do need to have an init routine before main(). I think this can be specified in the Startup module ( see Below)

    Is this correct? 

    Also can I leave all this in place while the debugger is running?

    Ed

     

  • Could someone please have a look at this post?

    Thank you.

  • Ed Hildebrandt said:

    I''ve been reading SPRA958K to figure out how to run my application from flash on my TMS320F28335

     

    What have you tried so far that does work?

    Do you have controlSUITE installed, and what simple pre-made firmware examples have you tried with success?

    What versoin of Code Composer Studio do you have installed, and when you check for updates from within the program, what response do you get?

    What is your hardware?  You are using the TMS320F28335.  Is this on your own circuit board or on a TI kit, like the TMDSDOCK28335 or TMDSCNCD28335 on your own board?

  • I have not tried moving my code to run standalone yet, wanted to make sure I was on the right track before I started.

    I do have control suite installed and have a run a  few of the examples, but always with the debugger.  I have moved on to my own board and custom code but again running with the debugger (work well this far) and yes I am using the TMS320F28335 on this board. 

    Ed

     

  • Ed, Guido,

    Please look at this forum thread: http://e2e.ti.com/support/embedded/bios/f/355/t/117026.aspx

    The need to move .trcdata does not apply to SYS/BIOS.  Also, the startup function lists you see allows you to add functions to run at the different stages of boot, but you don’t need to add anything here for booting from flash. 

    If you haven’t seen it, there is a description of the startup sequence and these functions here: http://processors.wiki.ti.com/index.php/SYS/BIOS_for_the_28x

    Scott

  • Scott,

    That was "almost" too easy.  I enabled the flag and it boot just fine.  The question I have left done is just to confirm that the only ram caopy that I would need to do is if I want any function to reside in RAM.  All other (HWI vector, constants etc) are already done by SYSBIOS?

    Thanks for the help.

    Ed

     

  • Ed,

    OK, good!

    Yes, SYS/BIOS does the copy of the vectors to RAM at startup.  You would only need to do a copy to RAM for application-provided functions that you want to run from RAM.

    Scott