Menu

18F442 Problem

Manuel
2017-06-05
2017-06-05
  • Manuel

    Manuel - 2017-06-05

    Hi! Thanks for this bootloader!
    I have compiled for 18F442 and it works good, but now i have a problem.
    In my circuit i have add new device wich is connected to RE0, RA4 and RE2.

    The first time the bootloader answers and i can write an new hex file, but the new image is not working. After a restart the bootloader doesnt answering anymore and the new firmware doesnt work.

    Befor i attached the new device, all works perfect.

    Thank for your help!

    #include "p18f442.inc"
    IdTypePIC = 0x41
    #define max_flash 0x4000
    xtal EQU 20000000
    baud EQU 115200
    

    Manu

     

    Last edit: Manuel 2017-06-05
  • Manuel

    Manuel - 2017-06-05

    Fixed!

    #include "p18f442.inc"
    IdTypePIC = 0x42
    #define max_flash 0x4000
    xtal EQU 20000000
    baud EQU 115200
    

    IdTypePIC must set to 0x42.

     
  • Manuel

    Manuel - 2017-06-05

    Here the files, now it works perfect.
    I have modified the code, so PIN RA5 go's high and indicate, that the bootloder is running.

     

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.