问答

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

21ic问答首页 - TAG - Fault
  • GD32F150执行nvic_irq_enable时死机

    GD32F150使用Keil编写程序时,调用nvic_irq_enable使能任何中断都会导致HardFault_Handler异常,跟踪到nvic_irq_enable函数内发现只要访问SCB寄器就会导致异常,请问这是什么原因?Fault Reports中显示PRECISERR和BFARVALID故障,SCB->BFAR=0xE000ED0C

    GD32F150 ic vi BLE Fault

    2313浏览量 2回复量 关注量
  • 部分中文没有 求助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

    2014浏览量 14回复量 关注量