Menu

PIC16F1825 with MPLAB X XC8 Compiler

Josh Tyson
2016-12-06
2016-12-07
  • Josh Tyson

    Josh Tyson - 2016-12-06

    I've been struggling getting my blink test program to work when uploaded via the botoloader. It works perfectly when uploaded via programmer.

    MPLAB X IDE v3.35

    1. I receive several warnings when uploading the HEX file. After reading through the forum, it seems that these can be safely ignored. However, I will post them here in case it helps solve my problem.

    Check Device...
    Open COM12 serial port at 115200bd
    Found: 16F w/8Kw flash & 256B EEPROM (Blk32)
    Open HEX file: C:\Users\Josh\WebstormProjects\NoahReceiver\bootloader\blink.X\dist\default\production\blink.X.production.hex
    Hex file verified, OK
    Warning: Config found just writing data
    Warning: Config found just writing data
    Warning: Config found just writing data
    Warning: Config found just writing data
    WARNING: pclath not fully initialised before GOTO! ...
    WARNING: first 4 words of code could not be fixed
    Maybe you should use some directive in your compiler
    to enable the use of bootloaders
    Transferring flash...
    Transferring program memory...
    Transferring HEX successfull :-)
    Close COM12 serial port

    1. http://tinypicbootload.sourceforge.net/pic16_operation.jpg According to this diagram, my main funciton needs to originate at 0x0010. However, the main funciton resides at 0x07D0 after compiling. Do I need to modify my existing code? Or am I missing complier and/or linker settings? I did modify the ROM ranges as specified here http://tinypicbootload.sourceforge.net/tested_compilers_pic.html. The specified ROM ranges is Reset Vector (0) to Max OnChip Program Memory (0x7FFF) - Bootloader Firmware Length (200) or 0-0x7F37. However, when I set the ROM range to 0-7F37, I receive following compiler warning.

    :: warning: (1394) attempting to create memory range (0 - 7f37) larger than page size 800

    Any help would be greatly appreciated.

     
  • Dan

    Dan - 2016-12-07

    From Dan.

    8kWFlash ---> [0000,1FFF] ,not [0000,7FFF]

     
    • Josh Tyson

      Josh Tyson - 2016-12-07

      Ooops. You are correct. The ROM Range should be 0-1F37, but I still received the same warning.

      :: warning: (1394) attempting to create memory range (0 - 0x1f37) larger than page size 800

      Regardless, I think this warning is the least of my worries.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.