External flashchip size in various radios

Post Reply
OZ1FTG
Posts: 25
Joined: Fri Mar 29, 2024 3:52 pm

External flashchip size in various radios

Post by OZ1FTG » Thu Apr 25, 2024 5:48 pm

I have been using forum search. But don't seem to have any luck, in finding the size of the external flash chip used for (DMR-ID)

Does any of you HW Gurus have any idea of the flash size/Chip for various models ?

Ie. The models i have ...

Code: Select all

TYT        MD-UV380     : 
Baofeng    DM-1701      : 
Might be nice if you could "sneak" the flash-id into the page(s) where the cpu id is shown.
Or does that take up too much code space ?

What happens if i load to many DMR-ID's into the radio (fills the flash) will it just "barf" or will it "explode" :)
Right now i'm just loading the 283 id's

.

User avatar
F1RMB
Posts: 2643
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: External flashchip size in various radios

Post by F1RMB » Thu Apr 25, 2024 6:11 pm

This information is is the source code:
  • 4014 25Q80 8M bits 1M bytes, used in the GD-77
  • 4015 25Q16 16M bits 2M bytes, used in the Baofeng DM-1801 ?
  • 4017 25Q64 64M bits. Used in Roger's special GD-77 radios modified on the TYT production line
  • 4018 25Q128 128M-bits 16M-bytes, used in Daniel's modified GD-77.
  • 4018 25Q128 128M bits. MD9600 / MDUV380 / MD380 etc
  • 7018 25Q128JV 128M-bits 16M-bytes, KI5GZK's modified GD-77.

OZ1FTG
Posts: 25
Joined: Fri Mar 29, 2024 3:52 pm

Re: External flashchip size in various radios

Post by OZ1FTG » Thu Apr 25, 2024 7:11 pm

Thank you Daniel 8-)

Any hint about the DM-1701 flash size ??

.
Last edited by OZ1FTG on Thu Apr 25, 2024 7:44 pm, edited 2 times in total.

User avatar
F1RMB
Posts: 2643
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: External flashchip size in various radios

Post by F1RMB » Thu Apr 25, 2024 7:40 pm

OZ1FTG wrote:
Thu Apr 25, 2024 7:11 pm
Thank you Daniel 8-)

Any hint about the DM-1701 flash size ??

.
16Mbytes too.

OZ1FTG
Posts: 25
Joined: Fri Mar 29, 2024 3:52 pm

Re: External flashchip size in various radios

Post by OZ1FTG » Thu Apr 25, 2024 7:48 pm

F1RMB wrote:
Thu Apr 25, 2024 7:40 pm
OZ1FTG wrote:
Thu Apr 25, 2024 7:11 pm
Thank you Daniel 8-)

Any hint about the DM-1701 flash size ??

.
16Mbytes too.
Great

So i can (for now) load the full DMR-ID database, if i wish to ?

.


I looked at the source

Edit: According to this in - MDUV380_firmware/application/source/interfaces/gps.c:

Code: Select all

		default:
			if (voicePromptDataIsLoaded)
			{
				gpsLogFlashStartAddress = LOG_FLASH_1MB_START_ADDRESS;
				gpsLogFlashMemSize = LOG_FLASH_1MB_MEM_SIZE;
			}
			else
			{
				gpsLogFlashStartAddress = DMRID_MEMORY_LOCATION_1;
				gpsLogFlashMemSize = ((1 * 1024 * 1024) - DMRID_MEMORY_LOCATION_1); // last 832k
			}
			break;
It would seem that the code (if MCU not STM32F405xx) uses 1MB default correct ?

And 16MB if there's a "STM32F405xx MCU" in the radio , does the below STMF405xx also "Match" the TYT MCU ?

Code: Select all

#if defined(STM32F405xx)
	gpsLogFlashStartAddress = LOG_FLASH_16MB_START_ADDRESS;
	gpsLogFlashMemSize = LOG_FLASH_16MB_MEM_SIZE;
#else
Then the 16MB detection in the DM-1701 makes sense, as all "STM chips" are matched to 16MB

.

User avatar
F1RMB
Posts: 2643
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: External flashchip size in various radios

Post by F1RMB » Fri Apr 26, 2024 4:16 am

Hi,
OZ1FTG wrote:
Thu Apr 25, 2024 7:48 pm

Great

So i can (for now) load the full DMR-ID database, if i wish to ?

Yes. All STM32 based radios embed a 16Mbytes external Flash that permits to load the whole database.

.
OZ1FTG wrote:
Thu Apr 25, 2024 7:48 pm


I looked at the source

Edit: According to this in - MDUV380_firmware/application/source/interfaces/gps.c:

Code: Select all

		default:
			if (voicePromptDataIsLoaded)
			{
				gpsLogFlashStartAddress = LOG_FLASH_1MB_START_ADDRESS;
				gpsLogFlashMemSize = LOG_FLASH_1MB_MEM_SIZE;
			}
			else
			{
				gpsLogFlashStartAddress = DMRID_MEMORY_LOCATION_1;
				gpsLogFlashMemSize = ((1 * 1024 * 1024) - DMRID_MEMORY_LOCATION_1); // last 832k
			}
			break;
It would seem that the code (if MCU not STM32F405xx) uses 1MB default correct ?

And 16MB if there's a "STM32F405xx MCU" in the radio , does the below STMF405xx also "Match" the TYT MCU ?

Code: Select all

#if defined(STM32F405xx)
	gpsLogFlashStartAddress = LOG_FLASH_16MB_START_ADDRESS;
	gpsLogFlashMemSize = LOG_FLASH_16MB_MEM_SIZE;
#else
Then the 16MB detection in the DM-1701 makes sense, as all "STM chips" are matched to 16MB

.
The firmware detects the fitted Flash chip on MK22 platform.
The code you're referring to is related to the NMEA GPS logging, and it deals with the Flash type to set the location and limits for that. Of course, if the Flash is 1Mbytes, there is no room for this so it uses the DMRId storage space for this (288k), or even a bit larger if the voice prompts are not there (832k).

Cheers.
---
Daniel

OZ1FTG
Posts: 25
Joined: Fri Mar 29, 2024 3:52 pm

Re: External flashchip size in various radios

Post by OZ1FTG » Fri Apr 26, 2024 4:34 am

Thank you for an excellent explanation

.

Post Reply