[先楫HPM6750EVK2测评一] 鸿蒙liteos移植到segger embedded studio平台
<p><span style="font-family:宋体;"><span style="font-size:20px;"> 初次了解鸿蒙这个系统,感觉想包含的东西太多了,而且标准版长达80G,楼主下载的Mini版本下来也需要20多G。一个MCU平台,跑个rtos,实在也没必要用这么大的系统整体,纯粹浪费硬盘空间和时间。</span></span></p><p><span style="font-family:宋体;"><span style="font-size:20px;"> 从Git看到鸿蒙,长达300多个代码仓库,其实真正用上的也就liteos-m,组件可自行根据仓库下载截减。</span></span></p>
<p><span style="font-family:宋体;"><span style="font-size:20px;"> 先楫在IDE支持上,免费可使用segger embedded studio平台,也是hpm官方主推的IDE平台,楼主大概花了三天时间进行移植,中间缺少不少依赖的东西,鸿蒙本身内部耦合太重了,实在花费不少时间去移植整合。</span></span><span style="font-family:宋体;"><span style="font-size:20px;">移植过程中,遇到的问题也没记录(主要看着鸿蒙的代码,血压就会升高)</span></span></p>
<p><span style="font-family:宋体;"><span style="font-size:20px;"> 楼主已经完成鸿蒙liteos-m的ses移植,可以进行线程调度,对接了鸿蒙自身的shell组件,满足基本的开发要求。后续再加入其他组件支持。</span></span></p>
<p><span style="font-family:宋体;"><span style="font-size:20px;"> 仓库地址:https://gitee.com/RCSN/hpm6750evk2_liteos_demo</span></span></p>
<p><span style="font-family:宋体;"><span style="font-size:20px;"> 运行效果如下:</span></span></p>
<p><span style="font-family:宋体;"><span style="font-size:20px;">线程切换:</span></span></p>
<p> </p>
<p></p>
<p><span style="font-size:20px;"><span style="font-family:宋体;">shell对接: </span></span></p>
<p> </p>
<p>https://gitee.com/RCSN/hpm6750evk2_liteos_demo 仓库地址,欢迎star fork</p><br/> 更加脑出血的是编译更费资源跟空间,我就是因为编译openharmonyos换了电脑,加了内存,买了硬盘。没点实力,玩不起openharmony呀! <p>话说 鸿蒙是不是安卓的套皮啊</p>
吾妻思萌 发表于 2023-1-8 21:16
话说 鸿蒙是不是安卓的套皮啊
<p>你是用的哪个版本的segger? 我用segger编译报下面的错误</p>
<p>C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapsi2':</p>
<p>Rebuilding 'hpm6750evk2_liteos_m' from solution 'hpm6750evk2_liteos_m' in configuration 'Debug'<br />
Compiling 'main.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'main.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'main.c'<br />
implicit declaration of function 'board_print_banner' [-Wimplicit-function-declaration]<br />
implicit declaration of function 'board_print_clock_freq'; did you mean 'board_init_clock'? [-Wimplicit-function-declaration]<br />
implicit declaration of function 'LosShellInit' [-Wimplicit-function-declaration]<br />
Compiling 'los_context.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_context.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_context.h'<br />
Included From File 'los_arch_context.h'<br />
Included From File 'los_context.c'<br />
Compiling 'los_interrupt.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_interrupt.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_interrupt.c'<br />
Compiling 'los_timer.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_timer.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_timer.c'<br />
initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
Compiling 'riscv_hal.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'riscv_hal.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'riscv_hal.h'<br />
Included From File 'riscv_hal.c'<br />
Compiling 'los_backtrace.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_backtrace.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_backtrace.h'<br />
Included From File 'los_backtrace.c'<br />
Compiling 'shcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shcmdparse.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmdparse.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shmsg.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shmsg.h'<br />
Included From File 'shmsg.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'shmsg.h'<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
initialization of 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
unknown escape sequence: '\H'<br />
unknown escape sequence: '\H'<br />
Compiling 'show.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'show.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'date_shell.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'date_shell.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
'nowTime' may be used uninitialized [-Wmaybe-uninitialized]<br />
in expansion of macro 'LOS_Printf'<br />
in expansion of macro 'PRINTK'<br />
by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'ctime' declared here<br />
Included From File 'time.h'<br />
Included From File 'sched.h'<br />
Included From File '_pthreadtypes.h'<br />
'nowTime' declared here<br />
Compiling 'fullpath.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'fullpath.c'<br />
"EPERM" redefined<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'securec.h'<br />
Included From File 'fullpath.c'<br />
"ENOENT" redefined<br />
this is the location of the previous definition<br />
"ECHILD" redefined<br />
this is the location of the previous definition<br />
"EAGAIN" redefined<br />
this is the location of the previous definition<br />
"ENOMEM" redefined<br />
this is the location of the previous definition<br />
"EFAULT" redefined<br />
this is the location of the previous definition<br />
"EBUSY" redefined<br />
this is the location of the previous definition<br />
"EEXIST" redefined<br />
this is the location of the previous definition<br />
"ENODEV" redefined<br />
this is the location of the previous definition<br />
"EINVAL" redefined<br />
this is the location of the previous definition<br />
"ENOSPC" redefined<br />
this is the location of the previous definition<br />
"ESPIPE" redefined<br />
this is the location of the previous definition<br />
"EMLINK" redefined<br />
this is the location of the previous definition<br />
"EDOM" redefined<br />
this is the location of the previous definition<br />
"ERANGE" redefined<br />
this is the location of the previous definition<br />
"EDEADLK" redefined<br />
this is the location of the previous definition<br />
"ENOSYS" redefined<br />
this is the location of the previous definition<br />
"ENOMSG" redefined<br />
this is the location of the previous definition<br />
"EILSEQ" redefined<br />
this is the location of the previous definition<br />
"ENOBUFS" redefined<br />
this is the location of the previous definition<br />
"ETIMEDOUT" redefined<br />
this is the location of the previous definition<br />
"EALREADY" redefined<br />
this is the location of the previous definition<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
Compiling 'mempt_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'mempt_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shell_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shell_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'task_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'task_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'task_shellcmd.c'<br />
Compiling 'los_init.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_init.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_init.c'<br />
Compiling 'los_membox.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_membox.h'<br />
Included From File 'los_membox.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_membox.h'<br />
Compiling 'los_memory.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_memory.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_memory.h'<br />
Compiling 'los_mux.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_mux.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_mux.h'<br />
Included From File 'los_mux.c'<br />
Compiling 'los_queue.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_queue.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_queue.h'<br />
Included From File 'los_queue.c'<br />
Compiling 'los_sched.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sched.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sched.c'<br />
Compiling 'los_sem.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sem.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sem.h'<br />
Included From File 'los_sem.c'<br />
Compiling 'los_sortlink.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sortlink.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sortlink.c'<br />
Compiling 'los_swtmr.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_swtmr.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_swtmr.h'<br />
Included From File 'los_swtmr.c'<br />
Compiling 'los_task.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_task.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_task.c'<br />
Compiling 'los_tick.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_tick.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'los_tick.c'<br />
Compiling 'los_debug.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_debug.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_debug.h'<br />
Compiling 'los_hook.c'<br />
"__CONCAT" redefined<br />
Included From File 'los_hook.c'<br />
this is the location of the previous definition<br />
Included From File '__SEGGER_RTL.h'<br />
Included From File 'stdint.h'<br />
Included From File 'target_config.h'<br />
Included From File 'los_config.h'<br />
Included From File 'los_hook_types.h'<br />
Included From File 'los_hook.h'<br />
Included From File 'los_hook.c'<br />
Linking 'hpm6750evk2_liteos_m.elf'<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapsi2':<br />
intops.c:(.text.libc.__bswapsi2+0x0): multiple definition of `__bswapsi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:11: first defined here<br />
disabling relaxation; it will not work with multiple definitions<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapdi2':<br />
intops.c:(.text.libc.__bswapdi2+0x0): multiple definition of `__bswapdi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:19: first defined here<br />
Build failed, exit status 0x1<br />
Build failed</p>
<p>Rebuilding 'hpm6750evk2_liteos_m' from solution 'hpm6750evk2_liteos_m' in configuration 'Debug'<br />
Compiling 'main.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'main.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'main.c'<br />
implicit declaration of function 'board_print_banner' [-Wimplicit-function-declaration]<br />
implicit declaration of function 'board_print_clock_freq'; did you mean 'board_init_clock'? [-Wimplicit-function-declaration]<br />
implicit declaration of function 'LosShellInit' [-Wimplicit-function-declaration]<br />
Compiling 'los_context.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_context.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_context.h'<br />
Included From File 'los_arch_context.h'<br />
Included From File 'los_context.c'<br />
Compiling 'los_interrupt.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_interrupt.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_interrupt.c'<br />
Compiling 'los_timer.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_timer.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_timer.c'<br />
initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
Compiling 'riscv_hal.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'riscv_hal.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'riscv_hal.h'<br />
Included From File 'riscv_hal.c'<br />
Compiling 'los_backtrace.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_backtrace.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_backtrace.h'<br />
Included From File 'los_backtrace.c'<br />
Compiling 'shcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shcmdparse.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmdparse.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shmsg.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shmsg.h'<br />
Included From File 'shmsg.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'shmsg.h'<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
initialization of 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
unknown escape sequence: '\H'<br />
unknown escape sequence: '\H'<br />
Compiling 'show.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'show.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'date_shell.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'date_shell.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
'nowTime' may be used uninitialized [-Wmaybe-uninitialized]<br />
in expansion of macro 'LOS_Printf'<br />
in expansion of macro 'PRINTK'<br />
by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'ctime' declared here<br />
Included From File 'time.h'<br />
Included From File 'sched.h'<br />
Included From File '_pthreadtypes.h'<br />
'nowTime' declared here<br />
Compiling 'fullpath.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'fullpath.c'<br />
"EPERM" redefined<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'securec.h'<br />
Included From File 'fullpath.c'<br />
"ENOENT" redefined<br />
this is the location of the previous definition<br />
"ECHILD" redefined<br />
this is the location of the previous definition<br />
"EAGAIN" redefined<br />
this is the location of the previous definition<br />
"ENOMEM" redefined<br />
this is the location of the previous definition<br />
"EFAULT" redefined<br />
this is the location of the previous definition<br />
"EBUSY" redefined<br />
this is the location of the previous definition<br />
"EEXIST" redefined<br />
this is the location of the previous definition<br />
"ENODEV" redefined<br />
this is the location of the previous definition<br />
"EINVAL" redefined<br />
this is the location of the previous definition<br />
"ENOSPC" redefined<br />
this is the location of the previous definition<br />
"ESPIPE" redefined<br />
this is the location of the previous definition<br />
"EMLINK" redefined<br />
this is the location of the previous definition<br />
"EDOM" redefined<br />
this is the location of the previous definition<br />
"ERANGE" redefined<br />
this is the location of the previous definition<br />
"EDEADLK" redefined<br />
this is the location of the previous definition<br />
"ENOSYS" redefined<br />
this is the location of the previous definition<br />
"ENOMSG" redefined<br />
this is the location of the previous definition<br />
"EILSEQ" redefined<br />
this is the location of the previous definition<br />
"ENOBUFS" redefined<br />
this is the location of the previous definition<br />
"ETIMEDOUT" redefined<br />
this is the location of the previous definition<br />
"EALREADY" redefined<br />
this is the location of the previous definition<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
Compiling 'mempt_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'mempt_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shell_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shell_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'task_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'task_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'task_shellcmd.c'<br />
Compiling 'los_init.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_init.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_init.c'<br />
Compiling 'los_membox.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_membox.h'<br />
Included From File 'los_membox.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_membox.h'<br />
Compiling 'los_memory.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_memory.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_memory.h'<br />
Compiling 'los_mux.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_mux.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_mux.h'<br />
Included From File 'los_mux.c'<br />
Compiling 'los_queue.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_queue.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_queue.h'<br />
Included From File 'los_queue.c'<br />
Compiling 'los_sched.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sched.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sched.c'<br />
Compiling 'los_sem.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sem.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sem.h'<br />
Included From File 'los_sem.c'<br />
Compiling 'los_sortlink.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sortlink.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sortlink.c'<br />
Compiling 'los_swtmr.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_swtmr.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_swtmr.h'<br />
Included From File 'los_swtmr.c'<br />
Compiling 'los_task.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_task.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_task.c'<br />
Compiling 'los_tick.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_tick.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'los_tick.c'<br />
Compiling 'los_debug.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_debug.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_debug.h'<br />
Compiling 'los_hook.c'<br />
"__CONCAT" redefined<br />
Included From File 'los_hook.c'<br />
this is the location of the previous definition<br />
Included From File '__SEGGER_RTL.h'<br />
Included From File 'stdint.h'<br />
Included From File 'target_config.h'<br />
Included From File 'los_config.h'<br />
Included From File 'los_hook_types.h'<br />
Included From File 'los_hook.h'<br />
Included From File 'los_hook.c'<br />
Linking 'hpm6750evk2_liteos_m.elf'<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapsi2':<br />
intops.c:(.text.libc.__bswapsi2+0x0): multiple definition of `__bswapsi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:11: first defined here<br />
disabling relaxation; it will not work with multiple definitions<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapdi2':<br />
intops.c:(.text.libc.__bswapdi2+0x0): multiple definition of `__bswapdi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:19: first defined here<br />
Build failed, exit status 0x1<br />
Build failed</p>
<p>Rebuilding 'hpm6750evk2_liteos_m' from solution 'hpm6750evk2_liteos_m' in configuration 'Debug'<br />
Compiling 'main.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'main.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'main.c'<br />
implicit declaration of function 'board_print_banner' [-Wimplicit-function-declaration]<br />
implicit declaration of function 'board_print_clock_freq'; did you mean 'board_init_clock'? [-Wimplicit-function-declaration]<br />
implicit declaration of function 'LosShellInit' [-Wimplicit-function-declaration]<br />
Compiling 'los_context.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_context.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_context.h'<br />
Included From File 'los_arch_context.h'<br />
Included From File 'los_context.c'<br />
Compiling 'los_interrupt.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_interrupt.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_interrupt.c'<br />
Compiling 'los_timer.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_timer.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_timer.c'<br />
initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
Compiling 'riscv_hal.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'riscv_hal.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'riscv_hal.h'<br />
Included From File 'riscv_hal.c'<br />
Compiling 'los_backtrace.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_backtrace.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_backtrace.h'<br />
Included From File 'los_backtrace.c'<br />
Compiling 'shcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shcmdparse.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmdparse.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shmsg.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shmsg.h'<br />
Included From File 'shmsg.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'shmsg.h'<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
initialization of 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
unknown escape sequence: '\H'<br />
unknown escape sequence: '\H'<br />
Compiling 'show.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'show.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'date_shell.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'date_shell.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
'nowTime' may be used uninitialized [-Wmaybe-uninitialized]<br />
in expansion of macro 'LOS_Printf'<br />
in expansion of macro 'PRINTK'<br />
by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'ctime' declared here<br />
Included From File 'time.h'<br />
Included From File 'sched.h'<br />
Included From File '_pthreadtypes.h'<br />
'nowTime' declared here<br />
Compiling 'fullpath.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'fullpath.c'<br />
"EPERM" redefined<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'securec.h'<br />
Included From File 'fullpath.c'<br />
"ENOENT" redefined<br />
this is the location of the previous definition<br />
"ECHILD" redefined<br />
this is the location of the previous definition<br />
"EAGAIN" redefined<br />
this is the location of the previous definition<br />
"ENOMEM" redefined<br />
this is the location of the previous definition<br />
"EFAULT" redefined<br />
this is the location of the previous definition<br />
"EBUSY" redefined<br />
this is the location of the previous definition<br />
"EEXIST" redefined<br />
this is the location of the previous definition<br />
"ENODEV" redefined<br />
this is the location of the previous definition<br />
"EINVAL" redefined<br />
this is the location of the previous definition<br />
"ENOSPC" redefined<br />
this is the location of the previous definition<br />
"ESPIPE" redefined<br />
this is the location of the previous definition<br />
"EMLINK" redefined<br />
this is the location of the previous definition<br />
"EDOM" redefined<br />
this is the location of the previous definition<br />
"ERANGE" redefined<br />
this is the location of the previous definition<br />
"EDEADLK" redefined<br />
this is the location of the previous definition<br />
"ENOSYS" redefined<br />
this is the location of the previous definition<br />
"ENOMSG" redefined<br />
this is the location of the previous definition<br />
"EILSEQ" redefined<br />
this is the location of the previous definition<br />
"ENOBUFS" redefined<br />
this is the location of the previous definition<br />
"ETIMEDOUT" redefined<br />
this is the location of the previous definition<br />
"EALREADY" redefined<br />
this is the location of the previous definition<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
Compiling 'mempt_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'mempt_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shell_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shell_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'task_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'task_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'task_shellcmd.c'<br />
Compiling 'los_init.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_init.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_init.c'<br />
Compiling 'los_membox.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_membox.h'<br />
Included From File 'los_membox.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_membox.h'<br />
Compiling 'los_memory.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_memory.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_memory.h'<br />
Compiling 'los_mux.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_mux.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_mux.h'<br />
Included From File 'los_mux.c'<br />
Compiling 'los_queue.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_queue.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_queue.h'<br />
Included From File 'los_queue.c'<br />
Compiling 'los_sched.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sched.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sched.c'<br />
Compiling 'los_sem.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sem.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sem.h'<br />
Included From File 'los_sem.c'<br />
Compiling 'los_sortlink.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sortlink.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sortlink.c'<br />
Compiling 'los_swtmr.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_swtmr.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_swtmr.h'<br />
Included From File 'los_swtmr.c'<br />
Compiling 'los_task.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_task.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_task.c'<br />
Compiling 'los_tick.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_tick.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'los_tick.c'<br />
Compiling 'los_debug.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_debug.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_debug.h'<br />
Compiling 'los_hook.c'<br />
"__CONCAT" redefined<br />
Included From File 'los_hook.c'<br />
this is the location of the previous definition<br />
Included From File '__SEGGER_RTL.h'<br />
Included From File 'stdint.h'<br />
Included From File 'target_config.h'<br />
Included From File 'los_config.h'<br />
Included From File 'los_hook_types.h'<br />
Included From File 'los_hook.h'<br />
Included From File 'los_hook.c'<br />
Linking 'hpm6750evk2_liteos_m.elf'<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapsi2':<br />
intops.c:(.text.libc.__bswapsi2+0x0): multiple definition of `__bswapsi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:11: first defined here<br />
disabling relaxation; it will not work with multiple definitions<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapdi2':<br />
intops.c:(.text.libc.__bswapdi2+0x0): multiple definition of `__bswapdi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:19: first defined here<br />
Build failed, exit status 0x1<br />
Build failed</p>
<p>Rebuilding 'hpm6750evk2_liteos_m' from solution 'hpm6750evk2_liteos_m' in configuration 'Debug'<br />
Compiling 'main.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'main.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'main.c'<br />
implicit declaration of function 'board_print_banner' [-Wimplicit-function-declaration]<br />
implicit declaration of function 'board_print_clock_freq'; did you mean 'board_init_clock'? [-Wimplicit-function-declaration]<br />
implicit declaration of function 'LosShellInit' [-Wimplicit-function-declaration]<br />
Compiling 'los_context.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_context.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_context.h'<br />
Included From File 'los_arch_context.h'<br />
Included From File 'los_context.c'<br />
Compiling 'los_interrupt.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_interrupt.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_interrupt.c'<br />
Compiling 'los_timer.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_timer.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_timer.c'<br />
initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
Compiling 'riscv_hal.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'riscv_hal.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'riscv_hal.h'<br />
Included From File 'riscv_hal.c'<br />
Compiling 'los_backtrace.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_backtrace.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_backtrace.h'<br />
Included From File 'los_backtrace.c'<br />
Compiling 'shcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shcmdparse.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmdparse.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shmsg.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shmsg.h'<br />
Included From File 'shmsg.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'shmsg.h'<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
initialization of 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
unknown escape sequence: '\H'<br />
unknown escape sequence: '\H'<br />
Compiling 'show.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'show.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'date_shell.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'date_shell.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
'nowTime' may be used uninitialized [-Wmaybe-uninitialized]<br />
in expansion of macro 'LOS_Printf'<br />
in expansion of macro 'PRINTK'<br />
by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'ctime' declared here<br />
Included From File 'time.h'<br />
Included From File 'sched.h'<br />
Included From File '_pthreadtypes.h'<br />
'nowTime' declared here<br />
Compiling 'fullpath.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'fullpath.c'<br />
"EPERM" redefined<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'securec.h'<br />
Included From File 'fullpath.c'<br />
"ENOENT" redefined<br />
this is the location of the previous definition<br />
"ECHILD" redefined<br />
this is the location of the previous definition<br />
"EAGAIN" redefined<br />
this is the location of the previous definition<br />
"ENOMEM" redefined<br />
this is the location of the previous definition<br />
"EFAULT" redefined<br />
this is the location of the previous definition<br />
"EBUSY" redefined<br />
this is the location of the previous definition<br />
"EEXIST" redefined<br />
this is the location of the previous definition<br />
"ENODEV" redefined<br />
this is the location of the previous definition<br />
"EINVAL" redefined<br />
this is the location of the previous definition<br />
"ENOSPC" redefined<br />
this is the location of the previous definition<br />
"ESPIPE" redefined<br />
this is the location of the previous definition<br />
"EMLINK" redefined<br />
this is the location of the previous definition<br />
"EDOM" redefined<br />
this is the location of the previous definition<br />
"ERANGE" redefined<br />
this is the location of the previous definition<br />
"EDEADLK" redefined<br />
this is the location of the previous definition<br />
"ENOSYS" redefined<br />
this is the location of the previous definition<br />
"ENOMSG" redefined<br />
this is the location of the previous definition<br />
"EILSEQ" redefined<br />
this is the location of the previous definition<br />
"ENOBUFS" redefined<br />
this is the location of the previous definition<br />
"ETIMEDOUT" redefined<br />
this is the location of the previous definition<br />
"EALREADY" redefined<br />
this is the location of the previous definition<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
Compiling 'mempt_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'mempt_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shell_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shell_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'task_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'task_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'task_shellcmd.c'<br />
Compiling 'los_init.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_init.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_init.c'<br />
Compiling 'los_membox.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_membox.h'<br />
Included From File 'los_membox.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_membox.h'<br />
Compiling 'los_memory.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_memory.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_memory.h'<br />
Compiling 'los_mux.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_mux.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_mux.h'<br />
Included From File 'los_mux.c'<br />
Compiling 'los_queue.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_queue.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_queue.h'<br />
Included From File 'los_queue.c'<br />
Compiling 'los_sched.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sched.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sched.c'<br />
Compiling 'los_sem.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sem.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sem.h'<br />
Included From File 'los_sem.c'<br />
Compiling 'los_sortlink.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sortlink.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sortlink.c'<br />
Compiling 'los_swtmr.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_swtmr.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_swtmr.h'<br />
Included From File 'los_swtmr.c'<br />
Compiling 'los_task.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_task.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_task.c'<br />
Compiling 'los_tick.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_tick.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'los_tick.c'<br />
Compiling 'los_debug.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_debug.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_debug.h'<br />
Compiling 'los_hook.c'<br />
"__CONCAT" redefined<br />
Included From File 'los_hook.c'<br />
this is the location of the previous definition<br />
Included From File '__SEGGER_RTL.h'<br />
Included From File 'stdint.h'<br />
Included From File 'target_config.h'<br />
Included From File 'los_config.h'<br />
Included From File 'los_hook_types.h'<br />
Included From File 'los_hook.h'<br />
Included From File 'los_hook.c'<br />
Linking 'hpm6750evk2_liteos_m.elf'<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapsi2':<br />
intops.c:(.text.libc.__bswapsi2+0x0): multiple definition of `__bswapsi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:11: first defined here<br />
disabling relaxation; it will not work with multiple definitions<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapdi2':<br />
intops.c:(.text.libc.__bswapdi2+0x0): multiple definition of `__bswapdi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:19: first defined here<br />
Build failed, exit status 0x1<br />
Build failed</p>
<p>Rebuilding 'hpm6750evk2_liteos_m' from solution 'hpm6750evk2_liteos_m' in configuration 'Debug'<br />
Compiling 'main.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'main.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'main.c'<br />
implicit declaration of function 'board_print_banner' [-Wimplicit-function-declaration]<br />
implicit declaration of function 'board_print_clock_freq'; did you mean 'board_init_clock'? [-Wimplicit-function-declaration]<br />
implicit declaration of function 'LosShellInit' [-Wimplicit-function-declaration]<br />
Compiling 'los_context.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_context.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_context.h'<br />
Included From File 'los_arch_context.h'<br />
Included From File 'los_context.c'<br />
Compiling 'los_interrupt.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_interrupt.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_interrupt.c'<br />
Compiling 'los_timer.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_timer.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_timer.c'<br />
initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]<br />
Compiling 'riscv_hal.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'riscv_hal.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'riscv_hal.h'<br />
Included From File 'riscv_hal.c'<br />
Compiling 'los_backtrace.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_backtrace.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_backtrace.h'<br />
Included From File 'los_backtrace.c'<br />
Compiling 'shcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shcmdparse.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shcmdparse.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shmsg.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shmsg.h'<br />
Included From File 'shmsg.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'shmsg.h'<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
initialization of 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
unknown escape sequence: '\H'<br />
unknown escape sequence: '\H'<br />
Compiling 'show.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'show.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'date_shell.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'date_shell.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
'nowTime' may be used uninitialized [-Wmaybe-uninitialized]<br />
in expansion of macro 'LOS_Printf'<br />
in expansion of macro 'PRINTK'<br />
by argument 1 of type 'const time_t *' {aka 'const long int *'} to 'ctime' declared here<br />
Included From File 'time.h'<br />
Included From File 'sched.h'<br />
Included From File '_pthreadtypes.h'<br />
'nowTime' declared here<br />
Compiling 'fullpath.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'fullpath.c'<br />
"EPERM" redefined<br />
Included From File 'fullpath.c'<br />
this is the location of the previous definition<br />
Included From File 'securec.h'<br />
Included From File 'fullpath.c'<br />
"ENOENT" redefined<br />
this is the location of the previous definition<br />
"ECHILD" redefined<br />
this is the location of the previous definition<br />
"EAGAIN" redefined<br />
this is the location of the previous definition<br />
"ENOMEM" redefined<br />
this is the location of the previous definition<br />
"EFAULT" redefined<br />
this is the location of the previous definition<br />
"EBUSY" redefined<br />
this is the location of the previous definition<br />
"EEXIST" redefined<br />
this is the location of the previous definition<br />
"ENODEV" redefined<br />
this is the location of the previous definition<br />
"EINVAL" redefined<br />
this is the location of the previous definition<br />
"ENOSPC" redefined<br />
this is the location of the previous definition<br />
"ESPIPE" redefined<br />
this is the location of the previous definition<br />
"EMLINK" redefined<br />
this is the location of the previous definition<br />
"EDOM" redefined<br />
this is the location of the previous definition<br />
"ERANGE" redefined<br />
this is the location of the previous definition<br />
"EDEADLK" redefined<br />
this is the location of the previous definition<br />
"ENOSYS" redefined<br />
this is the location of the previous definition<br />
"ENOMSG" redefined<br />
this is the location of the previous definition<br />
"EILSEQ" redefined<br />
this is the location of the previous definition<br />
"ENOBUFS" redefined<br />
this is the location of the previous definition<br />
"ETIMEDOUT" redefined<br />
this is the location of the previous definition<br />
"EALREADY" redefined<br />
this is the location of the previous definition<br />
implicit declaration of function 'LOS_MemAlloc' [-Wimplicit-function-declaration]<br />
assignment to 'CHAR *' {aka 'char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]<br />
implicit declaration of function 'LOS_MemFree' [-Wimplicit-function-declaration]<br />
Compiling 'mempt_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'mempt_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'shell_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'shell_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File '_pthreadtypes.h'<br />
Included From File 'shell.h'<br />
Included From File 'show.h'<br />
Compiling 'task_shellcmd.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'show.h'<br />
Included From File 'shcmdparse.h'<br />
Included From File 'shcmd.h'<br />
Included From File 'task_shellcmd.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'task_shellcmd.c'<br />
Compiling 'los_init.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_init.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_arch.h'<br />
Included From File 'los_init.c'<br />
Compiling 'los_membox.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_membox.h'<br />
Included From File 'los_membox.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_membox.h'<br />
Compiling 'los_memory.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_memory.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_memory.h'<br />
Compiling 'los_mux.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_mux.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_mux.h'<br />
Included From File 'los_mux.c'<br />
Compiling 'los_queue.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_queue.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_queue.h'<br />
Included From File 'los_queue.c'<br />
Compiling 'los_sched.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sched.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sched.c'<br />
Compiling 'los_sem.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sem.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sem.h'<br />
Included From File 'los_sem.c'<br />
Compiling 'los_sortlink.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_sortlink.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_sched.h'<br />
Included From File 'los_sortlink.c'<br />
Compiling 'los_swtmr.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_memory.h'<br />
Included From File 'los_swtmr.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_swtmr.h'<br />
Included From File 'los_swtmr.c'<br />
Compiling 'los_task.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_task.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_task.h'<br />
Included From File 'los_task.c'<br />
Compiling 'los_tick.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_tick.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_interrupt.h'<br />
Included From File 'los_timer.h'<br />
Included From File 'los_tick.h'<br />
Included From File 'los_tick.c'<br />
Compiling 'los_debug.c'<br />
"LOSCFG_KERNEL_PRINTF" redefined<br />
Included From File 'los_debug.c'<br />
this is the location of the previous definition<br />
Included From File 'los_config.h'<br />
Included From File 'los_debug.h'<br />
Compiling 'los_hook.c'<br />
"__CONCAT" redefined<br />
Included From File 'los_hook.c'<br />
this is the location of the previous definition<br />
Included From File '__SEGGER_RTL.h'<br />
Included From File 'stdint.h'<br />
Included From File 'target_config.h'<br />
Included From File 'los_config.h'<br />
Included From File 'los_hook_types.h'<br />
Included From File 'los_hook.h'<br />
Included From File 'los_hook.c'<br />
Linking 'hpm6750evk2_liteos_m.elf'<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapsi2':<br />
intops.c:(.text.libc.__bswapsi2+0x0): multiple definition of `__bswapsi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:11: first defined here<br />
disabling relaxation; it will not work with multiple definitions<br />
C:/Program Files/SEGGER/SEGGER Embedded Studio 8.16a/lib/libc_rv32imac_balanced.a(intops.o): in function `__bswapdi2':<br />
intops.c:(.text.libc.__bswapdi2+0x0): multiple definition of `__bswapdi2'; Output/Debug/Obj/hpm6750evk2_liteos_m/hpm_swap.o:C:\Users\QD\Downloads\hpm6750evk2_liteos_demo-master\hpm_sdk\utils/hpm_swap.c:19: first defined here<br />
Build failed, exit status 0x1<br />
Build failed</p>
<p> </p>
页:
[1]