Jump to content
 

Anantha Krishnan

New Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Anantha Krishnan

  • Rank
    Newbie
  1. 1. Trying out MPLabX5.5 with Using the MPLAB-X Simulator to debug UART code - What every embedded programmer should know about ... - microforum.cc.html 2. Extracted the SimulatorUART.zip file,opened the project 2.1. 2.2. Upgrade 2.3. 2.4. 2.5. MCC 2.6. 2.7 Debug make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'D:/Software/Microchip/SimulatorAndUART/SimulatorUART-WhatEveryoneShoulKnowEtc/SimulatorUART.X' make -f nbproject/Makefile-default.mk dist/default/debug/SimulatorUART.X.debug.elf make[2]: Entering directory 'D:/Software/Microchip/SimulatorAndUART/SimulatorUART-WhatEveryoneShoulKnowEtc/SimulatorUART.X' "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -c -D__DEBUG=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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/debug/mcc_generated_files/device_config.p1 mcc_generated_files/device_config.c "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -c -D__DEBUG=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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/debug/mcc_generated_files/eusart.p1 mcc_generated_files/eusart.c "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -c -D__DEBUG=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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/debug/mcc_generated_files/interrupt_manager.p1 mcc_generated_files/interrupt_manager.c "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -c -D__DEBUG=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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/debug/mcc_generated_files/mcc.p1 mcc_generated_files/mcc.c "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -c -D__DEBUG=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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/debug/mcc_generated_files/pin_manager.p1 mcc_generated_files/pin_manager.c "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -c -D__DEBUG=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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/debug/main.p1 main.c Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 "D:\Programs\xc8\v2.32\bin\xc8-cc.exe" -mcpu=16F18875 -Wl,-Map=dist/default/debug/SimulatorUART.X.debug.map -D__DEBUG=1 -DXPRJ_default=default -Wl,--defsym=__MPLAB_BUILD=1 -mdfp="D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -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 -Wl,--memorysummary,dist/default/debug/memoryfile.xml -o dist/default/debug/SimulatorUART.X.debug.elf build/default/debug/mcc_generated_files/eusart.p1 build/default/debug/mcc_generated_files/device_config.p1 build/default/debug/mcc_generated_files/interrupt_manager.p1 build/default/debug/mcc_generated_files/mcc.p1 build/default/debug/mcc_generated_files/pin_manager.p1 build/default/debug/main.p1 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 mcc_generated_files/eusart.c:113:: warning: (520) function "_EUSART_is_tx_ready" is never called mcc_generated_files/eusart.c:118:: warning: (520) function "_EUSART_is_rx_ready" is never called mcc_generated_files/eusart.c:123:: warning: (520) function "_EUSART_is_tx_done" is never called mcc_generated_files/eusart.c:171:: warning: (520) function "_getch" is never called mcc_generated_files/pin_manager.c:124:: warning: (520) function "_PIN_MANAGER_IOC" is never called Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 186 Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "D:/Programs/Microchip/MPLABX/v5.50/packs/Microchip/PIC16F1xxxx_DFP/1.7.146/xc8\pic\dat\ini\16f18875.ini" at line 195 Memory Summary: Program space used 27Dh ( 637) of 2000h words ( 7.8%) Data space used 94h ( 148) of 400h bytes ( 14.5%) EEPROM space used 0h ( 0) of 100h bytes ( 0.0%) Configuration bits used 5h ( 5) of 5h words (100.0%) ID Location space used 0h ( 0) of 4h bytes ( 0.0%) make[2]: Leaving directory 'D:/Software/Microchip/SimulatorAndUART/SimulatorUART-WhatEveryoneShoulKnowEtc/SimulatorUART.X' make[1]: Leaving directory 'D:/Software/Microchip/SimulatorAndUART/SimulatorUART-WhatEveryoneShoulKnowEtc/SimulatorUART.X' BUILD SUCCESSFUL (total time: 6s) Loading symbols from D:/Software/Microchip/SimulatorAndUART/SimulatorUART-WhatEveryoneShoulKnowEtc/SimulatorUART.X/dist/default/debug/SimulatorUART.X.debug.elf... Loading code from D:/Software/Microchip/SimulatorAndUART/SimulatorUART-WhatEveryoneShoulKnowEtc/SimulatorUART.X/dist/default/debug/SimulatorUART.X.debug.elf... Program loaded with pack,PIC16F1xxxx_DFP,1.7.146,Microchip Loading completed 2.7. Output-Simulator Tab W0106-SIM: This device only has partial support for use internal oscillator as timer clock slection peripheral. not implemented W0106-SIM: This device only has partial support for use internal oscillator as timer clock slection peripheral. not implemented W0106-SIM: This device only has partial support for use internal oscillator as timer clock slection peripheral. not implemented Resetting SFRs Resetting peripherals Resetting SFRs Resetting peripherals Running 2.8. 2.9. Stimulus>GreenButton 2.10. 2.11. UART1 output no change 2.12. Stimulus- 2.13. 2.14. Applied Stimulus 3 times 2.15. Each time “Synchronous Stimulus Applied Successfully” and "Stimulus removed..." message, 2.16. But no change in UART1 output. 2.17. And Output>Simulator shows 2.18. W0106-SIM: This device only has partial support for use internal oscillator as timer clock slection peripheral. not implemented 2.19. W0106-SIM: This device only has partial support for use internal oscillator as timer clock slection peripheral. not implemented 2.20. W0106-SIM: This device only has partial support for use internal oscillator as timer clock slection peripheral. not implemented Resetting SFRs Resetting peripherals Resetting SFRs Resetting peripherals Running E0108-SIM: Failed simulator operation: java.lang.NullPointerException com.microchip.mplab.mdbcore.simulator.pic16.peripherals.UART.RxUART.processPacketInjection(RxUART.java:132) com.microchip.mplab.mdbcore.simulator.pic16.peripherals.UART.RxUART$UARTRxInjectionListener.notify(RxUART.java:120) com.microchip.mplab.mdbcore.simulator.scl.RegisterInjectionDefault.addValues(RegisterInjectionDefault.java:123) com.microchip.mplab.mdbcore.simulator.scl.Instruction.executePacketIn(Instruction.java:1336) com.microchip.mplab.mdbcore.simulator.scl.Instruction.executeCall(Instruction.java:922) com.microchip.mplab.mdbcore.simulator.scl.Instruction.execute(Instruction.java:321) com.microchip.mplab.mdbcore.simulator.scl.Process.run(Process.java:166) com.microchip.mplab.mdbcore.simulator.scl.SCLDefault.run(SCLDefault.java:275) com.microchip.mplab.mdbcore.simulator.scl.SCLDefault.run(SCLDefault.java:291) com.microchip.mplab.mdbcore.simulator.pic16.ProcessorMidRange$RunExecution.stepInstruction(ProcessorMidRange.java:389) com.microchip.mplab.mdbcore.simulator.pic16.ProcessorMidRange.executeInstruction(ProcessorMidRange.java:262) com.microchip.mplab.mdbcore.simulator.pic16.ProcessorMidRange.singleStep(ProcessorMidRange.java:448) com.microchip.mplab.mdbcore.simulator.Simulator.RunTarget(Simulator.java:339) com.microchip.mplab.mdbcore.debugger.MCDebugger$1.run(MCDebugger.java:576) java.lang.Thread.run(Thread.java:748) 2.21. 3. 4. Please let me know where the problem is 5.
×
×
  • Create New...