Post Go back to editing

[CCES 3.1.0] Timeout issue during Flash programming on ADSP21835-EV-SOM

Category: Datasheet/Specs

Hi,

We verified the Flash update process on an ADI evaluation board (ADSP21835-EV-SOM + EV-SOMCRR-EZKIT) using the latest version, CCES 3.1.0.

However, we encountered an issue where a timeout occurs during the Flash write operation following the Flash erase. Could you please advise on the possible causes?

Software verified:
A timeout occurs during the Flash write operation after the Flash erase when using the BSP's "Talkthrough" sample project.

Flash writing works without issues in CCES 3.0.4.
Therefore, we suspect this issue may be related to the update to CCES 3.1.0.

For reference, here are the logs from CCES 3.1.0 and CCES 3.0.4.

CCES 3.1.0:

Downloading to device...
'Invoking: CrossCore SHARC-FX Device Programmer'
cldp -proc ADSP-21835 -verbose -cmd prog -driver "C:\analog\cces\3.1.0\ARM\openocd\share\openocd\scripts\board\flash_algorithms\2183x_flash.dxe" -erase all -emu KIT -format hex -board adsp21835w_ev_som.cfg -file "AD_TalkT_I2S_EZ_21835_Core1.ldr"
Processor ADSP-21835
Board Cfg File adsp21835w_ev_som.cfg
Emulator KIT
Using OpenOCD.
Selected the following configuration files to run OpenOCD:
interface/adi-dbgagent.cfg
board/adsp21835w_ev_som.cfg
Creating child process to run OpenOCD.
Command line used internally:
C:\analog\cces\3.1.0\ARM\openocd\bin\openocd.exe -c "tcl_port 6666" -c "telnet_port 4444" -c "gdb_port 3333" -f "interface/adi-dbgagent.cfg" -f "board/adsp21835w_ev_som.cfg" -d0
OpenOCD running as expected.
Connecting to OpenOCD server on TCL.
Successfully connected to OpenOCD server.
Putting socket into non-blocking mode.
Current Algorithm version for selected device is 260625
Program AD_TalkT_I2S_EZ_21835_Core1.ldr
Erasing all device flash. This may take a couple of minutes.
.................................................
Using hex format does not allow for multiple flash devices using same address. Only first flash bank specified at address will be used.
Writing program data to flash.
..............
Timeout during algorithm command execution
Cannot read from flash. Target is not halted!
auto_probe failed


Command done. Check console above for results.
Terminating OpenOCD process
Closing socket.
'Finished building: program_device'
' '

CCES 3.0.4:

Downloading to device...
'Invoking: CrossCore SHARC-FX Device Programmer'
cldp -proc ADSP-21835 -verbose -cmd prog -driver "C:\analog\cces\3.0.4\ARM\openocd\share\openocd\scripts\board\flash_algorithms\2183x_flash.dxe" -erase all -emu KIT -format hex -board adsp21835w_ev_som.cfg -file "AD_TalkT_I2S_EZ_21835_Core1.ldr"
Processor ADSP-21835
Board Cfg File adsp21835w_ev_som.cfg
Emulator KIT
Using OpenOCD.
Selected the following configuration files to run OpenOCD:
interface/adi-dbgagent.cfg
board/adsp21835w_ev_som.cfg
Creating child process to run OpenOCD.
OpenOCD running as expected.
Connecting to OpenOCD server on TCL.
Successfully connected to OpenOCD server.
Putting socket into non-blocking mode.
Use boot mode 0 for most reliable flashing.
Current Algorithm version for selected device is 241209
Program AD_TalkT_I2S_EZ_21835_Core1.ldr
Erasing all device flash. This may take a couple of minutes.
.................................................
Using hex format does not allow for multiple flash devices using same address. Only first flash bank specified at address will be used.
Writing program data to flash.
.
wrote 92180 bytes from file AD_TalkT_I2S_EZ_21835_Core1.ldr in 1.052600s (85.521 KiB/s)


Command done. Check console above for results.
Terminating OpenOCD process
Closing socket.
'Finished building: program_device'
' '



Best regards.

  • Hello,

    Thank you for your inquiry.

    We are able to simulate the observation you reported here. We will get back to you soon.

    Best Regards,
    Santhakumari.V

  • Hi,

    We compared the files between CCES 3.0.4 and CCES 3.1.0.
    As a result, we suspect there is an issue with the "openocd.exe" file, so please verify this.

    Best regards.

  • Hi,

    We are checking this query with our Internal team. We will get back to you once we get a response from them.

    Best Regards,
    Santhakumari.V

  • Hi,

    Our sincere apologies for the delay in response.

    There are significant differences between CCES-3.1.0 and CCES-3.0.4.

    Here is the list of few important updates of many with CCES-3.1.0 for your understanding. As you mentioned, there was an update in OpenOCD also.

    1. Added SC84x Support. (Next generation of SC83x)
    2. Xtensa Toolchain Update
    3. ARM toolchain update
    4. Words matter header update for SC84x, SC83x products. This update involves changing the naming convention from more culturally appropriate terminology (for Ex. Using main instead of master etc). with this update multiple register bit-field have been renamed and we have tried to provide the backward compatibility for SC835 as much as possible.
    5. Openocd updates.

    Due to certain above-mentioned updates, the older BSP/applications which were developed/tested using older versions of CCES, may fail when directly imported into CCES-3.1.0. We had tested few EHP-BSP examples/older applications with latest CCES-3.1.0 and observed the same for which we are tracking in our bug tracking database. These older example/applications may need certain updates in order to work with CCES-3.1.0. During the recent SC84x BSP updates, we observed issues with LDRs while flashing. For 21835/SC835 application with CCES-3.1.0,  while creating LDR for flashing, can you please try removing all the printfs() from application and recompile and rebuild. Just to be sure, verify that you are taking care of the CCES-3.1.0 openocd/ldr/flashing specific updates by referring to the release notes of CCES-3.1.0.

    Hope this helps.

    Best Regards,
    Santhakumari.V

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.