Question about registry access

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
lunte10
Posts: 1
Joined: 10 Dec 2023 15:44

Question about registry access

#1 Post by lunte10 » 10 Dec 2023 16:03

Hello dear users,

Controller is an STM32F103C8

I'm still a beginner with Microbasic for Arm.

How can I read and write access to the STCTRL register at address 0xE000E010? The compiler doesn't seem to know about the register. This also applies to the registers STRELOAD at address 0xE000E014 and STCURRENT.

I would be happy if someone could help me further.

Best regards lunte10

AntiMember
Posts: 135
Joined: 02 Jan 2020 19:00

Re: Question about registry access

#2 Post by AntiMember » 12 Dec 2023 10:10

STK_CTRL absolute 0xE000E010;
STK_LOAD absolute 0xE000E014;
STK_VAL absolute 0xE000E018;
STK_CALIB absolute 0xE000E01C;

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

Re: Question about registry access

#3 Post by Thomas.Pahl@t-online.de » 13 Dec 2023 08:28

MikroBasic knows these registers, look at STM32F103C8.MBAS in Defs folder.

Post Reply

Return to “mikroBasic PRO for ARM General”