问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - 编译
  • 为什么我安装的后编译会这样 sos

    [i=s] 本帖最后由 tyw 于 2024-4-19 14:36 编辑 [/i] .\Objects\123.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST. [attach]2243392[/attach] [size=2][color=#ffffff][backcolor=purple] tyw 注[/backcolor][/color][/size]

    ST TI AC se 编译 安装

    712浏览量 0回复量 关注量
  • G32F103C8优化编译无法运行 sos

    (1)优化等级0,编译之后下载运行正常;(2)优化等级1、2、3,编译正常,下载之后无法运行; (3)keil5.26和keil5.33都是这样的:

    编译 keil keil5

    1314浏览量 0回复量 关注量
  • HT32F57341仿真时出现这个,编译无错 sos

    Load "C:\\Users\\hppen\\Desktop\\HT32Fxx\\example\\GPIO\\InputOutput\\MDK_ARMv5\\Obj\\HT32.axf" Cannot access Memory ([url=home.php?mod=space&uid=72445]@[/url] 0x00000000, Write, Acc Size: 4 Byte) Cannot access Memory (@ 0x00001000, Write, Acc Size: 4 Byte) *** error 57: illegal address (0x00001000) Include "C:\\Users\\hppen\\Desktop\\HT32Fxx\\example\\GPIO\\InputOutput\\MDK_ARMv5\\HT32F5xxxx_01_DebugSupport.ini" /*----------------------------------------------------------------------------------------------------------*/ /* Holtek Semiconductor Inc. */ /* */ /* Copyright (C) Holtek Semiconductor Inc. */ /* All rights reserved. */ /* */ /*------------------------------------------------------------------------------------------------------------ File Name : HT32F5xxxx_01_DebugSupport.ini Version : V1.03 Date : 2019-07-08 Description : Debug Support Initialization file. ------------------------------------------------------------------------------------------------------------*/ // Supported Device // ======================================== // HT32F5xxxx // <<< Use Configuration Wizard in Context Menu >>> FUNC void DebugSupport (void) { // Configure MCU Debug Control Register // Debug Sleep Mode (DBSLP) // LDO = On, FCLK = On, and HCLK = On in Sleep mode // Debug Deep-Sleep Mode 1 (DBDSLP1) // LDO = On, FCLK = On, and HCLK = On in Deep-Sleep mode 1 // Debug Deep-Sleep Mode 2 (DBDSLP2) // LDO = On, FCLK = On, and HCLK = On in Deep-Sleep mode 2 // Debug Power-Down Mode (DBPD) // LDO = On, FCLK = On, and HCLK = On in Power-Down mode // WDT Debug Mode Enable (DBWDT) // WDT Timer counter is stopped when the core is halted // MCTM0 Debug Mode Enable (DBMCTM0) // MCTM0 Timer counter is stopped when the core is halted // GPTM0 Debug Mode Enable (DBGPTM0) // GPTM0 Timer counter is stopped when the core is halted // GPTM1 Debug Mode Enable (DBGPTM1) // GPTM1 Timer counter is stopped when the core is halted // USART0 Debug Mode Enable (DBUSART0) // USART0 Rx FIFO timeout counter is stopped when the core is halted // USART1 Debug Mode Enable (DBUSART1) // USART1 Rx FIFO timeout counter is stopped when the core is halted // UART0 Debug Mode Enable (DBUART0) // UART0 Rx FIFO timeout counter is stopped when the core is halted // UART1 Debug Mode Enable (DBUART1) // UART1 Rx FIFO timeout counter is stopped when the core is halted // UART2 Debug Mode Enable (DBUART2) // UART2 Rx FIFO timeout counter is stopped when the core is halted // UART3 Debug Mode Enable (DBUART3) // UART3 Rx FIFO timeout counter is stopped when the core is halted // SPI0 Debug Mode Enable (DBSPI0) // SPI0 Rx FIFO timeout counter is stopped when the core is halted // SPI1 Debug Mode Enable (DBSPI1) // SPI1 Rx FIFO timeout counter is stopped when the core is halted // I2C0 Debug Mode Enable (DBI2C0) // I2C0 timeout counter is stopped when the core is halted // I2C1 Debug Mode Enable (DBI2C1) // I2C1 timeout counter is stopped when the core is halted // I2C2 Debug Mode Enable (DBI2C2) // I2C2 timeout counter is stopped when the core is halted // SCI0 Debug Mode Enable (DBSCI0) // SCI0 Waiting Time counter is stopped when the core is halted // SCI1 Debug Mode Enable (DBSCI1) // SCI1 Waiting Time counter is stopped when the core is halted // BFTM0 Debug Mode Enable (DBBFTM0) // BFTM0 Timer counter is stopped when the core is halted // BFTM1 Debug Mode Enable (DBBFTM1) // BFTM1 Timer counter is stopped when the core is halted // SCTM0 Debug Mode Enable (DBSCTM0) // SCTM0 Timer counter is stopped when the core is halted // SCTM1 Debug Mode Enable (DBSCTM1) // SCTM1 Timer counter is stopped when the core is halted // SCTM2 Debug Mode Enable (DBSCTM2) // SCTM2 Timer counter is stopped when the core is halted // SCTM3 Debug Mode Enable (DBSCTM3) // SCTM3 Timer counter is stopped when the core is halted // PWM0 Debug Mode Enable (DBPWM0) // PWM0 counter is stopped when the core is halted // PWM1 Debug Mode Enable (DBPWM1) // PWM1 counter is stopped when the core is halted // if (0) { _WDWORD(0x40088304, 0x00000000); } } DebugSupport(); /*----------------------------------------------------------------------------------------------------------*/ /* Uncomment to debug stack/heap underflow, overflow, and overwrite */ /*----------------------------------------------------------------------------------------------------------*/ //BS Write __HT_check_sp, 2 //BS Write __HT_check_heap, 2 /*----------------------------------------------------------------------------------------------------------*/ /* Load debug symbol */ /*----------------------------------------------------------------------------------------------------------*/ //LOAD %L INCREMENTAL

    仿真 编译 TE UG BUG

    1205浏览量 0回复量 关注量
  • 关于Cortex-M4内核的中断入栈过程以及栈帧的问题 sos

    [color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]在看Cortex-M3和Cortex-M4内核权威指南这本书的时候,发现了“栈帧”这个概念。我从书上理解的是:中断来临后会将内部寄存器以及内部特殊寄存器进行入栈,入栈的寄存器是固定的那几个,反正就是八个字大小(包含浮点寄存器的情况是26个字),但是我在一个stm32f407的带定时器中断的简单例程进debug看了下汇编代码。发现了不管是子函数调用还是跳转到中断服务函数,入栈保存的数据根本就不是权威指南说的8个字或者26个字,而是只入栈要跳转的函数中会被改变的内部寄存器,所以就又不懂“栈帧”了。难道是这里说的“栈帧”仅仅是为了服务RTOS等嵌入式操作系统定义的么?为了能更方便的从栈中提取到自己想要的内部寄存器的值,利用栈帧规定好每个位置保存的是哪个寄存器的值?也就是说自己写的裸机程序编译器只会把需要保存的寄存器保存,不会改变的寄存器直接不保存?[/size][/font][/backcolor][/color] [color=#444444][backcolor=rgb(222, 240, 251)][font=Tahoma, "][size=16px]不知道我说的清不清楚,希望懂得老哥们能给小弟答疑解惑!先谢为敬[/size][/font][/backcolor][/color]

    内核 Cortex-M4 寄存器 函数 编译

    6790浏览量 0回复量 关注量
  • 关于Cortex-M4内核的中断入栈过程以及栈帧的问题 sos

    在看Cortex-M3和Cortex-M4内核权威指南这本书的时候,发现了“栈帧”这个概念。我从书上理解的是:中断来临后会将内部寄存器以及内部特殊寄存器进行入栈,入栈的寄存器是固定的那几个,反正就是八个字大小(包含浮点寄存器的情况是26个字),但是我在一个stm32f407的带定时器中断的简单例程进debug看了下汇编代码。发现了不管是子函数调用还是跳转到中断服务函数,入栈保存的数据根本就不是权威指南说的8个字或者26个字,而是只入栈要跳转的函数中会被改变的内部寄存器,所以就又不懂“栈帧”了。难道是这里说的“栈帧”仅仅是为了服务RTOS等嵌入式操作系统定义的么?为了能更方便的从栈中提取到自己想要的内部寄存器的值,利用栈帧规定好每个位置保存的是哪个寄存器的值?也就是说自己写的裸机程序编译器只会把需要保存的寄存器保存,不会改变的寄存器直接不保存? 不知道我说的清不清楚,希望懂得老哥们能给小弟答疑解惑!先谢为敬[img]https://bbs.21ic.com/static/image/smiley/comcom/4.gif[/img]

    内核 Cortex-M4 寄存器 函数 编译

    1117浏览量 0回复量 关注量
  • XC32对于const数组编译问题

    typedef struct { unsigned char Ind[2]; char Mss[32]; }typFNT_GB16; const typFNT_GB16 tfont16[]={ "深",0x00,0x00,0x27,0xFC,0x14,0x04,0x14,0xA4,0x81,0x10,0x42,0x08,0x40,0x40,0x10,0x40, 0x17,0xFC,0x20,0x40,0xE0,0xE0,0x21,0x50,0x22,0x48,0x2C,0x46,0x20,0x40,0x00,0x40,/*0*/ }; 上面这个数组,XC16编译器可以编译通过。没有问题。 XC32编译器编译不能通过。 开发环境 MPLAB X IDE 5.45. XC32: 2.50 使用harmony3. XC32提示如下: In file included from ../src/myCode/lcd/gui.c:4:0: ../src/myCode/lcd/font.h:217:5: error: missing braces around initializer [-Werror=missing-braces] {"??",0x00,0x00,0x27,0xFC,0x14,0x04,0x14,0xA4,0x81,0x10,0x42,0x08,0x40,0x40,0x10,0x40, nbproject/Makefile-default.mk:370: recipe for target 'build/default/production/_ext/1784247729/gui.o' failed ^ make[2]: Leaving directory 'D:/1111/FWS/KEY5/KEY5_LCD/V6_PIC32MZ/CODE/PIC32_H/firmware/PIC32MZ.X' ../src/myCode/lcd/font.h:217:5: error: (near initialization for 'tfont16[0].Msk') [-Werror=missing-braces] cc1.exe: all warnings being treated as errors nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed make[2]: *** [build/default/production/_ext/1784247729/gui.o] Error 255 make[1]: Leaving directory 'D:/1111/FWS/KEY5/KEY5_LCD/V6_PIC32MZ/CODE/PIC32_H/firmware/PIC32MZ.X' make[1]: *** [.build-conf] Error 2 nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 6s) 百度了一下,error: missing braces around initializer 加了大括号。 const typFNT_GB16 tfont16[]={ {"深",0x00,0x00,0x27,0xFC,0x14,0x04,0x14,0xA4,0x81,0x10,0x42,0x08,0x40,0x40,0x10,0x40, 0x17,0xFC,0x20,0x40,0xE0,0xE0,0x21,0x50,0x22,0x48,0x2C,0x46,0x20,0x40,0x00,0x40,/*0*/ } }; 还是不行,编译不通过。 哪位大神可以指导一下,这是什么原因啊?

    编译 ui TI pi

    1184浏览量 1回复量 关注量
  • 为arduino uno 板子编译时出错

    今天不知道为什么,无论弄什么代码都编译不了,就是使用示例中的代码也显示同样的错误。错误如下: avr-gcc: error: @C:\WINDOWS\TEMP\cc0MBmKn: Invalid argument avr-gcc: fatal error: no input files compilation terminated. lto-wrapper.exe: fatal error: D:\soft\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status compilation terminated. d:/soft/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed collect2.exe: error: ld returned 1 exit status exit status 1 为开发板 Arduino Uno 编译时出错。

    Arduino 编译 AVR vr TE

    3376浏览量 3回复量 关注量
  • 兆易创新的 GD32 MCU 一些入门问题请教

    兆易创新的 GD32 MCU 用的代码运行的是什么系统? 编译器是什么? 有相关指导编译环境搭建的文档吗? 打算用它做一款手表, 待机功耗多大。 有官方人员电话请告知一下

    MCU 兆易创新 编译 代码 手表

    1538浏览量 3回复量 关注量
  • GD23VF103CB在Linux使用dfu-util烧录成功,按复位后无效果 sos

    GD23VF103CB win下编译出来的bin文件,在win下可以用dfu工具烧录,在Linux使用dfu-util烧录成功,按复位后无效果 尝试dfu-util https://github.com/riscv-mcu/gd32-dfu-utils 烧录命令 sudo ./dfu-util -a 0 -D ./firmware.bin -s 0x08000000 可以烧录,但是无效果 尝试apt-get install dfu-util sudo dfu-util -a 0 -D ./firmware.bin -s 0x08000000 可以烧录,但是无效果 使用sipeeed下载的编译好的dfu-util http://dl.sipeed.com/LONGAN/platformio/dl-packages 可以烧录,但是无效果

    TI 烧录 linux FIR 编译

    3129浏览量 0回复量 关注量
  • 仿真器的选择

    [i=s] 本帖最后由 cjw348352 于 2021-1-28 11:22 编辑 [/i] AC7801如果用KEIL的编译器建议用哪种仿真器,现在手上有ST_LINK,PE,感觉PE_MULTI对KEIL的支持不是很好。其它的好用的有哪些仿真器,尽量便宜一些的。

    仿真器 keil link Multi 编译

    4473浏览量 8回复量 关注量
  • 有对dsPIC30F6010A汇编熟悉的吗?

    请问论坛里有能够阅读dsPIC30F6010A反编译出来的汇编的吗?有的话请回贴或发私信,北京的最好。有偿的哦。

    汇编 dspic30f6010a 编译 反编译

    484浏览量 1回复量 关注量
  • SCS的examples在CCS中的编译问题

    在CCS中导入了SCS中的uart Emulator项目之后,进行编译,会出现报错:#1965 cannot open source file "ti/boards/CC26X2R1_LAUNCHXL/Board.h" 请问该如何解决,谢谢

    编译 Examples ccs board Emulator

    7213浏览量 1回复量 关注量
  • 编译错误是什莫原因undefined identifier "OPTION"

    我在编译12f683编译时出现 undefined identifier "GODONE" undefined identifier "OPTION" 代码的逻辑没有错误,这个是什莫原因

    define OPTION 编译 ident 代码

    711浏览量 3回复量 关注量
  • 部分中文没有 求助MPLAB X IDE 新建工程出现的编译问题

    [i=s] 本帖最后由 hsxs 于 2020-11-10 10:33 编辑 [/i] 之前没有接触过PIC的单片机 因为工作的需要,使用PIC12LF1501, 今天查了一遍网上的教程, 安装好IDE和 编译器之后, 新建了一下工程, 编译始终出现这个问题,换过老的版本V5.00,也是这个样子 [attach]1568446[/attach] [attach]1568444[/attach] CLEAN SUCCESSFUL (total time: 25ms) make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'D:/PIC/demo/demo.X' make -f nbproject/Makefile-default.mk dist/default/production/demo.X.production.hex make[2]: Entering directory 'D:/PIC/demo/demo.X' "C:\Program Files\Microchip\xc8\v2.31\bin\xc8-cc.exe" -mcpu=12LF1501 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -I"C:/Program Files/Microchip/xc8/v2.31/pic/include" -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/main.p1 main.c make[2]: *** [build/default/production/main.p1] Error 1 terminate called after throwing an instance of 'std::invalid_argument' make[1]: *** [.build-conf] Error 2 what(): No such file or directory make: *** [.build-impl] Error 2 error: clang frontend command failed with exit code 3 (use -v to see invocation) (908) exit status = 1 nbproject/Makefile-default.mk:105: recipe for target 'build/default/production/main.p1' failed make[2]: Leaving directory 'D:/PIC/demo/demo.X' nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed make[1]: Leaving directory 'D:/PIC/demo/demo.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed BUILD FAILED (exit value 2, total time: 1s)

    IDE mplab 编译 Fault default

    1481浏览量 14回复量 关注量
  • MS51FB9AE 这个代替003的 KEIL驱动包哪里有

    KEIL上找不到这个料 无法编译

    keil s51 编译

    1007浏览量 1回复量 关注量
123下一页