Post Go back to editing

How to Flash the EVAL-ADICUP360

I just purchased an EVAL-ADICUP360 eval board for the ADuCM360 and I can't find any documentation on how to flash it. So far I have gotten CrossCore Embedded Studio setup following the instruction here: https://wiki.analog.com/resources/eval/user-guides/eval-adicup360/tools/cces_user_guide. I have been able to compile and run the Blinky and CLI example programs on the board.

Next I am trying to figure out how to program a BIN file to flash memory but have not had any success. I have tried from guides I've found around the AD wikis:

  • Dragging the Blinky.bin file to the MBED drive mounted in Windows 10. fail.txt displays "SWD ERROR"
  • Tried Holding BOOT while pressing resent, then drag file onto MBED. Now MBED does not remount automatically do I can't see the error message.
  • Tried running CM3WSD. It says to "Press Download and pulse Reset" I assume this means to hold BOOT and press RESET. But it still doesn't work.

Overall I have found the documentation for this product very confusing and fragmented. Much of it seems very out of date. I would appreciate any help getting this set up with the current preferred method using the free compiler tool-chain.

Parents
  • Hey Mike,

    So I am using a Windows 7 machine on my side.  I just tried a Windows 10 machine with a colleague this morning and everything was dragging and dropping routinely on their machine.

    So I'm thinking it might have something to do with your machine.  Do you have any encryption or security protocol on your machine?  If its a work machine there could be a real good chance of that, I know I ran into a similar problem with my machine at one point.  The drive should not disconnect on a periodic basis, so that is another reason why I'm thinking its something with your machine.(driver issues?)  The drive will disconnect/reconnect when dropping a file, this is normal behavior.

    The program disappearing after you power cycle is a new one on me, its supposed to stay flashed.  I think we probably want to focus on the first issue, because it might clear up the second issue.

    I would look at the enctypion/security first, can you contact your IS team to see if there is something blocking you from copy/pasting files?  You could try to use a personal computer or even something like a RPI (which I have done in the past) to copy/paste the BIN file onto the ADICUP360 as a test.  if that work then you know its something to do with your current computer.

    Brandon

  • Last night I brought the board home and tried it on my Windows 10 PC without any corporate security software and had exactly the same problem. After some lucky Googling I discovered that the Windows "Storage Service" is to blame.

    If you go into "Computer Management->Services" and stop the "Storage Service" (also need to disable so that it won't restart later) then the MBED device starts behaving correctly and I was able to flash to it without any trouble.

    This post is where I found the answer: https://mcuoneclipse.com/2018/04/10/recovering-opensda-boards-with-windows-10/

    I have now verified that this is a fix on several Windows 10 machines with and without security tools installed. I don't know the full implications of disabling this service as Microsoft has not documented it well but this seems to be the answer for now. 

Reply
  • Last night I brought the board home and tried it on my Windows 10 PC without any corporate security software and had exactly the same problem. After some lucky Googling I discovered that the Windows "Storage Service" is to blame.

    If you go into "Computer Management->Services" and stop the "Storage Service" (also need to disable so that it won't restart later) then the MBED device starts behaving correctly and I was able to flash to it without any trouble.

    This post is where I found the answer: https://mcuoneclipse.com/2018/04/10/recovering-opensda-boards-with-windows-10/

    I have now verified that this is a fix on several Windows 10 machines with and without security tools installed. I don't know the full implications of disabling this service as Microsoft has not documented it well but this seems to be the answer for now. 

Children
  • I also discovered that it is possible to flash the EVAL-ADICUP360 over the USER USB port with the CM3WSD tool. You need to connect the CM3WSD tool to the USER COM port rather than the MBED/DEBUG COM port and flash with a .HEX file rather than a .BIN file but it works. I was able to flash the noise.hex file that comes with the ADuCM36x Multi-Function Tool and successfully use the Noise analysis tool.

  • I thought it was also worth mentioning that you can use OpenOCD to flash your program(s).

    ${CCES}/ARM/openocd/bin/openocd -f ${CCES}/ARM/openocd/share/openocd/scripts/interface/cmsis-dap.cfg -f ${CCES}/ARM/packs/AnalogDevices/ADuCM36x_DFP/1.0.3/openocd/scripts/target/aducm36x.cfg -s ${CCES}/ARM/openocd/share/openocd/scripts -s ${CCES}/ARM/packs/AnalogDevices/ADuCM36x_DFP/1.0.3/openocd/scripts -c "program Blinky.bin; shutdown"