Calling to FastSemihosting from interrupts before initialization finished loops Sysprogs forums › Forums › VisualGDB › Calling to FastSemihosting from interrupts before initialization finished loops Tagged: FastSemihosting, stm32l0 This topic contains 2 replies, has 2 voices, and was last updated by support 5 months, 2 weeks ago. Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) Author Posts September 11, 2019 at 09:21 #25766 Gordon01Participant It’s very simple to reproduce: From the main(): Initialize RTC and enable it’s IRQ (every second) call printf(“hello world”); From RTC_IRQHandler: Just call printf(“RTC counter = %ld\n”, wvt_rtc_counter++); I’ve attached call stack, it gives clear explanation of the problem: WriteRawFastSemihostingData() is called from IRQ before InitializeFastSemihosting() finished. Attachments:You must be logged in to view attached files. September 11, 2019 at 09:35 #25768 Gordon01Participant The microcontroller is STM32L071, running from MSI on 4.194 MHz. September 13, 2019 at 04:03 #25797 supportKeymaster Hi, No problem, we have published an update to the profiler framework that introduces a new setting: Disable interrupts during semihosting operations. Please try updating the framework and then set the new option to “Yes” in order to automatically disable interrupts during the execution of WriteToFastSemihostingChannel(). Author Posts Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic.