Page 1 of 1

DM-1701 external flash

Posted: Fri Aug 30, 2024 1:42 am
by BA7IQE
May I ask where the external flash memory space of DM-1701 starts to be idle and unused? I would like to try storing the Chinese character table in it,thanks!

Re: DM-1701 external flash

Posted: Sat Sep 14, 2024 4:34 am
by BD4SMY
BA7IQE wrote:
Fri Aug 30, 2024 1:42 am
May I ask where the external flash memory space of DM-1701 starts to be idle and unused? I would like to try storing the Chinese character table in it,thanks!

TO @VK3KYY @F1RMB

It''s helpful for Chinese User if you can give @BA7IQE the introduction about the free space for the Chinese GB2312 Fonts Library. Thanks a lot!

Screenshot_20240901_203956.jpg show the Menu in Chinese, such as Firmware Info / Option / Last Heard / Radio Info / Satellite / GPS / Zone.

Re: DM-1701 external flash

Posted: Sat Sep 14, 2024 5:41 am
by F1RMB
This has already been discussed few weeks ago, there is no free space available in the external flash.
Chinese support has also been discussed, multiple times. Unlike Japanese, AFAIK there is no Katakana equivalent, the required minimum glyphs to support Chinese language is way to high to fit the remaining left space (as Latin has to also to be displayed).

So, does Chinese language has reduced glyph charset ?

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 1:31 am
by BD4SMY
F1RMB wrote:
Sat Sep 14, 2024 5:41 am

So, does Chinese language has reduced glyph charset ?
Now only import about 7000 word of Chinese normal character in MCU ROM for the test 3rd version firmware. That quantity is include 100% of GB2312 charset, but so small less than GBK / GB18030 / Unicode.
because he don't know where is free and can be used / overrided in Flash smoothly. we hope to let that charset all in Flash and need about 120KiB space. So it's more helpful if you can give us the Eeprom Layout Explanation and where we can use freely, thanks!

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 3:20 am
by VK3KYY
There is no reserved space in the Flash.

Users can mostly fill the Flash with DMR ID data if they upload the entire DMR ID database into the radio

You would have to limit the DMR ID data upload size, perhaps in your version of the radio, to prevent that data overwriting any fonts you put in the Flash

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 7:55 am
by VK3KYY
BD4SMY wrote:
Thu Sep 19, 2024 1:31 am
F1RMB wrote:
Sat Sep 14, 2024 5:41 am

So, does Chinese language has reduced glyph charset ?
Now only import about 7000 word of Chinese normal character in MCU ROM for the test 3rd version firmware. That quantity is include 100% of GB2312 charset, but so small less than GBK / GB18030 / Unicode.
because he don't know where is free and can be used / overrided in Flash smoothly. we hope to let that charset all in Flash and need about 120KiB space. So it's more helpful if you can give us the Eeprom Layout Explanation and where we can use freely, thanks!
How much space is required for the Chinese fonts e.f. 500kB, 1Mb, 2Mb etc ?????

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 10:56 am
by VK3KYY
BD4SMY wrote:
Thu Sep 19, 2024 1:31 am
F1RMB wrote:
Sat Sep 14, 2024 5:41 am

So, does Chinese language has reduced glyph charset ?
Now only import about 7000 word of Chinese normal character in MCU ROM for the test 3rd version firmware. That quantity is include 100% of GB2312 charset, but so small less than GBK / GB18030 / Unicode.
because he don't know where is free and can be used / overrided in Flash smoothly. we hope to let that charset all in Flash and need about 120KiB space. So it's more helpful if you can give us the Eeprom Layout Explanation and where we can use freely, thanks!
Look in codeplug.h

Code: Select all

#define FLASH_ADDRESS_OFFSET  (128 * 1024)
If you change this line, it will affect the location of the location of the virtual start of Flash memory used by the firmware

i.e I think if you change this to e.g. (1024 * 1024), then the flash address from 128k to 1024 will not be used.

To read / write to this you need to use the EEPOM adddress range. i.e the area above 128k to < 1024k should be unused.

Note. If you change this, all the data in your radio will be effectly corrupt, e.g. codeplug, DMR ID , Keps etc etc

So you would need to reload everything again from the CPS.

Also. I didn't try this, so there could be some side effects which I didn't consider.

NOTE. THIS ONLY WORKS ON RADIOS LIKE THE UV380/ DM1701/ MD9600/ MD2017 which have no EEPROM chip. IT WILL NOT WORK ON THE MK22 radios including the GD77 and DM1801 etc

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 11:17 am
by BD4SMY
VK3KYY wrote:
Thu Sep 19, 2024 7:55 am

How much space is required for the Chinese fonts e.f. 500kB, 1Mb, 2Mb etc ?????
As I metioned, now we use only about 200KB (GB2312 font 11*12 charset) in MCU, and if we add the Chinese input later, may we need about 300KB.

if use GB18030-2022 FULL font charset (87,887 characters), maybe about 1.5-1.8MB in the future (if we can do).

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 11:29 am
by VK3KYY
BD4SMY wrote:
Thu Sep 19, 2024 11:17 am
VK3KYY wrote:
Thu Sep 19, 2024 7:55 am

How much space is required for the Chinese fonts e.f. 500kB, 1Mb, 2Mb etc ?????
As I metioned, now we use only about 200KB (GB2312 font 11*12 charset) in MCU, and if we add the Chinese input later, may we need about 300KB.

if use GB18030-2022 FULL font charset (87,887 characters), maybe about 1.5-1.8MB in the future (if we can do).
OK. See my post above about some code you could try changing. To reserve some space.
i.e if you need ~2Mb, you need to change

Code: Select all

#define FLASH_ADDRESS_OFFSET  (128 * 1024)
to probably

Code: Select all

#define FLASH_ADDRESS_OFFSET  (2 * 1024 * 1024)
BUT.
I didn't test this... There may be some effects I did not consider.

Re: DM-1701 external flash

Posted: Thu Sep 19, 2024 11:55 am
by BD4SMY
OK, we wll research that suggestion.

THANKS FOR YOUR SINCERELY HELP!