请教:B1L14怎么移植Threadx(Azure)
-
之前在B1HA0下移植过Threadx。现在这个工程使用的是B1L14,移植Threadx后编译报错。个人解决不了,恳请能帮忙支持一下。开发环境为IAR。
TFT15_4G_V10 - FLASH Reading project nodes... TFT15_4G_V10.out Error[Lc036]: no block or place matches the pattern "ro code section .intvec in vector_table_M.o(rt7M_tl.a) symbols: [__vector_table]" Error[Lc036]: no block or place matches the pattern "zi section FREE_MEM in tx_initialize_low_level.o symbols: [__tx_free_memory_start]" Error[Lc036]: no block or place matches the pattern "ro data section .iar.init_table" Total number of errors: 3 Total number of warnings: 0 Build failed
-
这是B1HA0使用的Low_Level文件,很ok,但在B1L14工程下会报错,不知道怎么做相应修改
#include "tx_api.h"
// 设置主频,threadx滴答 = 1ms
#define SYSTEM_CLOCK 3000000
#define SYSTICK_CYCLES ((SYSTEM_CLOCK / 1000) -1)extern void *HEAD$$Limit;
#define UNUSED_MEM_PTR (&HEAD$$Limit)
extern VOID *_tx_initialize_unused_memory;
extern VOID _tx_timer_interrupt(VOID);VOID _tx_initialize_low_level(VOID)
{
/* 关闭中断 */
// __disable_irq();
_tx_initialize_unused_memory = (VOID *)UNUSED_MEM_PTR;/* enable CPU cycle counter */
// DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk;
/* 配置滴答定时器 */
// SysTick_Config(SYSTICK_CYCLES);/* 设置中断优先级 */
// NVIC_SetPriority(MemManage_IRQn, 0);
// NVIC_SetPriority(BusFault_IRQn, 0);
// NVIC_SetPriority(UsageFault_IRQn, 0);
//
// NVIC_SetPriority(SVC_IRQn, 0x0ff);
//
// NVIC_SetPriority(DebugMon_IRQn, 0);
// NVIC_SetPriority(PendSV_IRQn, 0x0ff);
// NVIC_SetPriority(SysTick_IRQn, 0x40);
}VOID SysTick_Handler(VOID)
{
_tx_timer_interrupt();
}
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...