INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
y7roque58
Posts: 9
Joined: Sun May 27, 2018 4:50 am
Contact:

INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

Post by y7roque58 »

Hello,

I have a problem uploading codes from FLOWCODE8 (ver. 8.0.0.6) to my BL0080 microcontroller board. I am not really sure if it is going to solve my problem but below please find the procedure about communicating with a device using USB. Any help regarding my problem is greatly appreciated. Thank you in advance.
Carlos

;This .inf file is a modified version of the example INF provided
;in the Microsoft document:
;"How to Use WinUSB to Communicate with a USB Device"


[Version]
Signature = "$Windows NT$"
Class = BL0080
ClassGuid= {a503e2d3-a031-49dc-b684-c99085dbfe92}
Provider = %MFGNAME%
DriverVer=01/06/2015,1.0.0.5
CatalogFile=BL0080.cat ;CAT file needed for a signed driver pacakage
;------------------------------------------------------------------------------
; ========== Manufacturer/Models sections ===========
;------------------------------------------------------------------------------
[Manufacturer]
%MFGNAME% = MyDevice_WinUSB,NTx86,NTamd64

;------------------------------------------------------------------------------
; Vendor and Product ID Definitions
;------------------------------------------------------------------------------
; When developing your custom USB device, the VID and PID used in the PC side
; application program and the firmware on the microcontroller must match.
; Modify the below lines to use your VID and PID. Use the format as shown below.
; Note: One INF file can be used for multiple devices with different VID and PIDs.
; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line.
; There is a maximum number of devices that can be supported per line however.
; If you append a large number of VID/PIDs to the end of the line, and get a:
; "The data area passed to a system call is too small." error when trying to install
; the INF, try removing some of the VIDs/PIDs.
;------------------------------------------------------------------------------
[MyDevice_WinUSB.NTx86]
%DESCRIPTION% =USB_Install, USB\VID_12BF&PID_0027

[MyDevice_WinUSB.NTamd64]
%DESCRIPTION% =USB_Install, USB\VID_12BF&PID_0027


;=========================================================================================
;ClassInstall32 and ClassInstall_AddReg sections used to make new device manager category.
;=========================================================================================
[ClassInstall32]
AddReg=ClassInstall_AddReg

[ClassInstall_AddReg]
HKR,,,,%DEVICEMANAGERCATEGORY%
HKR,,Icon,,"-20"


; =================== Installation ===================

;------------------------------------------------------------------------------
; Right click - Install Added 27/05/15
;------------------------------------------------------------------------------
[DefaultInstall]
CopyINF=BL0080.inf

[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

[WinUSB_ServiceInstall]
DisplayName = %WinUSB_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install

[WinUSB_Install]
KmdfLibraryVersion=1.11

[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{58D07210-27C1-11DD-BD0B-0800200C9a27}"
;When editing the GUID (the big hex number with dashes inside the squiggly
;braces), make sure to write the intended PC application to use the same GUID.
;Otherwise the application won't be able to find the USB device properly.

[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01011.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"

[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll
WdfCoInstaller01011.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================

[SourceDisksNames]
1 = %DISK_NAME%,,,\i386
2 = %DISK_NAME%,,,\amd64

[SourceDisksFiles.x86]
WinUSBCoInstaller2.dll=1
WdfCoInstaller01011.dll=1

[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll=2
WdfCoInstaller01011.dll=2

; =================== Strings ===================

[Strings]
MFGNAME="Matrix Technology Solutions Ltd"
DESCRIPTION="BL0080 Ghost2 PIC DIL Programmer"
WinUSB_SvcDesc="WinUSB Device"
DISK_NAME="WinUSB Device Install Disk"
DEVICEMANAGERCATEGORY="Custom USB Devices"

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

Post by LeighM »

Hi,
Did you install the USB driver that is found in the resources section here ..
https://www.matrixtsl.com/webshop/e-blo ... ammer.html

When you plug the board into the PC, does Windows recognize it?
Can you see it listed in "Devices and Printers"?

y7roque58
Posts: 9
Joined: Sun May 27, 2018 4:50 am
Contact:

Re: INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

Post by y7roque58 »

Hello,
Thanks for your response. Regarding your questions: yes, I did install the driver for BL0080 microcontroller board and my Dell laptop's device manager recorgnizes it accordingly. However, when I upload the code, mLoader immediately shows " no device detected." Please see attachments about this.
I have 3.0 USB in my laptop in addition, so I don't know why it is failing as described. Thanks.
Attachments
Screenshot (48).png
(857.11 KiB) Downloaded 2392 times
Screenshot (46).png
(235.36 KiB) Downloaded 2392 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

Post by LeighM »

I just noticed you have another forum thread on this issue.
Did you try these suggestions? ...
http://www.matrixtsl.com/mmforums/viewt ... 176#p89417

y7roque58
Posts: 9
Joined: Sun May 27, 2018 4:50 am
Contact:

Re: INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

Post by y7roque58 »

Hello,
You are absolutely correct about my previous inquiries about this problem. I decided to temporarily stop the inquiry because of frustration maybe. But I would like to give it another try. And I apologize for my actions. Anyway, I did almost all the suggestions except the procedure which is about Safe Mode. Also, since I have EB006 Microcontroller Board I had installed mLoader for this one and another one for BL0080 board. Could I not use both of them on the same computer? I only use them one at a time. Please advise. Thanks.
PS. I apologize to Mr. Benj for using the wrong choice of words about the Driver Easy. I decided to buy the software through my own free will and not Mr. Benj's instruction.
Carlos

y7roque58
Posts: 9
Joined: Sun May 27, 2018 4:50 am
Contact:

Re: INQUIRY RE- MLOADER FAILING TO UPLOAD CODES TO BL0080 PROGRAMMER

Post by y7roque58 »

Hello,
I also tried to test using the Safe Mode and removing mLoader from Flowcode 7 but gave me the same problem. Any assistance you could extend me is greatly appreciated. Thank you for your time.
Carlos

Post Reply