Skip to content

使用F401RC仿真运行,为什么不停的复位? #35

@411592004

Description

@411592004

修改为F401RC的改动:

  1. C/C++ 修改宏为:STM32F401xx
  2. ARM Compiler: 选择使用 version5 和 version6 编译仿真都会复位。
  3. Device:选择为STM32F401RC
  4. 使用的是:Keil.STM32F4xx_DFP.2.15.0.pack 修改为Keil.STM32F4xx_DFP.1.0.8.pack编译仿真也会复位。
  5. 代码修改晶振8M #define PLL_M 8
  6. 代码编译使用Startup下面的startup_stm32f401xx.s
  7. 屏蔽编译错误,禁止编译stm32f4xx_fsmc.c
  8. 屏蔽编译错误,屏蔽 TIMx_IRQn_DEF(8, TIM8_UP_TIM13_IRQn); TIMx_IRQn_DEF(12, TIM8_BRK_TIM12_IRQn);
    TIMx_IRQn_DEF(13, TIM8_UP_TIM13_IRQn); TIMx_IRQn_DEF(14, TIM8_TRG_COM_TIM14_IRQn);
    9.测试使用的是空应用:
    void setup() {
    // put your setup code here, to run once:
    }
    void loop() {
    // put your main code here, to run repeatedly:
    }
    int main(void)
    {
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    Delay_Init();
    //ADCx_Init(ADC1);
    setup();
    for(;;)loop();
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions