cancel
Showing results for 
Search instead for 
Did you mean: 

Bug report in STM32Cube_FW_WL_V1.1.0, LoRaWAN stack

G.Buldo
Associate

I'm working on the application project LoRaWAN_AT_Slave_DualCore from STM32Cube_FW_WL_V1.1.0 .

The payload of the downlink messages is not correctly transfered from the processor M0 to the processo M4.

There is a bug in:

file LmHandler_mbwrapper.c,

function static void OnRxData_mbwrapper(LmHandlerAppData_t *appData, LmHandlerRxParams_t *params):

 if (appData != NULL)

 {

  UTIL_MEM_cpy_8(aLoraMbWrapShare2Buffer, appData, sizeof(LmHandlerAppData_t));

  /* need to 8-align the next address */

  next_addr = (sizeof(LmHandlerAppData_t) + 7) & ~7;

  if (appData->BufferSize > 0)

  {

   UTIL_MEM_cpy_8(&aLoraMbWrapShare2Buffer[next_addr], appData->Buffer, appData->BufferSize);

   ((LmHandlerAppData_t *)aLoraMbWrapShare2Buffer)->Buffer = &aLoraMbWrapShare2Buffer[next_addr];

   next_addr = (appData->BufferSize + 7) & ~7;

  }

 }

The bold line should be removed.

0 REPLIES 0