Skip to main content
hugo1
Associate II
February 22, 2019
Question

STM32L151RC GPIO BRR register missing?

  • February 22, 2019
  • 5 replies
  • 1452 views

Hi,

to clear bit 7 in port C I used a write to the BRR register: GPIOC->BRR = 0x00000080. Did not clear bit 7. A write to BSRR works: GPIOC->BSRR = 0x00800000. Is the BRR register not implemented (seems kind of redundant anyway with having BSRR)? It certainly is included in the header file. Could not see anything in the Errata sheet either. Or am I missing something?

Kind Regards,

This topic has been closed for replies.

5 replies

After Forever
Senior III
February 22, 2019

From the reference manual (RM0038):

GPIO bit reset register (GPIOx_BRR) (x = A..H)

These registers are available on Cat.3, Cat.4, Cat.5 and Cat.6 products only.

ST Technical Moderator
April 30, 2019

Hello,

BRR register is not in Cat.3.

The reference manual RM0038 will be updated to correct in chapter: "7.4.11 GPIO bit reset register (GPIOx_BRR) (x = A..H)":

- Remove "Cat.3" from description. So final sentence should be: These registers are available on Cat.4, Cat.5 and Cat.6 products only.

I raised this issue internally for fix.

Thanks,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
hugo1
hugo1Author
Associate II
February 22, 2019

Yes, I know that. According to the table on page 40 of the data sheet the STM32L151RC is a Cat.3 device.

hugo1
hugo1Author
Associate II
February 22, 2019

0690X000006DltIQAS.png

waclawek.jan
Super User
February 22, 2019

What's the value of DBGMCU_IDCODE ?

JW

hugo1
hugo1Author
Associate II
February 22, 2019

Hi,

DBGMCU->IDCODE is 0x10f86427

Kind Regards,