Search found 11 matches

by dirkvermaak
Wed Apr 03, 2019 7:28 am
Forum: Atollic TrueSTUDIO tool discussions
Topic: RestartButton when code not running from 0x8000000
Replies: 2
Views: 295

RestartButton when code not running from 0x8000000

Hi All, I wondered if anyone could help me. We are using an STM32F446 (but I don't think that mattters). We use a bootloader and keep some security information in some of the lower (smaller FLASH sectors) so we build and run our code from 0x8020000, the first larger FLASH block. However, when we cli...
by dirkvermaak
Tue Oct 30, 2018 2:39 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

Yeh, I get that. I also realise that it's not a really common thing to do. Our boot loader is quite secure, in that it it doesn't just boot, but it checks the images to ensure integrity (length, MD5, versions etc.) before it will even attempt to boot an image. This makes it tricky to run our boot lo...
by dirkvermaak
Tue Oct 30, 2018 1:18 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

So far we have found it fixes restarts at 0x8000000. However, on our relocated code that is built and run at 0x8020000, it fails. In fact it takes you out of the debugger and back in to the C Editor perspective. The code is fine when it is run the first time and it's fine when booted with our bootlo...
by dirkvermaak
Tue Oct 23, 2018 10:06 am
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

BTW this is listed as fixed in the latest release of Atollic.
by dirkvermaak
Thu Aug 09, 2018 5:06 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

Because you go into an infinite loop on the first run of the program. You would just always reset and never get started. Only reset if you've previously been configured .

Glad this helps. I have raised it with the ST guys at a conference and hope it will get properly fixed sometime.
by dirkvermaak
Mon May 21, 2018 7:05 am
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

Additional Information In the end, the solution I posted above proved unreliable. We found that the DMA controllers suffered the same problem although it seemed more intermittent. Basically, the restart button doesn't Reset the peripherals properly and so you get unreliable behaviour. I guess for a...
by dirkvermaak
Sat May 19, 2018 5:37 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

EASY SOLUTION - but not very elegant as you have to modify the HAL auto generated code. The problem lies in the stm32f4xx_hal_timebase_TIM.c file at Line 85 . HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { RCC_ClkInitTypeDef clkconfig; uint32_t uwTimclock = 0; uint32_t uwPrescalerValue = 0;...
by dirkvermaak
Sat May 19, 2018 4:38 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

Ok so an update, the problem is caused by *NOT* using the SysTick timer for the HAL System tick. (Which is the case if you are running FreeRTOS). I have built the simplest project possible for a NUCLEO-F401RE board and when I use the SysTick timer it restarts properly using the button. When I then s...
by dirkvermaak
Fri May 18, 2018 5:27 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

I have a theory (not yet proven). When you restart all it does is set the PC to the Main(). The underlying interrupts are still enabled and the timers are running. You then go in and fiddle with the clocks in HAL_Init() and they go nuts. It's because it's not performing a chip reset, just moving the...
by dirkvermaak
Fri May 18, 2018 5:19 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: Can't restart debugger without reloading code
Replies: 30
Views: 3369

Re: Can't restart debugger without reloading code

Exactly the problem we have, and we have used numerous development boards and our own designs. It happens on all of them. I have scoured the settings etc. but because it doesn't run the startup code again things seem to go badly. HELP! ANYONE?

Go to advanced search