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.

CCS/TMS320F28335: Branch into SCI boot from flash program

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello !

I try branch into SCI boot from flash program.I see bootrom.map   (003ff633   _SCI_Boot) I write some code but I get errors.What I can make? 

extern Uint32 SCI_Boot();

void main(void)
{
    //(void (*)(void))0x003ff633;
// Step 1. Initialize System Control:
// PLL, WatchDog, enable Peripheral Clocks
// This example function is found in the DSP2833x_SysCtrl.c file.

    unsigned long boot_addr = 0x003FF633;
    //(void (*)(void))0x003ff63c


   InitSysCtrl();

   IER = 0x0000;
   IFR = 0x0000;
   // Initialize PIE control registers to their default state.
   // The default state is all PIE interrupts disabled and flags
   // are cleared.
   // This function is found in the DSP2833x_PieCtrl.c file.
   InitPieCtrl();
// Step 3. Clear all interrupts and initialize PIE vector table:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
// Disable CPU interrupts
   DINT;
   void (*entry)();

   entry = (void(*)())(boot_addr);

   entry();

   entry = (void(*)())(boot_addr);

   SCI_Boot();

   Gpio_select();

  • Hi Utku,
    Would you kindly provide a bit more detail about what you are wanting to achieve. Which documentation are you referring to? What errors are you seeing?
    Thanks,
    Krishna
  • Thanks for reply Krishna,

    My errors are below:



    warning #10247-D: creating output section "ramfuncs" without a SECTIONS specification
    warning #10247-D: creating output section ".InitBoot" without a SECTIONS specification

    undefined first referenced
    symbol in file
    --------- ----------------
    _Flash28335_Erase ./Shared_Boot.obj
    _Flash28335_Program ./Shared_Boot.obj
    _Flash_CPUScaleFactor ./Shared_Boot.obj
    _Flash_CallbackPtr ./Shared_Boot.obj

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "first_project.out" not built

    >> Compilation failure
    makefile:154: recipe for target 'first_project.out' failed
    gmake[1]: *** [first_project.out] Error 1
    gmake[1]: Target 'secondary-outputs' not remade because of errors.
    makefile:150: recipe for target 'all' failed
    gmake: *** [all] Error 2
  • I want to load program rs485 and dont configured GPIO84 so I want to branch sci bootloader on GPIOs 84 85 86 87 1 1 1

  • Hi Utku,

    Please go through the training available here: processors.wiki.ti.com/.../C2000_Archived_Workshops
    F28335 Multi-Day Workshop - Revision 7.2 February 2009 (SD eZdsp F28335; CCSv3.3; DSP/BIOS 5.33)

    Once you have gone through this training, you will be available to resolve the issues. If you continue to have trouble after you look at the training, please let us know.

    Cheers!
    Krishna
  • I saw this pdf butI think, my problem is relevant symbols.
  • Hi Utku,
    The problem you are experiencing appears to be building an application for Flash. Can you please provide more details about your application.
    What version of CCS are you using? Where did you get the example files? We cannot help you unless we understand the problem fully. Please provide all the details step by step, so we can help you better.
    Thanks,
    Krishna
  • Utku

    We haven’t heard from you for close to 2 weeks, so I’m assuming you were able to resolve your issue. If this isn’t the case, please reject this resolution and reply to this thread. If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

    Regards,
    Chris