STM32CubeIDE generates broken dual core STM32WL55 LoRaWAN Project
Hi
For the past few days I've been trying to get a dual core project with FreeRTOS and the LoRaWAN Stack for a custom STM32WL55 design to work but the CubeIDE seems to not properly generate everything that's required for it to work.
- When blindly generating a project, everything compiles well but the program halts in the MBMUXIF_SystemInit function because the IPCC Data Buffer hasn't been placed at the right location. This buffer apparently should be placed inside of the MAPPING_TABLE section which is not created anywhere in the linker script so it just gets placed in the data section. There's also other linker sections being referenced in the code that simply just not exist. The Linker script seems to be a generic one not at all designed to work with the LoRaWAN library. I also couldn't find any documentation anywhere about how to do it manually.
- When creating that linker section and setting the IPCCDBA value accordingly with the STM32CubeProgrammer, it successfully gets past that check but then hangs when waiting for the M0+ core to start up. Debugging why the M0+ core isn't starting up properly shows that it does start but never reports back to the M4 core that it started because the call to MX_LoRaWAN_Init isn't being generated.
- Adding MX_LoRaWAN_Init manually causes a HardFault in StoreValueInFeatureListTable to occur because apparently the object p_MBMUX_Cm0plusFeatureList points to hasn't been initialized properly and contains garbage addresses.
Is there anything I'm doing wrong or are you just not supposed to use the STM32WL55 outside of the Nucleo board and it's very specific examples?
