迪文科技论坛

 找回密码
 立即注册
搜索
查看: 921|回复: 4

[Question] Uploading file to flash with UART command

[复制链接]

25

主题

33

回帖

712

积分

高级会员

Rank: 4

积分
712
发表于 2020-9-15 14:26:39 | 显示全部楼层 |阅读模式
Hi, I would like to upload file to display flash with UART from Arduino. What is the command to upload file? What response should I expect? Do I need to restart the display after that?
回复

使用道具 举报

0

主题

220

回帖

2362

积分

金牌会员

Rank: 6Rank: 6

积分
2362
发表于 2020-9-15 15:34:48 | 显示全部楼层
Tell me the specific model of the screen you are using? For example: DMT**** or DMG****
Is it convenient to tell your company name?
回复

使用道具 举报

25

主题

33

回帖

712

积分

高级会员

Rank: 4

积分
712
 楼主| 发表于 2020-9-15 17:47:09 | 显示全部楼层
Sorry forgot to mention the screen. I have DMG85480C050_03WN.
回复

使用道具 举报

25

主题

33

回帖

712

积分

高级会员

Rank: 4

积分
712
 楼主| 发表于 2020-9-19 15:45:55 | 显示全部楼层
So I found that I need to send these UART commands

Sending file content (13TouchFile.bin) to 0x8000 RAM:
5AA5 0582 8000 FFFF
Send write command to flash
5AA5 0F82 00AA 5A02 0068 8000 1770 0000 0000

My question is do I need to terminate the file end somehow?
I noticed that DGUS sends file by UART like this "5AA5 0782 8000 FFFF 0000" instead of my command "5AA5 0582 8000 FFFF".
When do need to terminate file with zeros at the end?
回复

使用道具 举报

0

主题

106

回帖

959

积分

高级会员

Rank: 4

积分
959
发表于 2020-9-19 19:14:31 | 显示全部楼层
Hotter 发表于 2020-9-19 15:45
So I found that I need to send these UART commands

Sending file content (13TouchFile.bin) to 0x8000 ...

Hello! After you upload to FLASH through UART,AA this instruction, after the execution, the CPU automatically reset, also automatically stopped, you can determine whether the high byte D11 inside is zero, if it is zero has been sent, not zero has not been sent to complete.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2024-12-28 16:59 , Processed in 0.087293 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表