my company is considering transitioning from uVision to Arm Development Studio.I'm currently evaluating this using the 30 day trial by recreating our current setup.
I'm now trying to download and debug code on the MCU using the built-in CMSIS-DAP and an ST-LINK.But when trying to debug, the process just fails without any apparent error after the autodetection. No error is present in the main log.
I originally noticed the behavior with a custom board using an STM32H745IIK6 and an ST-LINK V2 but have since than verified the issue is also present with the same setup and an ST-LINK V3, a second custom board using an STM32H745IIT6 and both ST-LINK V2 and V3 and the STM32H747I-DISCO (STM32H747XI6H) board using the internal ST-LINK V3.
The PCE Log looks okay but includes a warning and an error:
[19/05/21 10:57:12] WARNING - Multi-drop SWD is not supported, a single DAP on the scanchain has been assumed.[19/05/21 10:57:13] Failed to read registers to identify component: Failed to read 16 bytes from address 0xE00F0FF0 on CSMEMAP_2When I try "Target Configuration", the autodetect fails with an error
[19/05/21 10:57:12] WARNING - Multi-drop SWD is not supported, a single DAP on the scanchain has been assumed.
[19/05/21 10:57:13] Failed to read registers to identify component: Failed to read 16 bytes from address 0xE00F0FF0 on CSMEMAP_2
But that isn't helping much either... The PCE is showing the same output as it does when I try to debug.
At leats in this case, the main log includes a callstack:
!ENTRY com.arm.debug.cmsis 4 0 2021-05-19 11:03:42.538
!MESSAGE Failed to automatically detect what devices are present
com.arm.pce.exceptions.DSDetectException: Failed to automatically detect what devices are present
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
What am I doing wrong? At least accoridng to the PCE Log everything relevant is detected and working correctly.
Debugging using the same setup works without issues in Keil's uVision.
Thanks in advance!Sven
Hi SvenThanks for trying out Arm Development Studio! Sorry to hear that you've hit this problem.The warning about Multi-drop SWD isn't the issue here, but the errorFailed to read registers to identify component: Failed to read 16 bytes from address 0xE00F0FF0 on CSMEMAP_2may be the cause of the problem.You don't say which type of processor/board you are trying to connect to, but this problem is best investigated as a Support Case with Arm, so that Arm support and engineering teams can properly investigate.Please open a Support Case using the "Support > Open a Support Case" option at the top of this page, including more details such as the processor/board you are trying to connect to, and the full failing PCE log.Hope this helps,Stephen
Thanks for your quick response! I did as you suggested.
But to clarify: I originally noticed the behavior with a custom board using an STM32H745IIK6 and an ST-LINK V2 but have since than verified the issue is also present with the same setup and an ST-LINK V3, a second custom board using an STM32H745IIT6 and both ST-LINK V2 and V3 and the STM32H747I-DISCO (STM32H747XI6H) board using the internal ST-LINK V3.
I also added this information to the opening post.
while I'm using the Arm DSTREAM-ST for debugging various STM32 boards; I always used the pre-configuration which are part of the post install packages; theses packages also provide FLASH programming. Currently I don't have access to and ST-ULINK v2/v3 and therefore cannot test it. I've forwarded the information to the engineering team for analysis.
Thank you very much,
thank you for your quick response! What you describe is exactly what I tried to use.
I'm currently in homeoffice and don't have access to other debuggers here. I'll make sure to at least try a J-Link soon but don't have access to a DSTREAM-ST. In the meantime, I could properly connect to an STM32F4 and an NRF52840 so this issue seems to be specific to the H7 series of dual-core MCUs (maybe alsothe single core versions but I can not test this).
Do you have access to a STM32H74x/75x, i.e., a dual-core model to check if it works with the DSTREAM-ST?
Development Studio gives me two possible debug configurations:
The second works (altough I would need to provide my own programming algoriithm), the first fails to generate its "platform.sdf" and silently fails (at least that's what my findings show).
By having a close look at what Development Studio (and expecially the com.arm.debug.cmsis module that is causing the error) is doing different if it works,I have since found a workaround:
While this works, it is annoying that the auto detection does not seem to be able to automatically generate this file (when it is obviously supposed to do this and is failing without it).
I will leave this here for future reference but definitely hope that that this bug can be fixed.
View all questions in Arm Development Studio forum