套用github上STM32L072XX的RT-Thread工程,将其芯片修改为STM32L051XX,启动修改为startup_stm32l051xx.s,工程编译通过,上板验证时,单步调试每次跳到heap_end->magic=HEAP_MAGIC就不往下走了
/* initialize the end of the heap */
heap_end = (struct heap_mem *)&heap_ptr[mem->next];
heap_end->magic = HEAP_MAGIC;
heap_end->used = 1;
heap_end->next = mem_size_aligned + SIZEOF_STRUCT_MEM;
heap_end->prev = mem_size_aligned + SIZEOF_STRUCT_MEM;
不知道这个问题该如何解决?
1、是否因为只是修改芯片型号和启动文件不够,还有其它地方需要修改?
2、有没有成功的STM32L051XX移植工程可以提供? |