Closed DimaStebaev closed 2 years ago
Please see my comment at the end here : https://github.com/Ralim/IronOS/issues/1170
I suspect that a part swap has gone on and IronOS does not support your hardware. Could you confirm some photos of the inside of your unit?
Описание бага После прошивки v2.16 на TS100 с DFU 3.48 железо становится кирпичом.
Воспроизвести
- Возьмите новенький TS100 с DFU 3.48.
- Загрузите файл TS100.zip из версии v2.16.
- Разархивируйте TS100.zip
- Нажмите кнопку A и подключите TS100 к ПК с Windows.
- Скопируйте TS100_RU.hex в TS100
Ожидаемое поведение После подключения питания утюг должен включиться и работать с IronOS. Вместо этого он продолжает быть выключенным. Ничего не произошло.
Детали вашего устройства:
- Устройство: ТС100
- Релиз: не удается получить аппаратную версию, модель конца 2021 г., DFU 3.48.
- Используемый адаптер питания: YH24-3
Дополнительный контекст После прошивки железо все равно входит в режим DFU. Прошивка по умолчанию v2.18 не работает и вызывает такое же поведение. Прошивка по умолчанию v2.20 работает корректно.
Дима, здравствуй. Завтра получу ts 100, но после твоего поста вкрались сомнения, можно ли его прошивать на версию v2.16. Не получу ли кирпич? Спасибо. У вас проблема решилась? Спасибо.
On Thu, Jan 13, 2022 at 02:35:38AM -0800, PUF52 wrote:
Дима, здравствуй. Завтра получу ts 100, но после твоего поста вкрались сомнения, можно ли его прошивать на версию v2.16. Не получу ли кирпич? Спасибо. У вас проблема решилась? Спасибо.
Folks, what's happening? How come the messages in Russian end up appearing in the issue tracking system? If you're just writing them that way, pretty please consider using English instead so that they would be easy to understand for everybody, not just the Russian-speaking minority.
Regarding potential "bricking", the vendor bootloader never overwrites itself so it should always remain accessible. But even if something happens to it one can always attach an SWD adapter via the USB connector and reflash. I'm using a real DFU bootloader with dfu-util and it's way more comfortable and reliable compared to the vendor's mass storage silliness.
-- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! @.***
Hi @PUF52. I suspect that the manufacturer has changed a hardware and v2.16 needs to be modified to work properly on new revision. As @paulfertser said there should be pretty low risk to completely brick a device with default DFU. Another words you may try and roll back in case of failure. I suggest you to write down somewhere a version of default firmware your TS100 will have right after you receive it.
Спасибо
@PUF52
Спасибо
These kind people deserve to be respected, since they provide us with such advanced software for free, so we should at least do our best in terms of comprehensibility, don't you think?
A very nice way of achieving relatively good translation is using this. 😊
thanks in advance kind rgards
Sorry, I didn't mean to offend anyone, but Russian is my native language, English is not. It seems to me that anyone can use google to translate text in my language. As, however, I do when reading your texts. Sorry again.
Sorry, I didn't mean to offend anyone, but Russian is my native language, English is not. It seems to me that anyone can use google to translate text in my language. As, however, I do when reading your texts. Sorry again.
Thank you! My native language is not English either, but since the developer prefers to use English, we should respect this!
kudos for reacting objectively 👍
Юрий
Четверг, 13 января 2022, 21:20 +06:00 от discip @.***>: Thank you! My native language is also not English, but since the developer prefers to use English, we should respect this! kudos for reacting objectively 👍 — Reply to this email directly, view it on GitHub , or unsubscribe . Triage notifications on the go with GitHub Mobile for iOS or Android . You are receiving this because you were mentioned. Message ID: <Ralim/IronOS/issues/1177/1012234735 @ github . com>
Hey @Ralim. I disassembled my iron and took a picture. Is the photo useful?
On Thu, Jan 13, 2022 at 11:32:26AM -0800, Dima Stebaev wrote:
I disassembled my iron and took a picture. Is the photo useful?
Yes, it shows that the PCB is marked v2.51A (so should be the same as all the irons shipped for few years now) but the MCU is from GigaDevices rather than ST (due to chip shortage). It's supposed to be a direct replacement but since it's an independent implementation it behaves a bit differently in certain edge cases.
I've seen people mentioning that GD32 didn't have the I2C bugs that were present on all STM32F103 devices, and that the workarounds can actually make the code unsuitable for GD32.
@Ralim is waiting for delivery of an iron with this MCU, and once it's in his hands I'm sure it won't take long to make the firmware compatible.
Thank you for reporting.
On Thu, Jan 13, 2022 at 10:59:49PM +0300, Paul Fertser wrote:
I've seen people mentioning that GD32 didn't have the I2C bugs that were present on all STM32F103 devices, and that the workarounds can actually make the code unsuitable for GD32.
@Ralim, found a possibly related note:
"In the ISR mode you shouldn't set BUFIE and/or POS bits before sending the address, or else it leads to an endless loop in the ISR handler as SB isn't getting cleared"
I can't tell if this applies to HAL code that's used to handle I2C or not, a quick look made me think it's more likely not.
Hello everyone! Got a soldering iron. Firmware version 2.20, DFU 3.48. Everything is working. I risked flashing at 2.16 from Ralim. Does not work, the behavior is the same as that of Dima Stebaev. I rolled back to 2.20 again, it works. Waiting for news from Ralim. Thank you.
My unit has arrived, going to give it a proper look at over the weekend as much as I can. Looks like the issues are mostly constrained to the different I2C engine.
I tried turning off DMA and it looked to fix up most of the issues for my unit here, if you have time (and patience) if you could try loading the firmware from this action: https://github.com/Ralim/IronOS/actions/runs/1686756257
And just give it a quick test to see how well it works / whats broken / does it work at all
@paulfertser I think you have found what I'm heading towards, any idea where you turned up that nugget of knowledge? Look to be running into grief in ST's hal for the I2C DMA accelerated write calls
On Thu, Jan 13, 2022 at 11:15:48PM -0800, Ben V. Brown wrote:
@.*** I think you have found what I'm heading towards, any idea where you turned up that nugget of knowledge?
On the third page of google results for "gd32f103 i2c stm32f103" there was a link to a web forum where people discussed it in russian: https://electronix.ru/forum/index.php?app=core&module=members&controller=profile&id=49725
Look to be running into grief in ST's hal for the I2C DMA accelerated write calls
The forum post says only reads are problematic, and also apparently the author was not using DMA.
I tried turning off DMA and it looked to fix up most of the issues for my unit here, if you have time (and patience) if you could try loading the firmware from this action: https://github.com/Ralim/IronOS/actions/runs/1686756257
Works good on mine with GD32! Only problem, maybe already existing also for stm32, is the bugged screen with Auto rotation.
Hello Ralim. Let me remind you, I have a new soldering iron, firmware 2.20, DFU 3.48 and problems with loading firmware 2.16. I tried to download the updated firmware I2C_Wrapper.cpp, but something goes wrong. The firmware does not load, the disk disappears, the computer writes that the disk is no longer on the computer. I can't figure out what's wrong. A rollback to 2.20 restores everything and everything works correctly.
Hello Ralim. Let me remind you,
The Chinese have switched to a new microcontroller. I hope Radim can handle it. I can't do it without a turbo button
Good afternoon @stranger271,
The Chinese ...
This might get understood the wrong way, you should say miniware
instead.
... have switched ...
Someone might also not get it the way you probably intended it to come along.
They did this not out of the blue, this decision had to be made due to chip shortage as pointed out here:
https://github.com/Ralim/IronOS/issues/1177#issuecomment-1012462721
Hey @Ralim. I disassembled my iron and took a picture. Is the photo useful?
Thank you for confirming this, and taking a lovely crisp photo.
Confirms expectations, and I think we can say anyone on DFU 3.48 has been "upgraded" to the GD32F103
.
It should be safe to run any new firmwares for testing and then roll back as far as I know.
My hold up is that my unit here seems to have lost its ability to reflash 🤣 (I use an external programmer, suspect something went wrong). So trying to ~unf$ck~ unbrick it at the moment.
In the mean time, if anyone who is keen can try the files from the github action i linked here, would love testing to figure out what else is broken other than screen rotation. Just go to that page, and download the ts100.zip to get the files.
In terms of languages, part of the problem is that I only speak English. But as you said, google translate does work well and thats what I use. The MAIN issue is that Github search does not translate. So anything said in any other language cant be searched. And given that already about 30% of the github tickets and noise is from duplicates, keeping to one language makes it easier for people to search so they open less duplicates.
So anything said in any other language cant be searched.
Very good point! 👍 I did not even think about this highly crucial one!
Also, on the language note. You can translate the entire page to another language, but if every comment is in a different language you have to switch the source language between comments and it get's very hard to follow, not to mention quote!
In the mean time, if anyone who is keen can try the files from the github action i linked here, would love testing to figure out what else is broken other than screen rotation. Just go to that page, and download the ts100.zip to get the files.
Hello @Ralim! How can I download this zip? Github says than "This artifact has expired..." Yesterday also got DFU 3.47, can test a bit.
Hello, All build artefacts expire after a bit as free storage isnt infinite :)
But, you can download it from here https://github.com/Ralim/IronOS/actions/runs/1767487554
Have made #1202 of where I've gotten to. Havent been able to make meaningful progress on getting DMA working, so fallen back to IRQ mode instead. Should perform about the same as far as users can tell.
If anyone can give it a test would be ideal.
Have made #1202 of where I've gotten to. Havent been able to make meaningful progress on getting DMA working, so fallen back to IRQ mode instead. Should perform about the same as far as users can tell.
If anyone can give it a test would be ideal.
Just tested on TS100 with DFU 3.17. Firmware works like intended as far as I can tell.
On DFU 3.48, none of the firmware is installed. Only Chinese version 2.20.
On DFU 3.48, none of the firmware is installed. Only Chinese version 2.20.
Are you sure that you flashing specifically this firmware, and not 2.16 in master?
Sure
Did you flash the hex file after unzipping it? Did you get the .RDY file ?
Шестнадцеричный, RDY не получил. На кмпьютере исчезает диск паяльника и он пишет, что этого диска больше нет на компьтере. Китайская версия 2.20 встает корректно, ничего не исчезает и процесс прошивки проходит штатно.
@PUF52 Please use english.
I'm sorry I forgot
Hexadecimal, RDY not received. The soldering iron disk disappears on the computer and it writes that this disk is no longer on the computer. The Chinese version 2.20 is delivered correctly, nothing disappears and the firmware process runs normally.
Are you getting a .ERR file? If you are you may just need to copy the file a second time. The bootloader is somewhat well known for being buggy with some systems.
And this is how the soldering iron behaves on 2 different computers and with different USB cords.
I don't get the Err file. Just a soldering iron falls off the computer
Been using it for 18 days with the Actions firmware. All good except the already told rotation screen bug.
@Gianluxx I have not been able to reproduce the screen rotation bug here. Any chance you could test a reflash of the latest master for me ?
Same issue. Only in soldering mode. In settings it shows normal
Okay can you try this action I think I've spotted the bug :)
Perfect now!
Okay can you try this action I think I've spotted the bug :)
Hi, today the TS100 arrived and I tried to flash the firmware and unfortunately without success. DFU: 3.48 (on display) (I assume I have a version with gd32f103) I will connect the TS100 to a USB port in DFU mode. I will copy the file and the disk will be disconnected, but will not be reconnected. After manual disconnection and USB connection only shows a blank disk. The firmware does not work and I have to load MINI220.hex back and everything is in its original state. I also tried the official release and the release of action from this thread, nothing worked.
i have the same problem! no other firmware is installed on dfu 3.48. only 2.20
@Gansgod Can you please eplain in more detail?
I'm testing here with 3.48 without issues.
Most likely you are running into issues that are not to do with this code repository.
If the file is not loeading onto the disk and giving you a .RDY
file, its not the firmware.
I tested on several computers with different cables and the behavior is the same everywhere. I will upload the firmware and the copy will not work properly, the disk will disconnect and no longer connect. When the power is turned on, nothing is displayed and the firmware does not work. I connect to the same port and with the same cable, I upload MINI220.hex and everything goes as it should. The file is loaded, the disk is unmounted, then mounted and showing the .rdy file. Maybe there is a problem with the flash memory mapping? Personally, it occurs to me that the bootloader stops writing and causes an error that leads to a processor reset (something like coore panic ...?) And does not even return to DFU mode. As a result, part of the firmware is already written but not complete, and this will cause a malfunction.
So firstly there is NO disk when running this firmware, this firmware does not use USB to save code space. So seeing no disk is normal when running the firmware.e
So to confirm, after you flash the hex file you are seeing TS100_EN.RDY ? (Please test with the EN build first, as its the most QA'ed).
Flash memory mapping in the 3.47, 3.48 and 3.49 is the same as all the previous versions from what I've been told.
Now, a bug in their bootloader is super common. Which is where the steps like double-copying the file, using a different pc etc.
Can you confirm exactly which file you are attempting to flash?
The file I use is a link: https://github.com/Ralim/IronOS/actions/runs/1798114842. Uploading file TS100_CS.hex. If I upload the TS100_CS.hex file, the TS100_CS.rdy file will not appear. However, if I upload the MINI220.hex file (original from the manufacturer), everything works as it should (the MINI220.rdy file will appear). I tried to use the TS100_EN.hex file and the result is the same. The unit disconnects and no longer connects, so I don't see rdy and err either. I also noticed that the display shows that the solder is in DFU mode, but I believe that this is only the last state before the processor reset and that the new firmware no longer starts, the inscription will remain unchanged. Every time I upload a new firmware, I connect the solder to 24V (disconnected USB) and test if it works.
Okay so most likely this is a computer <=> bootloader issue.
Please make sure you have already extracted the TS100_EN.hex and that you are copying using the windows built in file copy (dont use any other software).
If you are not seeing the .RDY file show up, it sounds like a bootloader bug or computer issue. Miniware's bootloader has plenty of bugs, especially on newer operating systems as FAT12 is being deprecated.
I tried copying on several computers (2 laptops and a desktop). I tried various USB (USB 3.0, USB 2.0, on board USB, expanded USB ...) and two cables on the desktop. I always used an unzipped file and windows drag and drop function. The result was always the same. TS100_CS.hex never worked and MINI220.hex always worked. Maybe the problem is caused by the file size and the DFU ends up with some error. This is probably a bug in the bootloader. How much memory does the original processor from STM have? The gd32f103TBU6 replacement has 128K flash memory. The question is whether it's really this chip or is it some other model with lower memory and it's fake.
It's two o'clock in the morning, I'm going to bed :-). Thanks for all the answers.
The bug description After flashing v2.16 on TS100 with DFU 3.48 the iron becomes a brick.
To Reproduce
Expected behavior After connecting the power, the iron should turn on and operate with IronOS. Instead it continues to be turned off. Nothing happens.
Details of your device:
Additional context After flashing the iron still enters DFU mode. Default firmware v2.18 does not work as well and causes the same behavior. Default firmware v2.20 works correctly.