Nrf5340 vsprintf float

Hi,

When I using the vsprintf to implement printf to the uart.

I find some issue when I call the printf %f for float.

It will cause the "Stack overflow (context area not valid)"

Parents Reply
  • Hi Vidar,

    Thanks for share the solution, It can work now.

    Now I meet the other overflow

    Due to we porting some driver that using posix pthread, now the overflow happen in Current thread: 0x20006838 (unknown).

    And I check the *.map file as below:

    .bss.posix_thread_pool
    0x0000000020006608 0x578 zephyr/lib/posix/liblib__posix.a(pthread.c.obj)

    It seems like the posix library stack overflow, is there any soultion can resolve it?

    Thanks.

    Ian

Children
Related