- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are using the Bootloader Host application that is provided by the PSOC, below is the link,
https://www.cypress.com/documentation/application-notes/an73503-psoc-usb-hid-bootloader
In the Visual Studio application, after we load the .cyacd file and click program on the gui, we are getting error bootloader_ERR_DATA (0X04u) /*the data is not of a proper form*/
The dll used for Host application is created by referring the document attached (001-73503_AN73503_PSoC_USB_HID_Bootloader.pdf).
We are using PSoC 5LE and kit is CY8CKIT-059 PSoC 5LP.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find both the working PSoC Creator project and the Bootloader Host C# code attached. When you open the PSoC Creator project, follow these steps:
(1) Set the active project to the Bootloader
(2) Build the project
(3) Copy the path to the bootloader hex file
(4) Set the active project to Bootloadable
(5) Open the configuration dialog of the Bootloadable component
(6) Under dependencies, point to the bootloader hex file
(7) Build your project
(8) Program your device
Once programmed, connect the USB cable to the USB port and press reset. Run the bootloader host application and you should see the device connected. Point to the cyacd file generated by the Creator project and click Program. It should work successfully. Let me know your observations.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Bootloader checks whether the security key in the command matches the key entered in the Bootloader Configure dialog. If they do not match, then "Error Data" is returned. Check the Bootloader configure dialog to see if the security key option is enabled or not.
If it is, then provide the same values in the Bootloader Host application. If it is not enabled, you can pass them as all 0s and it should work:
Please let me know if this solves your issue
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dheeraj,
Thank you for the response,
We have tried this already, Please find the images below,
and
We still face the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you be able to attach your C# project? I am not able to reproduce at my end.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ran your project without any modifications. It worked without any errors for me.
I think the error is in your PSoC Creator project. Please attach your PSoC Creator if you want me to look at it. I used the following code example for testing and it works for me: https://www.cypress.com/documentation/code-examples/ce95391-psocr-usb-hid-bootloader
https://www.cypress.com/documentation/code-examples/ce95391-psocr-usb-hid-bootloader
Attached is the .cyacd file I'm programming so that you can check it at your end.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi DheerajK_81 ,
Did you get a chance to look into the issue.
Please give us some inputs further to proceed.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find both the working PSoC Creator project and the Bootloader Host C# code attached. When you open the PSoC Creator project, follow these steps:
(1) Set the active project to the Bootloader
(2) Build the project
(3) Copy the path to the bootloader hex file
(4) Set the active project to Bootloadable
(5) Open the configuration dialog of the Bootloadable component
(6) Under dependencies, point to the bootloader hex file
(7) Build your project
(8) Program your device
Once programmed, connect the USB cable to the USB port and press reset. Run the bootloader host application and you should see the device connected. Point to the cyacd file generated by the Creator project and click Program. It should work successfully. Let me know your observations.
Regards,
Dheeraj