I am using crossworks version 4.2 with stm32 CPU support package 3.30 and am having some trouble when using the jtag (occurs with both crossconnect and st-link V2) to download firmware.
Unless I do "Erase All" first, I usually get "memory write operation failed" towards the end of the download. If I do an erase all first, then it works every time.
Immediately after receiving this error I can shutdown crossworks and switch to STM32CubeIDE and the jtag works as expected. This switch does not require any power cycling of the target or plugging/unplugging of the stlink usb.
What might the problem be? Is there some bug with the loader script?
Please sign in to leave a comment.