Skip to main content
Visitor II
December 13, 2020
Question

use mpu to configure the memory range which will be used as lwip internal heap as device type memory will cause hard fault

  • December 13, 2020
  • 0 replies
  • 412 views

hi,

recently, I am try to use cubeide to directly generate a basic project for future development. In this basic project, I am trying to integrate lwip stack

I am now confused by one weird behavior, when I configure the memory for lwip internal heap usage as device type memory or strongly ordered type (TE: 00 , C: 0, B:0 or 1), then, when the program runs, hard fault will constantly occur. While if I configure the same memory as noncacheable (TE:01, C:0, B:0), then the lwip works fine, and I can get the right ping response.

I want to know why the first configuration does not work. Can anyone shed me the light? Thanks a lot

    This topic has been closed for replies.