CONTROL, PRIMASK, FAULTMASK regs not updating within IDE

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

leroy2
Posts: 1
Joined: Sat Feb 23, 2019 3:17 pm

CONTROL, PRIMASK, FAULTMASK regs not updating within IDE

Postby leroy2 » Mon Mar 04, 2019 11:42 pm

Hello,
I'm new to TrueStudio and to the community, fairly new to STM32. I am running through an online course (using the STMF3Discovery board) that is explaining the behavior of various registers such as CONTROL, PRIMASK, FAULTMASK, MSP, PSP, etc.

I'm finding that TrueStudio, register view, is not updating at least the CONTROL, PRIMASK and FAULTMASK registers when I single step though the C code. I am using the

Code: Select all

__set_CONTROL(mask) , __set_PRIMASK(mask);,  __set_FAULTMASK(mask);
apis.

I can see MSP, PSP, PC, SP among others being updated appropriately. The registers are indeed updating as I can read back the updated values and the processor is behaving as expected. Looks like the registers are not being refreshed within the IDE.

If I use the "System Workbench for STM32" IDE, then I can see the above three registers update within that IDE as expected.

Just for grins I have tried running TrueStudio as root when testing the CONTROL register but still did not see the register value change within the Registers view.

Am I missing some setting that would cause this behavior?


I'm running
STM32F3Discovery board
TrueStudio 9.2.0 - out of the box, no add ins or updates
Ubuntu Linux 16.04.1 64 bit
System Workbench for STM32 (latest default install version)

Thanks,
Leroy

vscson
Posts: 2
Joined: Tue Mar 12, 2019 4:49 pm

Re: CONTROL, PRIMASK, FAULTMASK regs not updating within IDE

Postby vscson » Tue Mar 12, 2019 4:52 pm

I have the same problem with 9.2.0.

vscson
Posts: 2
Joined: Tue Mar 12, 2019 4:49 pm

Re: CONTROL, PRIMASK, FAULTMASK regs not updating within IDE

Postby vscson » Tue Mar 12, 2019 5:22 pm

Still does not work on 9.3.0


Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests