AnsweredAssumed Answered

In build bootloader

Question asked by cesim.atakan.001 on Jan 26, 2016
Latest reply on Feb 5, 2016 by cesim.atakan.001
Hi friends , 

                                   
           
I found following and did not understand why  __set_MSP(0x20002000) , why main stack pointer hold 0x20002000 ; why not 0x20000000 (sram start address) for stm32f429. 
           
            When  I debug and look in 0x1FFF0000 , I saw 0x20002318? 
            Should I  use __set_MSP(0x20002318
) ? 

            void jump_to_BootLoader(void) {
                void (*SysMemBootJump)(void) = (void (*)(void)) (*((uint32_t *) 0x1FFF0004));
                __set_PRIMASK(1);
                RCC_DeInit();
                SysTick->CTRL = 0;
                SysTick->LOAD = 0;
                SysTick->VAL = 0;
                RCC_SYSCLKConfig(RCC_SYSCLKSource_HSI);
                __set_MSP(0x20002000);
                SysMemBootJump();
            }
           

Outcomes