Bit missing for STM32L476 ? Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Stephane
Posts: 12
Joined: Tue Aug 26, 2014 3:41 pm
Has thanked: 2 times
Been thanked: 2 times

Bit missing for STM32L476 ?  Topic is solved

Postby Stephane » Mon Mar 30, 2020 1:33 pm

Hello,

Not sure, but it seems that the LPUART1_CR3, bit UCESM is missing.

Perhaps must he be in C:\ChibiStudio\chibios191\os\common\ext\ST\STM32L4xx\stm32l476xx

Code: Select all

#define USART_CR3_UCESM_Pos           (23U)
#define USART_CR3_UCESM_Msk           (0x1U << USART_CR3_UCESM_Pos)            /*!< 0x00800000 */
#define USART_CR3_UCESM               USART_CR3_UCESM_Msk                      /*!< Clock Enable inStop Mode */


Ah, and also for the UARTs: the TCBGTIE bit ia also missing:

Code: Select all

#define USART_CR3_TCBGTIE_Pos           (24U)
#define USART_CR3_TCBGTIE_Msk           (0x1U << USART_CR3_TCBGTIE_Pos)            /*!< 0x01000000 */
#define USART_CR3_TCBGTIE               USART_CR3_TCBGTIE_Msk                      /*!< Trm complete before guard time IRQ enable */


With best regards,

Stephane

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Bit missing for STM32L476 ?

Postby Giovanni » Sat May 23, 2020 9:06 am

Hi,

That is an ST header, I will look for an updated version.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Bit missing for STM32L476 ?

Postby Giovanni » Sun May 31, 2020 8:59 am

Hi,

I updated the headers in trunk, they added UCESM but not the other one...

Giovanni

rew
Posts: 380
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 13 times

Re: Bit missing for STM32L476 ?

Postby rew » Mon Jun 08, 2020 4:22 pm

That UESM / UECSM bit seems troublesome... Found this in the code I'm working on.

Code: Select all

  // Bit 1 is called UESM, and documented as "reserved".... Quite
  // possible that it DOES do something. ... Update: documentation
  // error. bit not implemented.

The "not implemented" remark refers to STM32F030.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Bit missing for STM32L476 ?

Postby Giovanni » Mon Jun 08, 2020 5:38 pm

It is also possible it has been removed from documentation because some underlying problem in that feature, I don't know but it can happen.

Giovanni

rew
Posts: 380
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 13 times

Re: Bit missing for STM32L476 ?

Postby rew » Wed Jun 10, 2020 6:03 am

Yeah, but then the bit in the register would physically exist, just not do precisely what it's supposed to do. In this case, I tested it and found the bit completely absent in the hardware.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 6 guests