4142 views|1 replies

931

Posts

3

Resources
The OP
 

CH549EVT development board test - solution to the problem of data segment exceeding the limit [Copy link]

After completing the driver of LCD5110, I started testing the timer. After adding timer.c, the compilation failed. A careful inspection revealed that the data exceeded the limit (see screenshot), data=151.6, far exceeding the limit of 128.


Before this, data=101.5 (see the figure below), so it can be compiled normally.

I carefully checked the program and found that the touch button occupied the data memory. The UINT16 PowerValue[16] data alone took up 32 bytes. For this reason, I compressed the data index to 8 and compressed another related array UINT8C CPW_Table[16] by half. After compilation, data=71.5.

After testing, the touch buttons function basically normally and the memory occupied by data is reduced by 30 bytes.



This content is originally created by EEWORLD forum user hujj . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from MCU

Latest reply

Very good, learned something   Details Published on 2019-7-5 16:11
 

45

Posts

0

Resources
2
 

Very good, learned something

This post is from MCU
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list