AnsweredAssumed Answered

Exti line 7 stop working after jumping to the application on stm32F030

Question asked by LaserElettronicaSRL on Jul 26, 2017
Latest reply on Nov 17, 2017 by LaserElettronicaSRL

Hi,
After the jumping bootloader, the EXTI_line7 not work!

 

boot.c

            /* Test if user code is programmed starting from address "APPLICATION_ADDRESS" */
            if (((*(__IO uint32_t*)FLASH_USER_START_ADDR) & 0x2FFE0000 ) == 0x20000000)
                {
                    /* Jump to user application */
                    JumpAddress = *(__IO uint32_t*) (FLASH_USER_START_ADDR + 4);
                    Jump_To_Application = (pFunction) JumpAddress;
      
                    /* Initialize user application's Stack Pointer */
                    __set_MSP(*(__IO uint32_t*) FLASH_USER_START_ADDR);
                    
                    __disable_irq();
                    
                    /* Jump to application */
                    Jump_To_Application();
                }


application.c

 

int main(void)
{
    unsigned long ulChk = 0;
    unsigned int     uiLen = 0;
    GPIO_InitTypeDef GPIO_InitStructure;
  uint32_t i = 0;
 

 RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);  // Clock not Reset   
 

   /* Relocate by software the vector table to the internal SRAM at 0x20000000 ***/  
   /* Copy the vector table from the Flash (mapped at the base of the application
     load address 0x08003000) to the base address of the SRAM at 0x20000000. */
  for(i = 0; i < 48; i++)
  {
            VectorTable[i] = *(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));
  }

 

  /* Enable the SYSCFG peripheral clock*/
  RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE);
    /* Remap SRAM at 0x00000000 */
  SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM);

 

/***************** Add your application code here   ***************************/

 

   /* Unlock the Flash Program Erase controller */
  FLASH_Unlock();

 

// main loop...

}   

 

I'm have add SYSCFG clock enabled prior to remapping the RAM, but EXTI line 7 not work!

thanks

Outcomes