• AVR Freaks

Hot!PIC18F4550 device not found by the firmware updater software.

Author
danbakana
Junior Member
  • Total Posts : 93
  • Reward points : 0
  • Joined: 2012/08/27 05:21:28
  • Location: 0
  • Status: offline
2019/05/17 09:30:15 (permalink)
0

PIC18F4550 device not found by the firmware updater software.

I followed the documentation on the http://usb-pic.org/usb-pic-bootloader . I changed the project to be programmed to an PIC18F4550 and not a PIC18F4455 as it was originally written. So, I did the following changes on the bootloder code:

In source files where was originally
#include "P18F4455.INC"
I changed to
#include "P18F4550.INC"

On the Header files, I remove the file "P18F4455.INC" of the project and add the"P18F4550.INC instead, I downloaded it from here. The compilation succeed and I was able to program the bootloader into the PIC18F4550's flash. I used PIckit3 and MPLABV8 to do it.
I did not encrypt my application using the encoder, I just tried to write it to memory without encrypt it. So, I copied and paste my .hex file application to the bin folder where the fw_update is.
 
I found on the bootloader's project file usb_desc.inc that :
#ifndef BOOTLOADER_VID
#define BOOTLOADER_VID 0x0000 ; MUST BE VALID Vendor ID
#endif
#ifndef BOOTLOADER_PID
#define BOOTLOADER_PID 0x0000 ; MUST BE VALID Product ID
#endif


So, I opened the console and typed:
fw_update -e -w -v -vid 0x0000 -pid 0x0000 -ix example_encrypted.hex

 
The followed message appears:
U2IO flash erasing: FAILED.
Device is not found.
Operation aborted.
On the device manager of windows 10, It appears as a HID USB device but with a yellow exclamation.
 
Does someone have some advice or tip of what it is happening ?
#1

5 Replies Related Threads

    newfound
    Super Member
    • Total Posts : 1838
    • Reward points : 0
    • Joined: 2003/11/07 12:35:49
    • Status: offline
    Re: PIC18F4550 device not found by the firmware updater software. 2019/05/19 17:35:53 (permalink)
    +2 (2)
    You have the bugged Diolan bootloader. See this thread for a download link for the fixed version in the last post. 
    #2
    danbakana
    Junior Member
    • Total Posts : 93
    • Reward points : 0
    • Joined: 2012/08/27 05:21:28
    • Location: 0
    • Status: offline
    Re: PIC18F4550 device not found by the firmware updater software. 2019/05/20 08:35:07 (permalink)
    0
    newfound, the only download link I found was the code of rshotbolt, but it does not work. I tried to build it, but I had the following message:
     
    Clean: Deleting intermediary and output files.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\usb.o" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\usb.err" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\usb.lst" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\SE1028.cof" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\SE1028.hex" doesn't exist.
    Clean: Deleted file C:\Users\Daniel\Desktop\ArquivosBootloaderPIC18F4550\bootloaderMPLAB8\diolan_plus\bootloader\SE1028.mcs".
    Clean: Done. Couldn't locate build tool. Check tool locations.
     
    So, I changed the include on usb.asm originally written #include "P18F87J50.INC" to #include "P18F4550.INC"
    and add a P18F4550.INC that I found on the internet. I tried to compile and the following message appeared:
     
    Clean: Deleting intermediary and output files.
    Clean: Done.
    Couldn't locate build tool. Check tool locations.
     
    What I'm doing wrong ?
    #3
    danbakana
    Junior Member
    • Total Posts : 93
    • Reward points : 0
    • Joined: 2012/08/27 05:21:28
    • Location: 0
    • Status: offline
    Re: PIC18F4550 device not found by the firmware updater software. 2019/05/20 13:41:08 (permalink)
    0
    newfound, the only download link I found was the code of rshotbolt, but it does not work. I tried to build it, but I had the following message:

    Clean: Deleting intermediary and output files.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\usb.o" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\usb.err" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\usb.lst" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\SE1028.cof" doesn't exist.
    Clean Warning: File "C:\MPLAB\SE1027\Bootloader\SE1028.hex" doesn't exist.
    Clean: Deleted file C:\Users\Daniel\Desktop\ArquivosBootloaderPIC18F4550\bootloaderMPLAB8\diolan_plus\bootloader\SE1028.mcs".
    Clean: Done. Couldn't locate build tool. Check tool locations.

    So, I changed the include on usb.asm originally written #include "P18F87J50.INC" to #include "P18F4550.INC"
    and add a P18F4550.INC that I found on the internet. I tried to compile and the following message appeared:

    Clean: Deleting intermediary and output files.
    Clean: Done.
    Couldn't locate build tool. Check tool locations.

    What I'm doing wrong ?
    #4
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: PIC18F4550 device not found by the firmware updater software. 2019/05/20 15:05:20 (permalink)
    +3 (3)
    The only error message you are getting is

    Couldn't locate build tool. Check tool locations.

    Doesn't that tell you something?
    What compiler does that project need?
    What compiler(s) do you have installed?
     

    Nearly there...
    #5
    danbakana
    Junior Member
    • Total Posts : 93
    • Reward points : 0
    • Joined: 2012/08/27 05:21:28
    • Location: 0
    • Status: offline
    Re: PIC18F4550 device not found by the firmware updater software. 2019/05/21 05:38:49 (permalink)
    0
    qhb
    The only error message you are getting is

    Couldn't locate build tool. Check tool locations.

    Doesn't that tell you something?
    What compiler does that project need?
    What compiler(s) do you have installed?
     


    You're right qhb, I was compiling with MPAMS, but, to this code I need C18. I changed it and works. It still had some errors. I I corrected the most of them, but there is an error that I don't know how to deal with it. It is :
     
    Error[101] C:\USERS\DANIEL\DESKTOP\ARQUIVOSBOOTLOADERPIC18F4550\BOOTLOADERMPLAB8\DIOLAN-PLUS2-MASTER\FW\IO_CFG.INC 54 : ERROR: (Bad or unimplemented JP_BOOTLOADER_PORT definition) Halting build on first failure as requested.
     
    I found this passage on the code:
    (Bad or unimplemented JP_BOOTLOADER_PORT definition) Halting build on first failure as requested.
     
    There it is:
     
    ; This macro is used to test (and skip) if the jumper is 'set'
    ; - modify to configure the port/pin as digital input for your PIC
    ; - modify to suit polarity (jumper 'set' == 1 or 0)
    ;
    JP_BOOTLOADER_SKIP_IF_SET macro
    #ifdef __18F4550
    #if JP_BOOTLOADER_PORT==PORTD
    movlw 0x0F ; wholesale PORTD all digital
    movwf ADCON1
    #else
    error "Bad or unimplemented JP_BOOTLOADER_PORT definition"
    #endif
    #endif
     
    I don't know what jumper is it. On the readme file of the project is told that : "If you change the `PROCESSOR` to `18f4550` in the Makefile it just-works with with PIC18F4550 using 4 MHz crystal." I did this modification, but My Crystal is 16MHz.
    The document to guide the modification talk about files that are not in the project. (https://github.com/nyholk...20readme.pdf?raw=true)
     
     
     
     
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5