PDA

View Full Version : HWK Repair- BOX_AUTH_ERROR: HWK tampered or Substitute


..::SHERAZ::..
05-20-2012, 03:28 AM
HWK Repair - Firmware[/B]

<TABLE style="MARGIN: 0px; WIDTH: 763px; TABLE-LAYOUT: fixed" class="sites-layout-name-one-column sites-layout-hbox" cellSpacing=0 xmlns="http://www.w3.org/1999/xhtml"><TBODY><TR><TD style="PADDING-BOTTOM: 10px; BORDER-RIGHT-WIDTH: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 10px; border-image: initial" class="sites-layout-tile sites-tile-name-content-1">Correction of errors -
BOX_AUTH_ERROR: HWK tampered or Substitute! in DCTxBB5 TOOLS v 2.2.0.1 and above****
and BOX_AUTH_ERROR: 9990 in UFS_SAMS 2.2.0.1 and above.


http://www.reddylab.eu/_/rsrc/1323084054061/freak/hwk-repair/1.jpg?height=270&width=400 (http://www.reddylab.eu/freak/hwk-repair/1.jpg?attredirects=0)



After a recent software update for UFS / HWK box having problems with authorization. Updating the firmware of the UFS**** with. Fbi file**** did not bring any results. Yes**** and there can be no results**** because the problem in the module itself HWK**** more precisely in its firmware. A flash can only be withdrawing from the UFS. information and wiring diagrams on the internet enough**** but I decided not to delve much into the process. information about the possibility of HWK firmware without removing it from the UFS and without connection to the service module contacts**** an invention or a competent look at things. For the firmware of the microcontroller unit (MSP430F1121A) requires the use of his pin TST**** which they brought only on service contacts (9 pin). You can see in Figure HWK module (https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6Mjg5MzlkNTA2 OWI0NjE1YQ&pli=1) . So we have on board HWK normal**** but pretty cool**** the microcontroller ( MSP430F1121A (https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6MjU3ODQ4MmI0 ZGVlODhkMA) ). Which is stitched through the BSL - Bootstrap Loader (you can read in the slau319a.pdf (https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6MjEwNGE1NjIx MjFkODFhZQ) )


(https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6Mjg5MzlkNTA2 OWI0NjE1YQ&pli=1)

(https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6MjU3ODQ4MmI0 ZGVlODhkMA) (https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6MjEwNGE1NjIx MjFkODFhZQ)
http://www.reddylab.eu/_/rsrc/1323080238089/freak/hwk-repair/hwk-mcu.jpg?height=225&width=320 (http://www.reddylab.eu/freak/hwk-repair/hwk-mcu.jpg?attredirects=0)

This flash microcontroller is very comfortable with the program MSPFET - FREE MSP430 flash programming utility ( author site (http://kurt.on.ufanet.ru/) ). You can download it from here ( version 6.1.1014 (http://www.reddylab.eu/freak/hwk-repair/mspfet_161014.zip?attredirects=0) )**** or from the author. The program under Windows**** to test the under Win 7. program works with a serial (COM) port and emulates the BSL interface. In my case I used a USB-SERIAL Converter was built on the chip FT232RL**** or rather used his FT232RL Devel Module (http://www.reddylab.eu/ft232rl-devel-module) . So as you can use the original module UM232R (http://ftdichip.com/Products/Modules/DevelopmentModules.htm) from FTDI or any other USB-SERIAL converter**** for example**** PL2303**** wiring diagrams which can be found on the Internet.

(http://www.reddylab.eu/ft232rl-devel-module) (http://ftdichip.com/Products/Modules/DevelopmentModules.htm)

For flashing use 6-pin microcontroller. Below is a table for ease of understanding -

<TABLE style="BORDER-BOTTOM-COLOR: rgb(136****136****136); BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-COLOR: rgb(136****136****136); MARGIN: 0px; BORDER-COLLAPSE: collapse; BORDER-TOP-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-COLOR: rgb(136****136****136); BORDER-LEFT-COLOR: rgb(136****136****136); BORDER-LEFT-WIDTH: 1px" border=1 cellSpacing=0 borderColor=#888><TBODY><TR><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 147px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 32px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> Contact MC
</TD><TD style="TEXT-ALIGN: center; BORDER-RIGHT-WIDTH: 0px; WIDTH: 51px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 32px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> Contact HWK
</TD><TD style="TEXT-ALIGN: center; BORDER-RIGHT-WIDTH: 0px; WIDTH: 60px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 32px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> The signal port of a PC
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 162px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 32px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> Contact FT232R
</TD></TR><TR><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 147px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 2 (Vcc) - VCC
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 51px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 7</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 60px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> -</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 162px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 17 (3V3OUT)
</TD></TR><TR><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 147px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 4 (Vss) - GND
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 51px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 8</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 60px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> GND</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 162px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 7****18****21 (GND)
</TD></TR><TR><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 147px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 23px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 7 (RST / NMI) - RESET
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 51px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 23px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 6</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 60px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 23px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> DTR</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 162px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 23px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 2 (DTR)
</TD></TR><TR><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 147px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 14 (P1.1/TA0) - TXD
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 51px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> A</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 60px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> RX</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 162px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 5 (RXD)
</TD></TR><TR><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 147px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 10 (P2.2) - RXD
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 51px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 10</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 60px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> TX</TD><TD style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 162px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 16px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 1 (TXD)
</TD></TR><TR><TD style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 1 (TEST) - TST
</TD><TD style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 9</TD><TD style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> RTS</TD><TD style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: top; BORDER-LEFT-WIDTH: 0px; border-image: initial"> 3 (RTS)
</TD></TR></TBODY></TABLE>
http://www.reddylab.eu/_/rsrc/1323083493359/freak/hwk-repair/hwk-pinouts.jpg?height=246&width=320 (http://www.reddylab.eu/freak/hwk-repair/hwk-pinouts.jpg?attredirects=0)[/URL]http://www.reddylab.eu/_/rsrc/1323083523811/freak/hwk-repair/chip_pinouts.jpg (http://www.reddylab.eu/freak/hwk-repair/hwk-pinouts.jpg?attredirects=0)



Using this converter on a chip from FTDI has pushed me to the presence of voltage 3.3V**** which generates the chip itself (FT232RL). That is**** there is no problem with its power supply IC firmware - Standard for MC 1.8 - 3.6v**** 4.1v max. Sam UFS HWK feeds voltage 3.0V**** fashionable and powered away. In addition to all on-board module HWK**** RESET of the microcontroller is pulled up to Vcc and TEST pulled up to the mass. That is**** Conclusions USB-SERIAL converter is directly connected to the service contacts HWK. To further simplify the connections I soldered HWK PIN HEADER (pin)



[URL="http://www.reddylab.eu/freak/hwk-repair/hwk-pinheader.jpg?attredirects=0"]http://www.reddylab.eu/_/rsrc/1323083698111/freak/hwk-repair/hwk-pinheader.jpg?height=228&width=320 (http://www.reddylab.eu/freak/hwk-repair/chip_pinouts.jpg?attredirects=0)

Then the jumper connected with his FT232 module for development**** which in this case plays the role of USB-COM converter.
http://www.reddylab.eu/_/rsrc/1323083949137/freak/hwk-repair/hwk-ft232.jpg?height=209&width=320 (http://www.reddylab.eu/freak/hwk-repair/hwk-ft232.jpg?attredirects=0)


Before working directly with the firmware**** USB-COM converter chip FT232R should be already connected and working**** that is**** drivers are installed and visible in Device Manager as a COM Port.(Some information about configuring the chip can be gleaned from an article on USBBit (http://www.reddylab.eu/usbbit/v1-0#5) ). So as you need something to signals from the USB-COM nebyli inverted**** it can be viewed and corrected by the utility from FTDI - FTProg (http://www.reddylab.eu/usbbit/downloads/FT_PROGv1.3.1.7z.1303148733877?attredirects=0) . ( Not a lot of information on the utility (http://www.reddylab.eu/usbbit/v1-0#6) ).
ticks in the check-boxes should not be -
http://www.reddylab.eu/_/rsrc/1323084598236/freak/hwk-repair/ftprog.jpg?height=320&width=274 (http://www.reddylab.eu/freak/hwk-repair/ftprog.jpg?attredirects=0)


For the firmware binary itself will need to be filled in by the microcontroller HWK MspFet.
( Download the archive with the firmware (http://www.reddylab.eu/freak/hwk-repair/HWK-FW-3.08.zip?attredirects=0) )
1. Run MspFet (Further work has been described for version 6.1.1014)
2. Click the SETUP button and configure the program -
http://www.reddylab.eu/_/rsrc/1323085117499/freak/hwk-repair/mspfet_config.jpg (http://www.reddylab.eu/freak/hwk-repair/mspfet_config.jpg?attredirects=0)
On the left side of the desired settings there**** except that the choice of the language program. On the right side**** select the adapter - BSL Port - port on your USB-COM (COM2 in my case) Path to V 1.60 -True (BSL versions V1.30 Lower than Support Only byte access operations. Therefore**** access to some of the memory cells will be limited**** as they WORD-orientation. ( slaa089a.pdf (https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6Nzc0MTU5Yjhk YjM1NTgzOA) 7.3.1)) 38 400 Baud - False (use different Baud Rate from 9600 may affect the stability of the bond when flashing (slau319a.pdf (https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6MjEwNGE1NjIx MjFkODFhZQ) 4/1)) port Keep Open - True (I do not know why) invert TST - False (do not invert the signal TEST) RST Invert - True (but RESET**** the normal port**** it is necessary to invert**** so the same signal can be inverted reset by checking the settings of the chip with FTProg**** as described above. But there is no need**** it's easier ismenit settings in the program that do.)


(https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6Nzc0MTU5Yjhk YjM1NTgzOA)
(https://docs.google.com/a/reddylab.eu/viewer?a=v&pid=sites&srcid=cmVkZHlsYWIuZXV8cmVkZHlsYWJ8Z3g6MjEwNGE1NjIx MjFkODFhZQ)




RST delay - 0 (Delays are not needed)
Ok**** the settings are saved. settings have been saved**** the modules are connected**** you can flash. 1.Open the firmware file 2. Choose our microcontroller - MSP430F11x1A !!! 3. Click ERASE to clear the memory IC (Trying to make a READ or VERIFY useless**** because the firmware recovery record and there is only a way to remove it and pour a new one) 4. Next**** write firmware - PROGR If all goes well**** we can see information about the successful completion of the firmware -







http://www.reddylab.eu/_/rsrc/1323086291055/freak/hwk-repair/mspfet.jpg?height=312&width=320 (http://www.reddylab.eu/freak/hwk-repair/mspfet.jpg?attredirects=0)

If the program talks about synchronization error **** then the microcontroller in the HWK is unwilling or unable to communicate with the program. There may be many reasons. Poor or not the right mix of devices**** non-functional devices. So the same problem may be trite to invert the signals. For vysneniya can play around with the inverted TST / RSR in the program settings**** try different combinations of these two points. After the firmware module is inserted back into the HWK UFS**** removing all unnecessary. After making sure to update HWK with momoschyu last HWK Update Client . I after This all worked fine -




http://www.reddylab.eu/_/rsrc/1323086924975/freak/hwk-repair/4.jpg?height=216&width=320 (http://www.reddylab.eu/freak/hwk-repair/4.jpg?attredirects=0)

Interestingly**** all resellers offer dumb flash itself UFS svom are generated FBI file on you**** or clog the bolt. PS: My "modernized" touched by new quartz pins on the board**** had to use duct tape -


http://www.reddylab.eu/_/rsrc/1323086964867/freak/hwk-repair/hwk-ufs.jpg?height=320&width=191 (http://www.reddylab.eu/freak/hwk-repair/hwk-ufs.jpg?attredirects=0)


</TD></TR></TBODY></TABLE>