Page 1 of 1
NUCLEO-L4P5ZG support ?
Posted: Mon May 17, 2021 11:52 am
by STM32_Newbbe
Hello,
are there any plans to integrate the NUCLEO-L4P5ZG board to STM32duino?
Or are there other possibilities (for a newbie) to get this board running with the Arduino-IDE?
Cheers,
Bob
Re: NUCLEO-L4P5ZG support ?
Posted: Thu May 20, 2021 9:04 am
by fpiSTM
Hi
@STM32_Newbbe
no plan on my side. You can add it yourself following this wiki:
https://github.com/stm32duino/wiki/wiki ... 28board%29
Note that I'm currently rewriting it to be inline with last core release 2.0.0 so wait the update before starting.

Re: NUCLEO-L4P5ZG support ?
Posted: Thu May 20, 2021 11:49 am
by STM32_Newbbe
Hi @fpiSTM
thanks for the link to the wiki. I'll keep an eye on it for the update
Cheers,
Bob
Re: NUCLEO-L4P5ZG support ?
Posted: Thu Sep 16, 2021 9:11 am
by STM32_Newbbe
Hello again,
many moons have passed and I finally gave it a try to create a L4P5 variant - and directly ran into a problem
When trying to compile my project (which was possible without error/warning for different STM32) I got the following error message multiple times:
Code: Select all
C:\Users\xXxXxXxXxXx\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/backup.h: In function 'void setBackupRegister(uint32_t, uint32_t)':
C:\Users\xXxXxXxXxXx\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino/stm32/backup.h:120:3: error: 'LL_RTC_BAK_SetRegister' was not declared in this scope; did you mean 'LL_RTC_BKP_SetRegister'?
120 | LL_RTC_BAK_SetRegister(RTC, index, value);
| ^~~~~~~~~~~~~~~~~~~~~~
| LL_RTC_BKP_SetRegister
Having a look at backup.h, it seems like there might be the need to add some elif-magic for L4P5 ?
Code: Select all
static inline void setBackupRegister(uint32_t index, uint32_t value)
{
#if defined(STM32F1xx)
LL_RTC_BKP_SetRegister(BKP, index, value);
#elif defined(STM32G0xx)
LL_RTC_BKP_SetRegister(TAMP, index, value);
#elif defined(STM32G4xx) || defined(STM32L5xx)
LL_RTC_BKP_SetRegister(RTC, index, value);
#else
#ifdef ENABLE_BACKUP_SUPPORT
LL_RTC_BAK_SetRegister(RTC, index, value);
#else
UNUSED(index);
UNUSED(value);
#endif
#endif
}
But i have no idea o how to do this correctly not to brake current variants support...
I pretty sure I cannot use
Any ideas?
Re: NUCLEO-L4P5ZG support ?
Posted: Thu Sep 16, 2021 12:43 pm
by fpiSTM
This part have been reviewed to use register instead of serie name when possible:
https://github.com/stm32duino/Arduino_C ... /pull/1435
Re: NUCLEO-L4P5ZG support ?
Posted: Thu Sep 16, 2021 12:59 pm
by STM32_Newbbe
ok, so I am new to all this community programming github things...
- what would now be the correct procedure to get this running on my local installation?
- what do I have to do if I want to share the L4P5 variant with the rest of the world?
- what tests shall I run to confirm everything is fine? I have the Nucleo-L4P5ZG...