打印

超过了256个Byte就已经报错了

[复制链接]
414|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ousj|  楼主 | 2019-9-1 19:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
TE, RAM, area, ge, lm
PSoC Designer 的软件上,用了颗CY8C20434芯片(所以软件选型上也选择了CY8C2043)
当只加了定时器模块和Cap Sensors模块,并设了2个Cap Button和一个Slider(五个触点)
编译时出现如下代码
Linking..
LMM info: area 'InterruptRAM' uses 72 bytes in SRAM bank 0
LMM info: area 'ram2' item of 57 bytes allocated in SRAM page 0
LMM info: area 'ram1' item of 56 bytes allocated in SRAM page 0
LMM info: area 'ram0' item of 42 bytes allocated in SRAM page 0
LMM info: area 'bss' item of 7 bytes allocated in SRAM page 0
LMM info: area 'bss' item of 6 bytes allocated in SRAM page 0
LMM info: area 'virtual_registers' uses 2 bytes in SRAM page 0
ROM 36% full. 2942 out of 8192 bytes used (does not include absolute areas).
RAM 95% full. 242 bytes used (does not include stack usage).
idata dump at output/TR109A.idata
Built with ICCM8C STD V7.04

HY101A - 0 error(s) 0 warning(s) 22:56:20

当只加了定时器模块和Cap Sensors模块,并设了3个Cap Button和一个Slider(五个触点)
编译时出现如下代码
Linking..
LMM info: area 'InterruptRAM' uses 72 bytes in SRAM bank 0
LMM info: area 'ram2' item of 65 bytes allocated in SRAM page 0
LMM info: area 'ram1' item of 64 bytes allocated in SRAM page 0
LMM info: area 'ram0' item of 48 bytes allocated in SRAM page 0
LMM info: area 'bss' item of 6 bytes allocated in SRAM page 0
!E <library>(2385): {linker} Cannot allocate space for 8 bytes for 'bss' area
!E <library>(2385): {linker} Cannot allocate space for paged area 'virtual_registers'
d:\PROGRA~1\Cypress\PSOCDE~1\5.1\Common\CYPRES~3\tools\make: *** [output/TR109A.rom] Error 1

HY101A - 3 error(s) 0 warning(s) 23:01:09

根据手册CY8C20434应该是有512个Byte的RAM的
从上面分析可以看出,编译器只认到了256个Byte的RAM吗?
超过了256个Byte就已经报错了?

使用特权

评论回复
沙发
zyf部长| | 2019-9-1 19:33 | 只看该作者
是编译器设置问题吗?还是规格书有错?

使用特权

评论回复
板凳
kangzj| | 2019-9-1 19:35 | 只看该作者
默认情况下另外256字节都被作为堆栈了

使用特权

评论回复
地板
chuxh| | 2019-9-1 19:38 | 只看该作者
你可以在project > setting > build > compiler 中把stack page offset设大一些

使用特权

评论回复
5
ousj|  楼主 | 2019-9-1 19:40 | 只看该作者
什么意思?

使用特权

评论回复
6
pengf| | 2019-9-1 19:43 | 只看该作者
例如10,就释放了16字节,A0 就释放了160字节。

使用特权

评论回复
7
ousj|  楼主 | 2019-9-1 19:46 | 只看该作者
嗯,那我按大家的说法挨个排查一下,先结贴啦,谢谢哈

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

712

主题

7557

帖子

1

粉丝