RT3S firmware won't run

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Fri Jan 27, 2023 10:00 pm

I've just uploaded the uncropped version to the same folder

https://opengd77.com/downloads/MDUV380/Tests/

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 2:21 am

For anyone watching this thread

It appears that the basic initialisation is working OK, e.g. GPIO, however as soon as the RTOS is started the firmware seems to hang.

I wonder whether TYT have replaced the MCU in the radio with a cheaper version, possibly with less RAM

Someone would need to open their radio and take a photo of the STM32F4xx chip to confrim if they have done something like that

There are also other manufacturers in China who make STM32 clone chips, however I don't know if there are any STM32F4 clones.
I know there are many STM32F1xx clones

I know a company called GigaDevices makes lots of Clones,

https://www.gigadevice.com/products/mic ... 05-series/

These devices are 100% the same as the STM32F405

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 7:07 am

This test firmware should show the CPU device ID and revision and signature

downloads/MDUV380/Tests/OpenMDUV380_sho ... ersion.bin

The correct values are

DEV ID:0x0413
REV:0x1007
SIG:0x0413

The unknown CPU has a revision number of 9, which is not a valid STM CPU revision

Unfortunatly it appears that the CPU crashes in the FreeRTOS initialisation, which is not code that we wrote.

I could attempt to update to a newer version of FreeRTOS source code, if one is available, however FreeRTOS is only intended to run on official STM processors and may not run on clones.

Edit.
I checked whether we could potentially change to use Chibos RT (OS), which I think OpenRTX and the official firmware both use.
But we can't do this because Chibos has conflicting license conditions, unless we pay for a license.
And with a paid license, I would have to track and manage each installation of the firmware and lock it to individual radios, and not allow the source code to be released as it would show how to unlock from each radio

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 7:12 am

MacLEOD wrote:
Sat Jan 28, 2023 7:10 am
Does not work.
Colored "snow" on the screen after flashing.
OK. It worked for other people.

Looks like multiple different versions of the new radio

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 7:18 am

MacLEOD wrote:
Sat Jan 28, 2023 7:17 am
Ok, I'll waiting for a fixing this problem...
Not sure it can be fixed.

The CPU may not be compatible with the operating system used by the firmware.

Its a totally unmarked CPU that is now in this radio

Even if we could get it to work somehow with this CPU.

TYT could change to a new CPU next week

I do not have the time or money to play whack-a-mole

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 7:19 am


VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 7:22 am

Yes. But it probably shows Rev:9

So its a fake CPU

This is just a test application its not the firmware

I just added some more hard coded delays to make the display data transfer work

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: RT3S firmware won't run

Post by VK3KYY » Sat Jan 28, 2023 7:29 am

MacLEOD wrote:
Sat Jan 28, 2023 7:25 am
That is, the firmware will not work with my radio?
Not if the REV is 9

1DangerMouse
Posts: 20
Joined: Sun May 03, 2020 12:31 am

Re: RT3S firmware won't run

Post by 1DangerMouse » Sat Jan 28, 2023 11:00 am

Yes The Test Bin Version Firmware Works on my GPS Version.

Mine is
DEV ID: 0X0413
REV: 0X9
SIG: 0X0413

G4EML
Posts: 919
Joined: Sat Nov 16, 2019 10:01 am

Re: RT3S firmware won't run

Post by G4EML » Sat Jan 28, 2023 4:31 pm

As Roger said, if your radio returns REV: 0x9 then it will not at the moment work with OpenGD77.

None of the developers has one of these radios, so it is almost impossible to develop a fix.


Just for completeness My RT3S returns REV: 0x100F which is different to Rogers but still works OK.
My MD390 returns REV: 0x1007 which is the same as Rogers.

Colin G4EML

Post Reply