Programming LoRa E5 with Mbed Studio

Hi all,

I am trying to program a LoRa E5 with Mbed studio as per the instructions here. But I get errors like this always.

++ MbedOS Error Info ++
Error Status: 0x80FF0144 Code: 324 Module: 255
Error Message: Assertion failed: error_value == HAL_OK
Location: 0x800EA0B
File: STM32WL_LoRaRadio.cpp+775
Error Value: 0x0
Current Thread: main Id: 0x20002690 Entry: 0x800F559 StackSize: 0x1000 StackMem: 0x200010B8 SP: 0x20001FA4 
For more info, visit:
-- MbedOS Error Info --

But when I use the same code with RAK3175 just by changing the custom targets and some modifications, it’s working fine. I am not able to figure out what happened. Can anyone please help me?