2015-04-18 02:21 PM
Hi All,
I'm new on STM controllers and I don't know enough about this controller yet. I tried to use USB DFU on Discovery board. I using latest DfuSe 3.0.4 and latest STM32Cube_FW_F0_V1.2.0\Projects\STM32F072B-Discovery\Examples\GPIO\GPIO_IOToggle If I upload this example by STLink it works as expected. If I change IROM1 to 0x8007000 0x19000 in this example, recompiled and uploaded by DFU then the LD3 lit up only. I found that the App is working but the HAL_Delay() function doesn't. Finally I found that the uwTick variable does not incremented by SysTick handler. If I replaced HAL_Delay by a long For-loop it worked perfectly. Does anybody know why? What I'm missing? Thank you so much! Attila #keyhole-debugging #stm32f072b-discovery-b #usb-dfu2015-05-26 05:57 AM
Meanwhile I found that did I wrong.
I setSYSCFG->CFGR1 = SYSCFG_CFGR1_MEM_MODE_1 | (SYSCFG->CFGR1 & (~SYSCFG_CFGR1_MEM_MODE));
instead ofSYSCFG->CFGR1 = SYSCFG_CFGR1_MEM_MODE | (SYSCFG->CFGR1 & (~SYSCFG_CFGR1_MEM_MODE));
Thanks for all your help! Attila