- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I would like to know if is there anything different in the usage of the BootloaderUtils.dll for the use with PSoC 6 devices. We are trying to provide the users of our product (which has a PSoC6) to do the DFU (Device Firmware Update) through our software (Visual Studio C# based), which already works pretty good with PSoC 4 and 5 devices, updating through UART and USB HID.
Now I am trying to use this same code with PSoC6 devices through UART interface.
But then when our software calls the BootloaderUtils.dll in the function Bootloader_Utils.CyBtldr_Program, the Visual Studio, it throws the following exception:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt
It works perfectly to update when I use the Bootloader Host Tool from PSoC Creator 4.2 or 4.3.
I tried to use the cybootloaderutils.dll files provided in the installation of these PSoC Creator bin files, but it throws the same error.
Am I missing something?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Ana,
Please download ModusToolbox which comes with the DFU Host Tool. More importantly, you will the latest cybootloaderutils available at this path: "ModusToolbox\tools_2.1\dfuh-tool\sample_code\src\backend\".
Please make use of these files to build your DLL. Also, I went through your PSoC Creator project and I don't see any issues. I did not find the host application code though.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please have a look at the following thread which had the same error: UART Bootloader HOST S/W error
Try out the steps mentioned in the above link and let me know if it helps
If not, please attach both the Host Side Visual Studio project and the PSoC Creator project so that we can get more insight on the issue.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thank you for this help. I tried to run the code from this thread with the same error, and then I got this:
Do you know what does it mean?
In this link you can see the bootloader project:
DFU PSOC6 USBUART OK 20200316.zip - Google Drive
Best regards,
Ana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Ana,
Please download ModusToolbox which comes with the DFU Host Tool. More importantly, you will the latest cybootloaderutils available at this path: "ModusToolbox\tools_2.1\dfuh-tool\sample_code\src\backend\".
Please make use of these files to build your DLL. Also, I went through your PSoC Creator project and I don't see any issues. I did not find the host application code though.
Regards,
Dheeraj