cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F072 DFU vs. App

anagy9
Associate II
Posted on April 18, 2015 at 23:21

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-dfu
10 REPLIES 10
anagy9
Associate II
Posted on May 26, 2015 at 14:57

Meanwhile I found that did I wrong.

I set

SYSCFG->CFGR1 = SYSCFG_CFGR1_MEM_MODE_1 | (SYSCFG->CFGR1 & (~SYSCFG_CFGR1_MEM_MODE));

instead of

SYSCFG->CFGR1 = SYSCFG_CFGR1_MEM_MODE | (SYSCFG->CFGR1 & (~SYSCFG_CFGR1_MEM_MODE));

Thanks for all your help!

Attila