ThermoFisher Sorvall Legend XTR Centrifuge Main PCB Repair - Flashing the MCU  - Page 1
Forum section: electronics / repair

author: fmashockie
author_rank: Frequent Contributor
timestamp: April 03, 2024, 02:40:05 pm
content: Hey y'all! I am struggling with attempting to flash a Infineon XC164CS-16F micro. This type of microcontroller is used on the mainboard of centrifuge that I am trying to repair. The micro definitely died so I did replace it with a new one, however, I am struggling to program it. I did place this topic in the microcontroller section of the forum, but since it is a repair as well, I thought I would place it here. I do not mean to spam - if mods/admin think it should be deleted, I understand.I have only flashed a micro one other time - an STM32 series, and with some help, it was relatively straightforward. However, with this Infineon series micro, I am struggling to find adequate info/resources to perform this flash. They give a lot of examples using some of their evaluation/starter boards, but I am hoping to flash the chip from a working centrifuge mainboard in-circuit (without removing it from the board).I have downloaded Infineon's MemTool software which seems easy enough to use if I could get the micro to connect. I have tried putting the micro in BSL mode, but I'm not sure if I have it right. Right now I have tried the following:For BSL mode, I configured the following pins as stated below, and reset the micro by pulling pin 1 RSTIN low:EA pin 66 = HighALE pin 65 = LowWR pin 64 = HighRD pin 63 = LowI have the following pins connected to a UART to USB converter FTDI C232HD cable:RxD0 P3.11 pin 49 connected to TxD of cableTxD0 3.10 pin 48 connected to RxD of cableI've tried both default Target files in MemTool and creating my own Target file, but I always get the same result when trying to connect (see attached photo).One thing I did notice is that when a serial com port is selected (that is what my FTDI cable is identified as), MemTool gives the option to provide RTS/DTR handling instructions. I'm not sure what they should be, but I'm wondering if that is part of the reason why it fails to connect.I've also included a schematic of micrcontroller section of the board I am trying to repair. Also, here are links to the user manual for the XC164CS-16F and some additional resources I've been using to try to accomplish this.XC164CS-16F user manual - chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.infineon.com/dgdl/xc164_um_v2.1_2004_03_sys.pdf?fileId=db3a304412b407950112b40ae71906bfXC164CS Easy Kit Board manual - chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.farnell.com/datasheets/17493.pdfInfineon MemTool for XMC1000 family - chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.infineon.com/dgdl/Infineon-TOOL_Tutorial_Memtool_XMC1-TR-v01_00-EN.pdf?fileId=5546d462525dbac401530e93cdc9061fIf there's anything else I can include so that you guys can better assist me, please just let me know. I would greatly appreciate anyone's help with this!Thanks!-Frank

author: fmashockie
author_rank: Frequent Contributor
timestamp: April 10, 2024, 12:36:11 pm
content: Alright y'all so I decided to change the subject of this topic to make this easier to find for people looking to perform this repair.So I was able to figure out how to flash the MCU on this mainboard. I decided to do a video on the process. I also discuss other likely failure modes of the main PCB that I've come across, as well as repairs to the lid lock devices.I have attached the .hex file that includes the programming code as well.Hope this is helpful to someone!