2018-12-20 04:19 AM
It doesn't work after a flash, but if I do a reset or reconnect the board, it works fine. Is this OK, or I miss something? I use SPL driver.
The application is similar to the demonstration that came with the board (Nucleo-L152RE), except the part for the shield (just the button and the led).
Thank you!
2018-12-20 04:31 AM
I would guess ome issue with interrupts and the vector table.
Instead of meticulously cleaning up after flashing, forcing a reset (via NVIC) could be a suitable solution.
2018-12-20 04:52 AM
I had to modify a function by adding these first three lines and it works.
void vpc_system_init(void){
RCC_APB1PeriphClockCmd(RCC_APB1Periph_COMP, ENABLE);
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
my_ticks = 0;
SysTick_Config(SystemCoreClock / 1000);
}
Thank you for your reply!
2018-12-20 05:10 AM
But I have to master Interrupt priorities...
2018-12-20 05:52 AM
Ok.
I supposed a bootloader scenario, where you pass control to the flashed application.
I use to avoid downloading files from forum threads.
2018-12-20 06:00 AM
It is ok, it helped me to eliminate a cause from the list.