DM-1701 external flash

Discussions related to the firmware code development
Post Reply
BA7IQE
Posts: 7
Joined: Thu Aug 29, 2024 12:34 pm

DM-1701 external flash

Post by BA7IQE » 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!
Attachments
Screenshot_20240901_203956.jpg
Screenshot_20240901_203956.jpg (168.97 KiB) Viewed 1234 times

User avatar
BD4SMY
Posts: 64
Joined: Fri Jan 26, 2024 10:02 am

Re: DM-1701 external flash

Post by BD4SMY » Sat Sep 14, 2024 4:34 am

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.

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

Re: DM-1701 external flash

Post by F1RMB » Sat Sep 14, 2024 5:41 am

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 ?

User avatar
BD4SMY
Posts: 64
Joined: Fri Jan 26, 2024 10:02 am

Re: DM-1701 external flash

Post by BD4SMY » 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!
Last edited by BD4SMY on Thu Sep 19, 2024 4:04 am, edited 1 time in total.

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

Re: DM-1701 external flash

Post by VK3KYY » Thu Sep 19, 2024 3:20 am

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

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

Re: DM-1701 external flash

Post by VK3KYY » Thu Sep 19, 2024 7:55 am

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 ?????

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

Re: DM-1701 external flash

Post by VK3KYY » Thu Sep 19, 2024 10:56 am

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

User avatar
BD4SMY
Posts: 64
Joined: Fri Jan 26, 2024 10:02 am

Re: DM-1701 external flash

Post by BD4SMY » 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).

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

Re: DM-1701 external flash

Post by VK3KYY » Thu Sep 19, 2024 11:29 am

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.

User avatar
BD4SMY
Posts: 64
Joined: Fri Jan 26, 2024 10:02 am

Re: DM-1701 external flash

Post by BD4SMY » Thu Sep 19, 2024 11:55 am

OK, we wll research that suggestion.

THANKS FOR YOUR SINCERELY HELP!

Post Reply