Error[e16]: Segment DATA16_C (size: 0xac44 align: 0) is too long for segment.如何解决。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Error[e16]: Segment DATA16_C (size: 0xac44 align: 0) is too long for segment.如何解决。
Error[e16]: Segment DATA16_C (size: 0xac44 align: 0) is too long for segment.At least 0xa12 more bytes needed.The problem occurred while processing the segment placement command "-Z(CONST)DATA16_C,DATA16_ID,DIFUNCT,CHECKSUM=5C00-FF7F",where at the moment of placement the available memory ranges were "CODE:5d4e-ff7f"
Reserved ranges relevant to this placement:
5c00-5c27 CSTART
5c28-5d4d ISR_CODE
5D4E-FF7F DATA16_C
Error while running Linker
Total number of errors:1
Total number ofwarnings:0
应如何解决?请给出详细方案。谢谢。
不知您现在使用的是哪款芯片?
根据您的详细错误提示,您缺少const定义。
您可以尝试将 memory model 改为 large 并且更新 linker file 以便存储 CONST和ID数据