This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28069: TMS320F28069: USB Bootloader DFU_ERR_UNKNOWN -4

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

Hi everyone,

        I'am new with Boootloader and I have a problem with it  I have no idea to solve that. . the boot_demo_usb works properly with dfuprog.exe but when I add my project look like the picture. I can display the device properly with dfuprog.exe (dfuprog -e)

I try to erase my project with dfuprog.exe (dfuprog -c) and downloading again. During erasing I've got this error DFU_ERR_UNKNOWN (-4) 

You can find mt .cmd file below.  

28069_RAM_CLA_C_lnk.rar

Could you help me to  fix it.

I read this file F2806x_USBBL_UG.pdf. Please do not send that again  because it doesn't work to ged rid of my problem.

C:\ti\c2000\C2000Ware_1_00_04_00\device_support\f2806x\docs\F2806x_USBBL_UG.pdf 

Best Regards 

Y. ULU

  • Hello

    An expert is assigned and will review soon.

    Best regards
    Chris
  • Hello Chris,

    Thank you very much for your consideration. I look forward to seeing an answer from you.

    Best Regards

    Yusuf 

  • Yusuf,

    I apologize for the long delay in getting back to you.   Our USB expert has been assigned to look at this.  He is out of the office this week and will work on this Monday (June 4th).   

    I want to ask if you may have any additional information since you posted.  Have you tried anything additional or observed other behavior?

    Thank you

    Lori

  • Hi Lori,

    Thank you very much for your return. You can find our problem which is explain in more detail and explanation. Please let me know if you need more informations

    I want to load the hex file of our own code  into microcontroller through USB Bootloader. To do that, first I began with the sample code(boot_loader) in ControlSuite  and with sample code I succeeded to load it.

    C:\ti\controlSUITE\device_support\f2806x\v151\MWare\boot_loader

    Secondly, we added the source and header files of our own code into sample code.  After that, when we try to load the hex file we observed the error which is mentioned above. During erasing the Flash I've got this error DFU_ERR_UNKNOWN (-4). I couldn't manage to erase the FLash

    When we examined the error, we realised that the  function Flash2806x_Erase(0x01, &g_FlashStatus) in bl_usb.c is never return.

    By the way, I am linking in the "2806x_BootROM_API_TABLE_Symbols_fpu32.lib" version of the library, and the compiler is configured with "--float_support=fpu32".

    Regards

    Yusuf 

  • Hi Yusuf,

    I will be able to dig into this more tomorrow. Still working through this.

    Thank you for your patience.

    sal
  • Hi Yusuf,

    Can you also provide which compiler version and CCS version you are using to build this?

    Can you step into the Flash2806x_Erase() function please? Is the device reseting when this is called? You can try doing an assembly step-into since you don't have the source of the flash API.

    Regards,
    sal
  • Also, Do you experience the same issue if use 2806x_BootROM_API_TABLE_Symbols.lib and --float_support=softlib ??

    Regards,
    sal
  • Also, What Windows operating system are you using?

    And can you get Example_Flash2806x_API and Example_Flash2806x_API_FPU examples both to work on your device?

    Regards,
    sal
  • Hi Sal Pezzino,
    Thank you for your return. You can find the infos that you wish to know below respectively.

    CCS Version: 7.2 and Compiler version: TI v.6.2.7.
    I cannot step into the the Flash2806x_Erase() function because I am not able to get inside . Also there is no reset before that function.

    Yes , I have tried to use 2806x_BootROM_API_TABLE_Symbols.lib and --float_support=softlib but compiler gives errors. I am using CLA for FPU operations and because of that I prefer to use 2806x_BootROM_API_TABLE_Symbols_fpu.lib instead of 2806x_BootROM_API_TABLE_Symbols.lib. Am I doing the right thing by that, am I not?

    Both Windows 7 and Window 10 operating system I experienced with the thought that this might be the problem but it did not change anything.

    Of course, I can get both Flash_API examples to find out whether it works as soon as possible and I will provide you a feedback in this matter.

    Please let me know if you have more questions.

    Regards
    Yusuf
  • Hi Yusuf,

    Thanks for the reply.

    If you are using CLA for floating point operations, I don't think it should matter if you use softlib or fpu support. So, I think you should be able to softlib support... I am not saying this is the solution. We recommend using FPU support and the CLA, but I wanted to see if this was effecting the issue or not for debugging purposes.

    Would you be willing to send me the new DFU example project? If not on the forum, your FAE should be able to email it to me.

    It is good to hear the OS is not creating an issue. That has caused a lot of problems for us with USB in the past.

    Regards,
    sal
  • Hi, Please also consider these two other solutions.

    Here is a link to the Serial Flash Programmer Application Report: www.ti.com/lit/sprabv4

    The serial_flash_programmer and the SCI flash kernels are available in C2000Ware.
    C:\ti\c2000\C2000Ware_1_00_04_00\utilities\flash_programmers\serial_flash_programmer
    C:\ti\c2000\C2000Ware_1_00_04_00\device_support\f2806x\examples\c28\f28069_flash_kernel

    We have a CAN_flash_programmer and CAN flash kernel that will be coming out in the middle of next week, June 27.

    Regards,
    sal