

Allan Stark
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Allan Stark
-
-
On 2/13/2022 at 12:10 AM, acidwise said:
Allright, there should be instructions for an average user anyway, just hard to find time for it. I would suggest to remove the board completely for soldering and programming, but this is not really necessary. You can just solder the wires to the PCB as it is. The pinout is defined in arduino_hssp/issp_defs.h
With default settings, the connection should look like this:The pinout for other arduinos will be basically same, unless you edit issp_defs.h. Using RAW instead of VCC pin for a USB-powered (not with 12V or so external supply attached) Arduino is OK. All you need regarding the Arduino software is discussed in one of the previous posts.
To flash the chip, you will need:
- Prepare the Arduino HSSP programmer: program your Arduino with the arduino_hssp sketch via Arduino IDE. This can be done under Windows.
-
Prepare a Linux machine (e.g. VM) and copy psocdude and the firmware to it. I used a folder /etc/psocdude, but had to claim owner rights and allow executing scripts in it:
sudo chown -R ubuntu:ubuntu /etc/psocdude sudo setfacl -R -m u:ubuntu:rwx /etc/psocdude
- Connect your Arduino to the Warthog PCB, then to your computer and then tunnel the USB device to your virtual machine.
-
In the VM, open Terminal, go to your psocdude folder and make a backup first:
sudo psocdude -C psocdude.conf -p CY8C24894 -c arduino -P /dev/ttyACM0 -b 115200 -U flash:r:backup.bin:r
- Optional: use a hex editor to replace the last 64 bytes in TM_Warthog_Throttle_v23.bin with the respective part of your backup.bin, since it seems to contain calibration data, as discussed here and here.
-
Flash the chip:
sudo psocdude -C psocdude.conf -p CY8C24894 -c arduino -P /dev/ttyACM0 -b 115200 -U flash:w:TM_Warthog_Throttle_v23.bin:r
- Disconnect the Arduino from PC and PCB, connect at least the RH_H1X7 and plug in the throttle for a test.
- If the throttle is recognized, congratulations! Proceed with calibrating it by using the TM software.
This is how successful programming looks like:
Usually the Arduino HSSP is connected as /dev/ttyACM0 (USB ACM device). You can check it by using:
dmesg | egrep --color 'serial|tty'
And here is my PCB with a swapped chip, added HSSP header and ESD protection for VCC and USB (marked):
Yesterday I finally managed to try to reflash the PCB. I had an Arduino UNO controller and a Kali Linux laptop.
Pin VCC (PCB) was connected to pin PWR/5V (Arduino UNO) and GND to the Arduino's GND next to the 5V pin. Unfortunately, I got the error "psocdude: stk500_recv(): programmer is not responding" when trying to backup, so I did not reflash.
The PCB was completely removed from the throttle case, only the USB cable remained. I connected PCB to the Arduino and Arduino to my laptop.JST XH1.25 connectors turned out to be of poor quality and a couple fell apart when removing the cables, so I ordered new ones to replace. It's strange that Thrustmaster, with such thick metal of device, saves so much on conventional wiring...
-
12 hours ago, acidwise said:
I would say, flashing is worth a try. If it does not work out, there is always an option to replace the chip.
I'll probably try the flashing, because still have nothing to lose.
I already have an Arduino Uno. If possible, please tell me the procedure (to which pins on the Arduino and PCB I need to connect cables, do I need to remove the PCB from the throttle, which Arduino libraries to use, etc.).Thank you very much for your help!
-
28 minutes ago, acidwise said:
Pity the bootloader method did not help. Does your PC recognize the device at all?
It is actually normal, that microcontrollers need a programmer. USB flashing with Arduino is a luxury, which is available to us due to a preinstalled bootloader and/or additional chips on the board.Unfortunately no.
Windows Device Manager shows this device as:
Unknown USB Device (Device Descriptor Request Failed)
Windows has stopped this device because it has reported problems. (Code 43)
A request for the USB device descriptor failed.I tried to connect this throttle to another PC with Win7 and USB2.0 ports, but got the same result with bootloader method.
-
1 hour ago, acidwise said:
Glad if that can help!
1. It is possible to reflash a chip even with a damaged USB part. However, in this case the joystick will not be recognized and a replacement will be necessary.
I have some chips at hand now.2. If there appears a plug-and-play connection sound when you plug your device in, the USB connection is fine. It seems the firmware is damaged and the chip only needs to be reflashed. I would suggest the bootloader method first.
3. It should be possible with most of the Arduino boards, just make sure to select proper pins or adjust the pin definitions in arduino_hssp/issp_defs.h accordingly. @walmis has a version optimized for STM32F103 "Blue pill", which in its turn has clones selling for 2$.
Be prepared for some hassle with Linux though, there were some issues installing the dependencies, but in the end it worked out for me. Unfortunately I did not document it well enough to share. Feel free to ask questions / show your way - it will be helpful for others.
HWarthog_Bootloader_Method.pdf 1.57 MB · 0 downloads
@acidwise
Thank you for the answer!
Unfortunately I tried to use bootloader method many times on my PC with Windows 10 USB3.0 and USB2.0 ports as well as on my laptop with Win7.This did not help, apparently the loader is also damaged.
It is strange that for this controller it is impossible to perform initial firmware flash via the USB port, but it is necessary to connect it with a cable to an external controller.
-
Thank you for your researching work!
I have some questions:
- Is it possible to reflash an existing CY8C24894-24LTXI chip or is it necessary to look for a replacement?
- How to determine that the chip is out of order and needs to be replaced? All 5 LEDs in the upper part of my HOTAS Throttle briefly light up when I connect the device to the USB.
- Is it possible to flash through the Arduino UNO or is it necessary to have a Leonardo or Pro Micro?
-
28 minutes ago, SL PAK said:
Он делает еще платы? Можно заказать?
Ответил, что есть в наличии.
-
16 minutes ago, SL PAK said:
Выше ссылка на форум Ил-2 и там рекомендуют писать в личку Кремлю, который делает платы на замену.
Да, спасибо, уже связался с ним.
-
Добрый вечер.
У меня к сожалению такая же проблема. HOTAS Warthog Throttle был подключен к USB3.1 портам вместе с Warthog-овским джоем. Позавчера РУД перестал корректно определяться в системе, с точно такими же ошибками. При подключении РУДа к ПК кратковременно загораются верхние 5 светодиодов, после чего РУД видится в системе как неизвестное устройство:
Unknown USB Device (Device Descriptor Request Failed)
Windows has stopped this device because it has reported problems. (Code 43)
A request for the USB device descriptor failed."Комплект проработал исправно почти ровно 3 года.
Пытался восстановить через бутлоадер по мануалу из FAQ-а с сайта Трастмастера (путем зажатия пальцами двух кнопок и подключением к USB) как на оригинальной системе (Windows 10), так и на ноутбуке с 7-кой. Пробовал подключать в разные порты на материнках, в т.ч. USB2.0. К сожалению без результата... На всякий прозвонил USB кабель, хотя на нем нет мест перегиба.
Пробовал писать в саппорт, молчат, да и не на гарантии он уже.
Устройство можно выкидывать или есть надежда как-то оживить? Можно ли контроллер (судя по фото там Infineon CY8C24894-24L) прошить через USB или проблему можно решить только заменой платы? Есть ли возможность заказа платы либо починки в Киеве?
Post MotherBoard Specs Of Bricked TM Warthogs Here Please
in Thrustmaster
Posted
Yes, I compiled psocdude and installed all dependencies and dev libs. /dev/ttyACM0 was present, when I connected Arduino to the USB.
TX/RX Arduino LEDs light up when I run the psocdude, but then go out and I get this error.
Do I need to connect the PCB to the USB as well?