Improve BoardConfig structure && fix heap_id_mask