cancel
Showing results for 
Search instead for 
Did you mean: 

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

Whono.1
Associate II

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

0 REPLIES 0