Skip to main content
BauNu
Associate
March 9, 2020
Question

BlueNRG_Stack_Initialization returning 0x48 => Hints are welcome

  • March 9, 2020
  • 3 replies
  • 1701 views

Hello,

I'm trying to get the Bluenrg m2 module working. For this I use a code based on the chat demo. But when calling "BlueNRG_Stack_Initialization" I get the return value 0x48. If I am right, this means BLE_STATUS_OUT_OF_MEMORY.

For details please see the Pictures...

But from my point of view the memory areas and sizes seem to be correct. Am I missing something?

Pleas let me know if more information is needed.

Thanks!

0693W0000000KJbQAM.png

0693W0000000KXhQAM.png

    This topic has been closed for replies.

    3 replies

    SSimo.2
    Visitor II
    April 7, 2020

    This error may appear when you forget to define BLE_STACK_CONFIGURATION and BLUENRG2_DEVICE constants.

    BauNu
    BauNuAuthor
    Associate
    April 8, 2020

    Thank you for your answer!

    Do you mean this one in BLE_config.h:

    /* This structure contains memory and low level hardware configuration data for the device */
    const BlueNRG_Stack_Initialization_t BlueNRG_Stack_Init_params = {
     (uint8_t*)stacklib_flash_data,
     FLASH_SEC_DB_SIZE,
     FLASH_SERVER_DB_SIZE,
     (uint8_t*)stacklib_stored_device_id_data,
     (uint8_t*)dyn_alloc_a,
     TOTAL_BUFFER_SIZE(NUM_LINKS,NUM_GATT_ATTRIBUTES,NUM_GATT_SERVICES,ATT_VALUE_ARRAY_SIZE,MBLOCKS_COUNT,CONTROLLER_DATA_LENGTH_EXTENSION_ENABLED),
     NUM_GATT_ATTRIBUTES,
     NUM_GATT_SERVICES,
     ATT_VALUE_ARRAY_SIZE,
     NUM_LINKS,
     0, /* reserved for future use */
     PREPARE_WRITE_LIST_SIZE,
     MBLOCKS_COUNT,
     MAX_ATT_MTU,
     CONFIG_TABLE,
    };

    And the Prerocessor Macros:

    BLE_STACK_CONFIGURATION=BLE_STACK_FULL_CONFIGURATION

    BLUENRG2_DEVICE

    I think it's all there. It's based on the Chat demo.

    Dann
    Visitor II
    December 13, 2021

    HI @BauNu​ 

    did you solve this issue? I have the same problem when creating a new project in WiSE studio, all the files seems to be OK (automatically generated or imported from example). Imported example project also works well but I'd like to create entire new local project (directory order in examples is a little mess).

    JSpil.2
    Visitor II
    April 1, 2023

    Hey, did you solve this issue?

    BauNu
    BauNuAuthor
    Associate
    April 11, 2023

    Hey,

    I didn't solve the issue. I switched to another device, but I am also interested, what the solution is.