AnsweredAssumed Answered

BF529 SPI MultiBoot LDR share global memories

Question asked by KevinLO on Jun 27, 2013
Latest reply on Jun 28, 2013 by CraigG

Hi,

 

I'm trying to divide a large program into different LDRs, due to limited code memory space. Each of these LDR can operate individually. Is there any way to share global variables inside DATABANK in between all LDRs?

 

I use follow function to switch to next LDR:

 

void switchToNextLDR()

{

   //disable all interrupts

   *pSIC_IMASK0 = 0x0000;

           

    asm (

       "SP.L= 0x0FF0;"

       "SP.H= 0xFFB0;"  

     );

     

    dSpiAddress = 0x010000; // Point to next LDR

    dFlags = BFLAG_PERIPHERAL|BFLAG_FIRST;

    bfrom_SpiBoot(dSpiAddress, dFlags, 0, NULL);

}

 

Thanks.

Regards,

Kevin LO

Outcomes