NUCLEO-L4P5ZG support ?

All about boards manufactured by ST
Post Reply
STM32_Newbbe
Posts: 47
Joined: Thu Nov 05, 2020 10:26 am

NUCLEO-L4P5ZG support ?

Post 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
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: NUCLEO-L4P5ZG support ?

Post 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. ;)
STM32_Newbbe
Posts: 47
Joined: Thu Nov 05, 2020 10:26 am

Re: NUCLEO-L4P5ZG support ?

Post by STM32_Newbbe »

Hi @fpiSTM

thanks for the link to the wiki. I'll keep an eye on it for the update

Cheers,
Bob
STM32_Newbbe
Posts: 47
Joined: Thu Nov 05, 2020 10:26 am

Re: NUCLEO-L4P5ZG support ?

Post 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

Code: Select all

|| defined(STM32L4xx)
Any ideas?
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: NUCLEO-L4P5ZG support ?

Post by fpiSTM »

This part have been reviewed to use register instead of serie name when possible:
https://github.com/stm32duino/Arduino_C ... /pull/1435
STM32_Newbbe
Posts: 47
Joined: Thu Nov 05, 2020 10:26 am

Re: NUCLEO-L4P5ZG support ?

Post 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...
Post Reply

Return to “STM boards (Discovery, Eval, Nucleo, ...)”