BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Can one program D2xx example using DFU? Answer: YES  (Read 296 times)

Rayman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Can one program D2xx example using DFU? Answer: YES
« on: October 16, 2019, 11:27:27 PM »

I'm just starting with FT93x...

Trying to program the "D2XX Example UART Bridge" example over USB using DFU...

I think I followed the directions in the video, but I get this error message:
"The binary file contains D2XX section.  DFU only allows firmware update.  The binary file is incompatible".

Does this mean that any program using D2XX cannot be programmed over DFU?
« Last Edit: October 24, 2019, 06:05:02 PM by Rayman »
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 111
    • View Profile
Re: Can one program D2xx example using DFU?
« Reply #1 on: October 21, 2019, 04:44:47 PM »

Hello,

There are two ways to program the FT9xx MCUs with custom firmware using the FT9xx Programming Utility:

• Using the UMFTPD2A debugger/programmer module
• Using the USB DFU interface via the USB device interface (no need for the UMFTPD2A)

USB DFU programming can be a good option for production or field programming, since the user simply needs to plug the USB device port into the PC and there is no need to connect via the UMFTPD2A. It's not recommended for test and development stage of a project, since the USB DFU interface needs to be available in the application firmware. programming a device without this interface would mean the USB DFU interface is not available for subsequent programming.

Note the .bin file must be prepared before it can be used for DFU programming.
More detail on the DFU Programming options can be found within the FT9xx Programming Utility’s About --> Help menu.
The Add/Customize DFU-suffix (DFU binary) option provides this functionality.

However, if the application code doesn't include a USB DFU interface, it will not be available after programming.
More information can be found on the USB DFU interface in AN_365 FT9xx API Programmers Manual.
The GPIO DFU example in AN_360 FT9xx Example Applications is a good place to learn about this.

Best Regards,
BRT Community
Logged

Rayman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Can one program D2xx example using DFU?
« Reply #2 on: October 23, 2019, 03:10:57 AM »

Thank you.  I did figure out today how to program the "GPIO DFU" example using the DFU interface.

I changed this line in the example so I didn't have to mess with I/O pins or UART pins:
volatile int trigger = 1;//RJA Force DFU on startup 0;

However, I'm still not able to program the D2XX example over the DFU interface.
Still getting the error message described in top post.
Is it possible that D2XX code cannot be programmed over DFU?
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 111
    • View Profile
Re: Can one program D2xx example using DFU?
« Reply #3 on: October 24, 2019, 04:53:09 PM »

Hello,

There are no problems programming the D2XX Example 1 over DFU. You must prepare the .bin file first as described in my original post.

Here's some screenshots of the test I performed and it programs ok over USB DFU:





If you are seeing "The binary file contains D2XX section.  DFU only allows firmware update.  The binary file is incompatible".
Click on back, and reselect the DFU interface, and then it will successfully program.
I'm looking into this and whether it's a bug with the utility or software.

Best Regards,
BRT Community
Logged

Rayman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Can one program D2xx example using DFU?
« Reply #4 on: October 24, 2019, 06:04:23 PM »

Thank you.  I just tried this again and it worked!

I'm going to test on one of the other computers I was working on to see if it's something with the computer.
I also have this issue of the programmer utility not working when launched from Eclipse and it may be something to do with that...

Anyway, I'm glad that DFU programming with D2XX is possible!
Logged

Rayman

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Can one program D2xx example using DFU? Answer: YES
« Reply #5 on: October 24, 2019, 06:11:51 PM »

Ok, I think I've determined that my issue was due to launching the Programming Utility from within Eclipse.
On 3 out of 4 computers that I've tested, this and other things do not work properly.
But, when the Programming Utility is launched from Windows Explorer, it works.
Logged

BRT Community

  • Administrator
  • Full Member
  • *****
  • Posts: 111
    • View Profile
Re: Can one program D2xx example using DFU? Answer: YES
« Reply #6 on: October 25, 2019, 04:21:36 PM »

Hello,

Strange, I tested this out on our Windows 7 and Windows 10 PCs and could not replicate the behaviour.

At least you have something that works for you.

Best Regards,
BRT Community
Logged