Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Others: hardware and software
Analog and audio
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
Nikolay
Associate II
since
2021-05-03
2023-06-14
User statistics
7
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About Nikolay
Options
Report User
User Activity
Posts
Replies
Hi, How can I read program counter (PCL) in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-27
Hi, How can I read condition code register in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-03
Re: Hi, How can I read program counter (PCL) in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-29
Hi MQi.1,What do you mean? I use IAR Embedded Workbench for STM8 as IDE. I cannot switch to STVD. DeLoaren's answer looks great, but I don't know how manage to get the return address of the function.Best regardsNikolay
Re: Hi, How can I read program counter (PCL) in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-28
Thanks DeLorean. How can I do that? Can you give a code example?Best regardsNikolay
Re: Hi, How can I read condition code register in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-04
Peter, thanks for the comprehensive answer. I'll check it tomorrowBest regardsNikolay
Re: Hi, How can I read condition code register in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-04
Hi Wilkol,I'm translating one Assembly app (some other IC) to C (STM8S) and it's not a very easy task.
Re: Hi, How can I read condition code register in C? I use STM8S standard peripheral library Best regards Nikolay
2021-05-04
Hey Peter,I know this address. I mean, how should I read from it?