Skip to main content
Associate
April 23, 2024
Solved

STM32WLE5x NVIC RTC on Rev. Y die crash

Hi,

 

We have been using the STM32WLE5CB for a while now, using the older die revision Z. Since we have a new batch with the new revision Y die of the STM32WLE5x we couldn't get our firmware working anymore. 

To try make it work we have tried to use the example LoRaWAN endnode and couldn't get it working on this revision. It seems to get stuck in initializing the RTC Alarm in the MX_NVIC_Init()

HAL_NVIC_EnableIRQ(RTC_Alarm_IRQn);

 Where it finally crashes in the core_cm4.h 

/**
 \brief Get Interrupt Enable status
 \details Returns a device specific interrupt enable status from the NVIC interrupt controller.
 \param [in] IRQn Device specific interrupt number.
 \return 0 Interrupt is not enabled.
 \return 1 Interrupt is enabled.
 \note IRQn must not be negative.
 */
__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ(IRQn_Type IRQn)
{
 if ((int32_t)(IRQn) >= 0)
 {
 return((uint32_t)(((NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] & (1UL << (((uint32_t)IRQn) & 0x1FUL))) != 0UL) ? 1UL : 0UL));
 }
 else
 {
 return(0U);
 }
}

Does anyone know what difference there is between Revision Z and Y, and how I can resolve my problem? The 32kHz RTC clock is working on my board where I have looked at the LSCO Clock Output on a scope.

This topic has been closed for replies.
6313oscarBest answer
Associate
August 1, 2024

It seems to be that the custom PCB was the issue, where the PH3-Boot0 pin was floating.

11 replies

STTwo-32
ST Technical Moderator
April 23, 2024

Hello @6313oscar and welcome to the ST Community :smiling_face_with_smiling_eyes:.

First, are you using both revisions on the same design or different ones ?

Second, Is it exactlly the same MCU on both revisions (the STM32WLE5CB)?

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
6313oscarAuthor
Associate
April 23, 2024

Hello STTwo-32,

It's the same design with one the STM32WLE5CBU6 on board as a LoRaWAN endnode sensor, we just got a new batch of PCB's with the new die revision Y on it. previously it was die revision Z on the design, the rest of the PCB design didn't change.

 

kind regards,

Oscar

6313oscarAuthorBest answer
Associate
August 1, 2024

It seems to be that the custom PCB was the issue, where the PH3-Boot0 pin was floating.