Good day,
I may have a mistake in the schematics or wiring, though this setup doesn't work and returns error:Establishing connection : FAILED! The device is not responding. (BFW: 3053)
Here are couple questions to help clarify the issue:
Is there anything wrong or missing in the wiring diagrams ?
Is the crystal clock required for flahsing, ie in case there's an issue with the Xtal, should we stillbe able to connect/flash with only these pins : SWDIO/SWCLK/_RES/Gnd/Vcc ?
Are these the min. correct which i found from manual:Vcc, Gnd, Swdio, Swclk, /Res
Any hints to start debug the issue ?
Thanks & regards,
Below more infos & diagrams,
Jean-François
Renesas Device Partition Manager version: 1.7.9.0 by Renesas Electronics Corporation
Starting connection with the following settings: Device family : RA Emulator information : - Emulator type : Renesas E2 Lite emulator - Connection interface : SWD - Emulator selected : Auto - Supply voltage (V) : 3.30 Connection speed (Hz) : Default connection speed Display errors in : English
Connecting... Loading library : SUCCESSFUL! Establishing connection : FAILED! The device is not responding. (BFW: 3053)
Disconnecting...DISCONNECTED.
----------SUMMARY OF RESULT----------Connection : FAILED! -------------END SUMMARY-------------
Dear Jean-François,
Thank you for sharing the schematic and detailed information. Upon reviewing your design, the SWD connections (SWDIO, SWCLK, RESET, VCC, and GND) appear correct, and the external crystal is not required for flashing.
Please ensure that the MD pin is pulled LOW during reset to enable programming mode, as this is a common cause of the "device not responding" error. Also, verify that the target VCC is stable at 3.3V and that the RESET line is not held low. If the issue persists, try lowering the debug clock speed.
Let us know if the problem continues!
Kind regards,
PS
Good morning, Thanks for support,
I tried pulling down the MD which did not change the situation, and various reset configurations (Low, High Z in the flasher tool).
At the scope, the Reset signal from E2 Lite flasher is held low during the initialization sequence, and rises after fail, apparently.
Is there any more tests i can do, or documentation about the signals so i can monitor them and find the issue cause ?
The circuit is essentially powered by E2 lite with /Reset, Vcc, Gnd, Swdio/clk connected.
As i forgot MD signal wiring, i attach an external jumer from pins 26+27 to Gnd (MD P201 + P200) at all times during boot,with a pull down 4.7k or a straight wire, both did not succeed.
Speed
I understood MD was pulled High internally and does not require external pull up / down, though pulling MD down results in USB boot (which is not the case), hence i don't understand why we should pull MD low per your mention.
Ps; about xtal
If related to the issue, i attached a 24MHz crystal at the oscillator pins, it will need to be changed to 12 MHz, and the clocks with 24M cannot be properly set (Max 16 MHz as i understood). I'm not sure if that could be any issue, although i can't even connect for flashing and for example set external clock.
Thanks, Regards
Hello,
You should pull the MD pin low only if you want to put the device into boot mode and communicate with serial programming via USB interface (USB boot mode) or UART channel 9 interface (SCI boot mode).
RA4M1 does not support SWD interface via serial programming so MD pin should stay high to program the device via SWD. To avoid manual switching of MD input level you can connect P201/MD with P300/SWCLK pin and let the emulator handle the MD pin level automatically.
https://www.renesas.com/en/document/mat/e2-emulator-e2-emulator-lite-additional-document-users-manual-notes-connection-ra-devices?srsltid=AfmBOopGSFgLoaIeo4n_BZKCzWXntRWx8-4ovzy7U3xIrfE4BxLIlD3M
You should handle any unused pins of the device according to section 19.4 Handling of Unused Pins of the RA4M1 hardware manual.
https://www.renesas.com/en/document/mah/renesas-ra4m1-group-users-manual-hardware?r=1054146
It is also important to connect VCL pin as per below instructions:
Thank you,
I had indeed a wrong connection from VCL to the main supply (3.3V or 5V).For curiosity, would that have damaged the chip ? The E2 Lite is supplying 3.3V, should it work anyways or is that destrive Voltage and the reason to failure ?
I'll check & fix potentially the other pins too and thanks for support.
Regards
It could be the reason of failure because the device (and flash) is not properly power supplied.
Any idea further ? The signals were patched on test prototype and looking like below capture.Fixes:
Is this normal that Reset keeps low ?
Renesas v3.18 Flasher with:
Thanks
Scope screencaps as PDF :
Please check if your connections are equal to the recommended connections on section 2.4:
also please share your updated schematics for review.
Thanks there you go,
The wiring seems ok, i rechecked many times, only thing is the Swcld/Swdio/Reset do not seemsalive ; even the flasher v3.18 when set to high impedence, keeps the reset line grounded.
I'll do another check on wiring, i'm using the 14 pin and Dupont wires attached to Board/MCU.
Purchased a spare E2-Lite to check if it has somehow failed, and trying to make a modifiedsample board programming well.
Schematic was updated as follows:
https://jean-francois-simon.fr/uploads/renesas/schv2.jpg
This connection is wrong:
SWDIO and SWCLK signals are not connected with each other:
It's only weak pull-up for the lines (defined state when not in use).Is it best to leave them NC ?