Closed jpagliaccio closed 3 years ago
Hi jpagliaccio, You just need to drag and drop the .hex file in the Daplink device. .hex files don't need the flash programmer.
When I do that I get the "FAIL.TXT" file after the reboot with the contents:
"An error occurred during the transfer"
That is why we are trying CrossCore as the alternative method.
Can you try to update the daplink firmware. See: https://wiki.analog.com/resources/eval/user-guides/eval-adicup3029/tools/adicup3029_hw_drivers#maintenance_drive And then try again
If this is still not working please try to address your issue to https://ez.analog.com/analog-microcontrollers/ultra-low-power-microcontrollers It seems to be a board problem no regarding with the software in the repository.
I'm a colleague of jpagliaccio's and we are both having the same issue.
FWIW, we are able to load the example code for ADuCM302x-Button from CrossCore with the readout:
Sending second stage kernel.
Read Intel HEX application image with 668 bytes.
Received autobaud response:
Product ID: ADuCM302x
Revision: 431
Serial number: 1176E54DFCF5D993E08FA00043430333
User code blank.
User code checksum failed.
Write protection disabled.
Read protection enabled.
Sent 668/668 bytes.
Download completed.
Run command sent.
Programming flash image.
Read Intel HEX flash image with 12680 bytes.
Autobaud succeeded.
Erased 7/7 pages.
Erase completed.
Flashed 12680/12680 bytes.
Flash completed.
Done.
This makes me think the issue is actually code related, rather than hardware related.
Are you able to flash the blinky program and run it successfully?
Yes. The example aducm_blinky_example_aducm3029_simple.hex works okay but ADuCM3029_demo_cn0428_cn0429.hex does not.
If I open those 2 hex file in VS Code they have different headers and footers. Have you tried to flash ADuCM3029_demo_cn0428_cn0429.hex?
I did successfully by dag-n-dropping. I've not been able to reproduce the error so far. Let's try something else: are you able to flash this program?
So we edited your hex file: ADuCM3029_demo_cn0428_cn0429.hex and removed the header and footer lines. Now it will flash with a simple drag-and-drop but the demo code is not reliable - I randomly get "XXXXX timeout" and can not read 'Z' mode - conductivity at all when running the "measuresensor" command. I get temperature but not conductivity- just times out and then the entire eval board needs to be rebooted. Thanks for your help.
Are you using the .hex file from here https://github.com/analogdevicesinc/EVAL-ADICUP3029/releases/download/Latest/ADuCM3029_demo_cn0428_cn0429.hex ? I saw there is also a .hex file in https://github.com/analogdevicesinc/EVAL-ADICUP3029/blob/master/projects/ADuCM3029_demo_cn0428_cn0429/Release/ADuCM3029_demo_cn0428_cn0429.hex but that was added by mistake and it has a bad first line.
If you are using the correct one then I also created this PR:https://github.com/analogdevicesinc/EVAL-ADICUP3029/pulls. When it is merged the .hex files will be updated and may fix your issue.
Anyway, if you want to build and edit the project by yourself, you can follow this guide: https://wiki.analog.com/resources/eval/user-guides/eval-adicup3029/tools/cces_user_guide
The issue was found. This commit has introduces a merge conflict in the .hex file that wasn't solved. https://github.com/analogdevicesinc/EVAL-ADICUP3029/commit/50cc2af0d7f0d3ee92417b6e9f75a65295d07e7b#diff-5247da855a38640f5acce2a27056e012983da1d4ae6db4c63a9dd06aa03dc4cd
This PR https://github.com/analogdevicesinc/EVAL-ADICUP3029/pull/80 adds back again the previous working version of the .hex file.
Unable to flash ADuCM3029 with the demo hex file: ADuCM3029_demo_cn0428_cn0429.hex
CrossCore will "Erase" but it will not flash(Program) the hex files.
We have tried on 2 new different ADuCM3029 boards. Boards are marked: 08-044136 REV C
After booting with the BOOT button pressed and the options above - the message from Crosscore:
The contents of DETAILS.TXT:
The head and tail of the ADuCM3029_demo_cn0428_cn0429.hex file from from your Git: