Dear Sir,
Can we change the stack address from RAM M1 to other RAM bank for increasing stack size?
.stack : > RAMM1, <--------------------------------------------Change to GS6 and get the compile error
RUN_START(_HWI_STKBOTTOM),
RUN_END(_HWI_STKTOP),
PAGE = 1
There are bootloader and mainprogram in our software structure. They are different CCS program projects.
The boolloader is located at 0x80000 and mainprogram is at 0x88000. The bootloader will check the DIP switch to decide whether stays in bootloader or jump to mainprogram.
We think the bootloader may use too many local variables. Do we need to do "stack reset" before jumping to mainprogram?
==== Code Snippet ===
PLCAppEntryAddr = 0X00088000; //run main program at SectorE
if(MODE_0==1 && MODE_1==1) //jump to PLC main application
{
msg="\r\n\n\n MCU Boot loader Jump to main program\0";
scib_msg(msg);
if(PLCAppEntryAddr)
{
<<DO "stack reset" >> <-------------------------------------------------How to do the stack reset here?
((void (*)(void))PLCAppEntryAddr)();
}
=========END ======
Eddie