Skip to main content
Visitor II
December 30, 2020
Question

Problems with the stm32_rpmsg_sdb.c

  • December 30, 2020
  • 2 replies
  • 836 views

I find the kernel Panic when I mmap 16 shared memory regions.(4KB/memory)

0693W000006H93lQAC.jpg

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 4, 2021

    Hi,  

    Please confirm you are trying to play with provided example https://wiki.st.com/stm32mpu/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_example

    In which ecosystem context are you ?

    Please check that memory mapping is consistent between kernel dts and MP4 firmware for shared memory.

    Olivier

    Visitor II
    March 10, 2021

    running into the same issue it looks like there's a simple buffer overflow in the `sprintf` when trying to print an index larger than 9:

    https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser/pull/3/commits/14b3ddbda9cf7d2413479fb7fbd6aebc0d626a0f