+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Full Member level 3
    Points: 2,302, Level: 11
    Achievements:
    7 years registered
    jpsganesh's Avatar
    Join Date
    Aug 2009
    Location
    India
    Posts
    175
    Helped
    22 / 22
    Points
    2,302
    Level
    11

    EFM8UB3 Factory bootloader

    I made a custom HW with minimal support for USB factory bootloader using EFM8UB31F40G-A-QSOP24. It's USB powered device, before connecting to USB, to enter bootloader mode I'm connecting P2.0 (C2D) to GND. (and RSTb (C2CK) PIN pullup to 5v)

    When I connect it to my PC (laptop) I can see th device connected as HID in device manager.

    I took a example program to blink a LED. Converted hex to EFM8 file using hex2boot.exe and trying to download this EFM8 file to deice using factory bootloader using efm8load.exe. But it says "ERROR: Unable to open port!"

    Please refer the attached screenshot1, my laptop has some other HID device connected. Is that the problem for not programming? referring AN945 document, it says only one HID device should be connected.

    Click image for larger version. 

Name:	screenshot1.PNG 
Views:	3 
Size:	50.2 KB 
ID:	146169
    Click image for larger version. 

Name:	screenshot2.PNG 
Views:	2 
Size:	35.0 KB 
ID:	146170
    Click image for larger version. 

Name:	screenshot3.PNG 
Views:	2 
Size:	7.9 KB 
ID:	146171
    Click image for larger version. 

Name:	screenshot5.PNG 
Views:	2 
Size:	14.1 KB 
ID:	146172
    Click image for larger version. 

Name:	screenshot6.PNG 
Views:	2 
Size:	49.6 KB 
ID:	146173
    Click image for larger version. 

Name:	screenshot7.PNG 
Views:	2 
Size:	13.3 KB 
ID:	146174

    •   AltAdvertisment

        
       

  2. #2
    Full Member level 3
    Points: 2,302, Level: 11
    Achievements:
    7 years registered
    jpsganesh's Avatar
    Join Date
    Aug 2009
    Location
    India
    Posts
    175
    Helped
    22 / 22
    Points
    2,302
    Level
    11

    Re: EFM8UB3 Factory bootloader

    For your reference, please follow the link for
    AN945: EFM8 Factory Bootloader User Guide: https://www.silabs.com/documents/pub...otes/AN945.pdf



    •   AltAdvertisment

        
       

  3. #3
    Super Moderator
    Points: 255,114, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,445
    Helped
    13540 / 13540
    Points
    255,114
    Level
    100

    Re: EFM8UB3 Factory bootloader

    my laptop has some other HID device connected. Is that the problem for not programming? referring AN945 document, it says only one HID device should be connected.
    They say something more specific, connect not more than one HID boot loader instance. "Only one HID" make no sense because all modern PCs have some HID devices connected, e.g. mouse, keyboard.

    Seriously I don't know how the fault is brought up. I think it either means that no HID boot loader device is presently detected, or that it's not ready for communication, or that the efm8load app is missing some parameters that have to be set to use the HID channel.



    •   AltAdvertisment

        
       

  4. #4
    Full Member level 3
    Points: 2,302, Level: 11
    Achievements:
    7 years registered
    jpsganesh's Avatar
    Join Date
    Aug 2009
    Location
    India
    Posts
    175
    Helped
    22 / 22
    Points
    2,302
    Level
    11

    Re: EFM8UB3 Factory bootloader

    Thanks for your time and reply.

    I'm connecting only one microcontroller at a time. Before this EFM8UB3 device I tried with EFM8UB2. But EFM8UB2 did not get detected as HID due to issue in factory bootloader. That they conformed through errata notification. That issue resolved in EFM8UB3 and it gets detected as HID when I connect it to my USB port. Still don't know why it's not programming.

    Please let me know if you need any more information for better understanding of this scenario. Once again thanks for your time.



  5. #5
    Full Member level 3
    Points: 2,302, Level: 11
    Achievements:
    7 years registered
    jpsganesh's Avatar
    Join Date
    Aug 2009
    Location
    India
    Posts
    175
    Helped
    22 / 22
    Points
    2,302
    Level
    11

    Re: EFM8UB3 Factory bootloader

    I checked in hidport.py it doesn't include valid PID USB product ID (0xEACB) for EFM8UB3 support. It had only EFM8UB1 (PID-0xEAC9) & EFM8UB2 (PID-0xEACA). So it could not program the device. Now I added 0xEACB and rebuilt the python code, alternatively I downloaded latest version of AN945SW (http://www.silabs.com/documents/publ...de/AN945SW.zip) from Silabs website and it included EFM8UB3 (PIC-0xEACB) support. So directly I can use it.

    Issue resolved, thank you. Silabs can proactively update product supporting's in parallel with product release to avoid such a complication in future.



--[[ ]]--