hi
I am working with nordic nrf52810 soc, when i flash code using stlink v2 i am getting "Internal command error", all my connections are correct. i can see my stlink connected inside debug in keil. on the other hand i am able to program successfully stm32f103 using the same ide and programmer.
when i flash code to chip this box appears, also i cant see my device in debug tab which you can see in other screenshot.
Build output
Error: Flash Download failed - Could not load file 'E:\PROJECT_EDL\NORDIC\DeviceDownload\nRF5SDK1702d674dde\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040\s112\arm5_no_packs\_build\nrf52832_xxaa.axf'Flash Load finished at 18:41:25Load "..\\..\\..\\..\\..\\..\\components\\softdevice\\s112\\hex\\s112_nrf52_7.2.0_softdevice.hex" Internal command errorError: Flash Download failed - Target DLL has been cancelledFlash Load finished at 18:41:36
As I said, the ST-Link is specifically designed for ST devices, so I wouldn't be surprised if it's trying to do some ST-specific things - which are bound to fail on a non-ST chip.
Is it really worth the effort of battling this, or would your time be better spent using a supported debug probe?
i am using nordic ble module which dont have on board j-link, i have seen few post in which people have programmed nrf51822 using stlink, i dont know why stlink is not detecting this IC.
mohd azka said:i am using nordic ble module which dont have on board j-link
again, the J-Link on a Nordic Dev Board can be used for external targets.
mohd azka said:i have seen few post in which people have programmed nrf51822 using stlink
Yes, that's exactly what I said - but it's not the intended or supported use of an ST-Link.
If you want to go off-piste, you need to thoroughly understand what you're doing and how to make the necessary hacks
thanks for your guidance, i got jlink now, everything is working fine.