

* JLink Info: Could not measure total IR len. Set JLink Project File to "D:\Software\Gamma\Gamma-S_gestern\MDK-ARM\JLinkSettings.ini"įirmware: J-Trace Cortex-M Rev.3 compiled 18:16:12įeature(s) : RDI, FlashBP, FlashDL, JFlash, GDB Fully protected Dual H-Bridge: L6205/6225. * JLink Info: Device "STM32F746IG" selected. Aircon compressor and fans, industrial control, washing- machine. I still assume, the errors are linked to the njtrst function of the PBA pin of the STM32F7.
#STM32X DEVICE PROTECTED CODE#
The subsequent jlink errors occur after starting debug session and hitting code with the gpiob configuration. Code: Select all Debug: 1106 24097 rlink.c:499 dtcrundownload(): : 51/18 Debug: 1107 24113 rlink.c:499 dtcrundownload(): : 25/10 Debug: 1108 24113 cortexm3.c:1187 cortexm3loadcoreregu32(): load from core reg 15 value 0x20000026 Debug: 1109 24113 rlink.c:499 dtcrundownload(): : 87/30 Debug: 1110 24128 rlink.
#STM32X DEVICE PROTECTED DOWNLOAD#
" appears directly after clicking download to flash (see content of output window below). The J-Link message Popup "Active read protected. I-Cache L1: 4 KB, 64 Sets, 32 Bytes/Line, 2-Wayĭ-Cache L1: 4 KB, 32 Sets, 32 Bytes/Line, 4-Way Different accuracy error types are specified for.

ROMTbl 0 : 00001000, CID: B105100D, PID: 000BB4C8 ROM Table Values for these errors are specified in the ADC characteristics section of the STM32x device datasheets. : 4000 kHzįPUnit: 8 code (BP) slots and 0 literal slots There are posts in the STM32 forum about this function - indicating potential problems when PB4 is used in the application - even though the debugger seems to not need the NJTRST. I removed the GPIO initialization of PIN PB4 - which is connected to NJTRST. Also, the jlink errors do not appear in a working copy with minimal changes. For some unknown reason, the "Active read protected" message does not come reliably.
#STM32X DEVICE PROTECTED HOW TO#

However, as you can see in the image, unlocking of STM32 devices is supported natively (upper marking in the screenshot) If you type in 'con' multiple times, does it unlock the device multiple times We also provide a tool to reset the option bytes of STM32 devices to factory default. XPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc the unlock command only supports the devices listed. Target halted due to debug-request, current mode: Thread Next, I telnet to the server and run the following commands:Ĭleared protection for sectors 0 through 67 on flash bank 0 Openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg I can't seem to get the right combination of commands to unlock the device. I've been trying all day to flash my stm32f4discovery using the OpenOCD cmd line on windows.
