When programming my PIC18F6722 using MPLAB IDE v8.91 (the 32bit version), my PIC works and starts successfully, but when I use the HEX generated from MPLAB IDE, but program it using MPLAB X IPE, the programming part is successful, but my PIC does not start up.
Programming HEX using MPLAB X IPE v6.15, leads to PIC not starting
673 Views Asked by B.Adlane At
2
There are 2 best solutions below
1
Dan1138
On
It is likely that you are programming a HEX file that will only run in a debug session invoked from the MPLABX IDE.
When programming a device using the MPLABX IPE only a HEX file built to run without debug will work.
For MPLABX v6.15 Microchip, in their infinite and near God like wisdom, changed the default action for the build icons on the tool ribbon to do a debug build.
Now to do a release build open the icon option list and select the second choice.
Related Questions in MICROCONTROLLER
- ESP32 Consequtive Interrupt WDT Timeout Exception
- STM32G030 refuses write to flash
- can't configurate VL53l0x api
- STM32L011K4Tx Compare toggle not working as expected
- How to get PC of first instruction of inline asm block (C)?
- ESP-32 (FreeRTOS): The serial monitor prints unknown symbols (???) instead of a string
- SWO on a Blackpill board
- I2C LCD1602 interfacing with PIC16F877A
- J-Link script to flash program in S32K144 (allow security)
- Design of a function that modifies from 1-4 values of a register
- Is it possible to change values of the zephyr-rtos configuration file prj.conf using CMake arguments?
- Memory Aliasing to a specific Flash Sector
- How to make a proper delay in a microcontroller?
- USART to serial monitor/pc STM32
- How to use a c++ class as wrapper for timer-interrupts on RP2040 (RPPico)
Related Questions in PIC
- What is the difference between these 2 programs, one in C and the other in PIC assembly?
- Can't call second function (PIC XC16)
- I2C LCD1602 interfacing with PIC16F877A
- What is wrong with my SPI configuration/programming?
- Symbol not previously defined (TRISA)
- How to Enable UART Interrupt For PIC32MX?
- problem when separating an integer and displaying it on a 7-segment display
- No source code lines were found at current PC 0xc7. Use Program memory view to see instruction code disassembly
- Problem when implementing a scoreboard for a stadium, how can I fix this code
- PIC18F2550 assembly code for turning led on with a switch isn't working
- DHT11 code from pic18f4550 does not work with pic18f57Q84
- PIC18F4580 isn't turning the LED on in Proteus
- Using an ADC with PIC24 and storing the data in an SD card
- link PIC24 with SDcard
- Can connect and write hex files from MPLAB X IPE but can not debug from MPLAB X IDE
Related Questions in MICROCHIP
- Microchip c18 placing rom data in idata
- programming and debugging of different sam types
- I can't generate a PWM signal DSPIC33CK32MC102
- Is it possible to obtain a trace output from the Microchip Debugger?
- CANbus formula for BRP, Stage1, and stage1
- STORE DATA APDU for PPSE info
- How to re-write an nfc tag (rfid/microchip) which is READ-only
- Is it possible to implement dynamic webpage using RAW API of LwIP (Light weight IP).?
- Assigning RCREG value to a variable clears it
- How to modify default empty string on U-Boot to stop Autoboot in Yocto
- Is there any other way to write to Flash memory other than PROGMEM?
- MPLAB C18 compiler float-point type some questions
- Self-written micros() for attiny13a works 10x slower
- Unable to make Bootloader PC jump to application address 0x4000 in Program flash memory
- Problem in receiving data from BNO085 over I2C interfaced with SAMD21
Related Questions in MPLAB
- How do I diagnose an error in my C code when my compiler doesn't tell me what's wrong?
- How can i unstuck my PIC from clock init?
- MPlab Load two 16-bit values into data memory in big-endian format, and then perform a long addition
- MPLAB X IDE Output Keyboard Press
- Using sprintf to change a double to a string in MPLAB IDE v6.20
- Arduino IDE Error: MPLAB XC32 C++ license not activated
- MPLAB C18 compiler float-point type some questions
- PIC10F200 coding/setup issue
- PIC18F2550 assembly code for turning led on with a switch isn't working
- DHT11 code from pic18f4550 does not work with pic18f57Q84
- C "pass by pointer" value not updated when expected
- Can connect and write hex files from MPLAB X IPE but can not debug from MPLAB X IDE
- Is there an solution to stop looping this
- MPLAB X IDE code for PIC18F452 microcontroller (indirect addressing)
- Square wave generator. Using timers to adjust frequency. microchip MPLAB
Related Questions in MPLAB-C18
- MPLAB X IDE code for PIC18F452 microcontroller (indirect addressing)
- Error with MPLAB X IDE v6.15. and compilator v2.45
- Programming HEX using MPLAB X IPE v6.15, leads to PIC not starting
- Unable to resolve identifier RBIE and RBIF, any guess?
- MPLAB gives Low power and device failed to connect error when programming pic18f25q10
- Problem while coding in mplab x ide for pic18f
- Trouble Compiling my Microchip PIC18f4550 USB project using MPLAB X IDE C18 compiler. The compiler keep highlighting "syntax error" and won't compile
- Using C18 compiler on MPLAB X on with Wine
- Concatenate 5 or more bytes and convert to decimal and then to ASCII
- Microchip C18 send data to Terminal as numeric
- const function parameters in prototypes but not declarations (in C)
- Using enums and switch in functions (C18 Compiler)
- What is the difference between the Microchip XC8 and C18 compilers?
- what is the meaning of __18CXX and __PCB__ in picc codes
- how to assign structures in C18 compiler, MPLAB (ANSI C89)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?


Bug resolved. The issue was that MPLAB IPE was overwriting my configuration bits.. I only had to change the configuration bits in MPLAB IPE, to correspond to the ones already set in MPLAB IDE v8 (they were set via the code)
Comparing HEXs from both a successful PIC and a failed PIC told me that the issue was in the configuration bits (with the help of other people on the internet)