We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
mohd azka said:i am getting "Internal command error",
You need to give more details - where, exactly, do you get that?
Note that you can copy & paste from the Build Output window...
mohd azka said:stlink
Also, as the name ST-Link suggests, it is specifically designed by ST for their processors; it is not supported for other manufacturers' devices (although people have "hacked" it) - so you're really on your own for support with that.
I would strongly suggest that you use a supported debug probe; the most obvious choice would be the J-Link embedded on a Nordic Dev Kit - which is designed & supported for programming external targets.
mohd azka said:i am able to program successfully stm32f103
You would hope so - that is an ST chip!
I can't see my device inside SWDIO in debug tab
You've added the screenshots, but you haven't said when, exactly, that error box appears.
Again, copy & paste the text from the 'Build Output' window.
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.