mplab

Linker file unselected

試著忘記壹切 提交于 2019-12-04 06:21:25
问题 I am dealing with a problem in my application with the linker file. What's happening is in the explorer tab it seems the linker file it's not "selected" I have to refer that I also have a bootloader. I'm getting an error of "(944) data conflict at address 1FC02FF8h" and I think it's related with that. Can anyone help me on that? Many Thanks. 回答1: Right click your linker files folder and make sure that the file is not excluded in your current config. Edit: Right Click "Linker Files"-

Free alternative to MPLAB (PIC development)

穿精又带淫゛_ 提交于 2019-12-03 16:16:20
问题 I started using MPLAB recently, but for someone that works with Eclipse and VS the IDE it's very limited. Do you know any free IDE or how to configure Ecplise or Netbeans to PIC development? Thanks all 回答1: The underlying toolchain (compiler/linker etc.) can be used from any environment including Eclipse and Visual Studio, though Eclipse is probably the more flexible in this respect. MPLAB has a feature to export a project as a makefile that can be used with GNU make, although you may rather

Free alternative to MPLAB (PIC development)

拈花ヽ惹草 提交于 2019-12-03 05:24:31
I started using MPLAB recently, but for someone that works with Eclipse and VS the IDE it's very limited. Do you know any free IDE or how to configure Ecplise or Netbeans to PIC development? Thanks all The underlying toolchain (compiler/linker etc.) can be used from any environment including Eclipse and Visual Studio, though Eclipse is probably the more flexible in this respect. MPLAB has a feature to export a project as a makefile that can be used with GNU make, although you may rather generate your own makefile, or use the project management provided by Eclipse. In Visual Studio, create a

Linker file unselected

百般思念 提交于 2019-12-02 09:21:44
I am dealing with a problem in my application with the linker file. What's happening is in the explorer tab it seems the linker file it's not "selected" I have to refer that I also have a bootloader. I'm getting an error of "(944) data conflict at address 1FC02FF8h" and I think it's related with that. Can anyone help me on that? Many Thanks. Right click your linker files folder and make sure that the file is not excluded in your current config. Edit: Right Click "Linker Files"->Properties 来源: https://stackoverflow.com/questions/32049728/linker-file-unselected

Return statement in an infinite loop

北慕城南 提交于 2019-12-02 04:06:30
问题 Where does this return statement return to if it is inside this infinite while(1) loop? More importantly, I had no idea that a while(1) loop could be broken??? void __attribute__((interrupt, no_auto_psv)) _T3Interrupt(void) { int count; IFS0bits.T3IF = 0; // clear Tmr3 interrupt flag StopMotor(); IEC0bits.ADIE = 0; // disable ADC interrupt IEC0bits.CNIE = 0; // disable CN interrupt IEC0bits.T3IE = 0; // disable Tmr3 interrupt T3CONbits.TON = 1; // restart tmr3 count = 0; while (1) { if

Return statement in an infinite loop

馋奶兔 提交于 2019-12-02 01:28:31
Where does this return statement return to if it is inside this infinite while(1) loop? More importantly, I had no idea that a while(1) loop could be broken??? void __attribute__((interrupt, no_auto_psv)) _T3Interrupt(void) { int count; IFS0bits.T3IF = 0; // clear Tmr3 interrupt flag StopMotor(); IEC0bits.ADIE = 0; // disable ADC interrupt IEC0bits.CNIE = 0; // disable CN interrupt IEC0bits.T3IE = 0; // disable Tmr3 interrupt T3CONbits.TON = 1; // restart tmr3 count = 0; while (1) { if (IFS0bits.T3IF) { IFS0bits.T3IF = 0; // clear flag if (count++ >= RESTART_COUNT) { IEC0bits.ADIE = 1; //

shared_ptr without RTTI?

岁酱吖の 提交于 2019-12-01 16:44:42
问题 Im trying to use shared_ptr in an embedded project which is build with xc32 1.34 (a derivative of gcc 4.5.2). The project has RTTI disabled with -fno-rtti . #include <memory> Just including the header gives me the following errors: /Applications/microchip/xc32/v1.34/bin/bin/../../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/include/Cpp/memory: In member function 'virtual void* std::tr1::_Ref_count_del<_Ty, _Dx>::_Get_deleter(const std::type_info&) const': In file included from APP/MODULES/LIGHT

shared_ptr without RTTI?

情到浓时终转凉″ 提交于 2019-12-01 16:30:42
Im trying to use shared_ptr in an embedded project which is build with xc32 1.34 (a derivative of gcc 4.5.2). The project has RTTI disabled with -fno-rtti . #include <memory> Just including the header gives me the following errors: /Applications/microchip/xc32/v1.34/bin/bin/../../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/include/Cpp/memory: In member function 'virtual void* std::tr1::_Ref_count_del<_Ty, _Dx>::_Get_deleter(const std::type_info&) const': In file included from APP/MODULES/LIGHT_MANAGER/LightManager.cpp:13:0: /Applications/microchip/xc32/v1.34/bin/bin/../../lib/gcc/pic32mx/4.5.2/.