TOPICSトピックス

2020.12.30

java.lang.RuntimeException: RDDI_DAP_OPERATION_FAILED

MPLAB X + Atmel ICEにてデバッグ中に、突如「java.lang.RuntimeException: RDDI_DAP_OPERATION_FAILED」との赤文字が表示され、ICEの抜き差しやPCの再起動などでも復活しない状態になります。
本家のMicrochipのフォーラムに、この現象の解決策がありました。

java.lang.RuntimeException RDDI_DAP_OPERATION_FAILE

一番最後に JoostThijssenさん が書いている内容が当たりのようです。

I think I figured this one out.

In my case it seemed that the ‘java.lang.RuntimeException RDDI_DAP_OPERATION_FAILED’ was related to my code reprogramming the PMUX of the SWD pins. When using the Atmel-ICE with MPLAB-X it does not drive the Reset line of the chip (not required as long as the PMUX settings are not changed).

As far as I can tell it is not possible to enable this in MPLAB, so I solved the problem by installing Atmel Studio and using the Tools -> Device Programming option to do a full Chip erase. As this programmer DOES drive the Reset pin it is able to perform ‘cold-plugging’ (See your chip’s datasheet) making it possible to escape from the disabled SWD.

Hope this one will help you guys too 🙂

[機械翻訳]
私はこれを見つけ出したと思います。

私の場合、’java.lang.RuntimeException RDDI_DAP_OPERATION_FAILED’は、私のコードがSWDピンのPMUXを再プログラムしたことに関係しているようでした。Atmel-ICEをMPLAB-Xで使用する場合、チップのリセットラインを駆動しません(PMUX設定が変更されていない限り、必要ありません)。

私の知る限りでは、MPLABでこれを有効にすることは不可能なので、Atmel Studioをインストールし、ツール -> デバイスプログラミングオプションを使用してチップの完全消去を行うことで問題を解決しました。このプログラマはリセットピンを駆動するので、「コールドプラグ」(チップのデータシートを参照)を実行することができ、無効化されたSWDから脱出することができます。

これがあなた方のお役に立てることを願っています。)