summaryrefstree
path: root/MCU/STM32/.other/Segger/Chinese/readme.txt
blob: ae579102c554a57f08fca5a758df5fcd44d0f697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44


To restore the firmware, you need to follow the instruction from http://www.sonsivri.to/forum/index.php?topic=41726.50
The best part ? It works from Linux.

For the step 9, you'll need the binary image to flash; use that one V8_Firmware_NoSerial_(crackn).
It's from the same forum than above but without password and without additional useless .exe files.

Short step-by-step:

1. download and install SAM-BA package from atmel.com (http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx)
2. open the j-link case
3. identify the ERASE (pin 50) / TST (pin 40) jumpers/pins
4. short ERASE jumper to pull-high and connect the jlink to usb; wait for about a minute and disconnect usb
   ("pull-high", means set a jumper between the ERASE pin and the 3.3V pin next to it.)
5. break/remove the ERASE jumper and short the TST jumper and repeat second half of previous step (connect usb, wait 1 minute and disconnect)
6. break/remove the TST jumper and reconnect USB
7. your jlink should now be identified as AT91 USB to serial adapter and a COM port should be assigned to it - if this doesn't happen repeat from step 3.
   Something like  cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device  should appear in syslog or dmesg
8. open SAM-BA program; select COM port that was assigned to your jlink and in board select "at91sam7s64-ek"; click CONNECT
9. select "FLASH" and select the BIN file you downloaded before and select to load the firmware into flash; the application will ask you if you want to unlock - select YES; at the end of programming there will be a similar question to LOCK - select NO! (very important)
10. congratulations you are done, reconnect the device and you should have a working jlink

The previous step will reflash with a firmware from 2009.
Info : J-Link ARM V8 compiled May 27 2009 17:31:22

Quite old and I prefer to have the latest one.
Fortunately, the firmware you just flashed has a fake SerialNumber set to -1 and it happens to be enough
to let the J-Link Configurator tool to flash it to the latest firmware without bricking it.
This time you'll need a windows machine. I used a Windows10 image under vmware and it worked fine.

1. go to https://www.segger.com/jlink-software.html and fetch the Windows software pack. The one I used was version 5.00g.
2. install it and run the J-Link Configurator.
3. It should detect the probe and allow you to update it to the latest firmware
4. Congratulations, you are done. Reconnect the device and you should have a working J-Link this the latest firmware
Info : J-Link ARM V8 compiled Nov 28 2014 13:44:46

While origin of the binary firmware used in this tuto remains unknown, several posts suggest to modify the 'GDBFull' string to either 'GDBFULL' or 'GDB'

From http://www.sonsivri.to/forum/index.php?topic=41726.msg143919#msg143919:
    After found the BIN file, you have to open it with an hex editor and change the string "GDBFull" with "GDB"
    and also change the serial number.
    As far as I remember the serial number is not a string but just raw hex data nearby the address where the "GDBFull" string is located.
    Remember the raw data are little-endian. For the new serial number use something like "4054xxxx" where xxxx are random numbers.