Hi there,
I am currently working on a vision sensor device that contains an Inventek ISM43340-M4G-L44-10C WiFi module.
This WiFi module contains an STM32F405OGY6TR.
While we initially used UART bootloader to flash the STM32 with the WiFi firmware, the latest design aimed to simplify programming by using JTAG/SWD with a Segger J-Link Plus and J-Flash software.
We are encountering some issues when flashing the device with this method.
It does not work reliably. It does work but often fails to erase/flash the chip.
Please see the attached error messages below.
There seems to be an issue with the CPU not halting, preventing us from programming reliably.
Are there any particular config steps that need to be taken to allow the MCU to be reliably programmed.
I should note we have tried to use both JTAG and SWD. The WiFi module has only got JTAG pins which I believe allow us to connect to the STM32 and the other Cypress radio chip on the module in a JTAG chain. When we use SWD, we connect to just one device, which is the STM32 (I know this because SWD programming has worked before).
I'd appreciate any advice on what could be done to allow us to flash this chip reliably using JTAG/SWD.
![](https://forum.segger.com/index.php/Attachment/4508-program-error1-PNG/?s=c8924ec5738a463e0f156e75cd4cf0d48b675534)
![](https://forum.segger.com/index.php/Attachment/4509-erase-error-PNG/?thumbnail=1&s=c8924ec5738a463e0f156e75cd4cf0d48b675534)
Many thanks
I am currently working on a vision sensor device that contains an Inventek ISM43340-M4G-L44-10C WiFi module.
This WiFi module contains an STM32F405OGY6TR.
While we initially used UART bootloader to flash the STM32 with the WiFi firmware, the latest design aimed to simplify programming by using JTAG/SWD with a Segger J-Link Plus and J-Flash software.
We are encountering some issues when flashing the device with this method.
It does not work reliably. It does work but often fails to erase/flash the chip.
Please see the attached error messages below.
There seems to be an issue with the CPU not halting, preventing us from programming reliably.
Are there any particular config steps that need to be taken to allow the MCU to be reliably programmed.
I should note we have tried to use both JTAG and SWD. The WiFi module has only got JTAG pins which I believe allow us to connect to the STM32 and the other Cypress radio chip on the module in a JTAG chain. When we use SWD, we connect to just one device, which is the STM32 (I know this because SWD programming has worked before).
I'd appreciate any advice on what could be done to allow us to flash this chip reliably using JTAG/SWD.
Many thanks