编译时出现如下代码

[复制链接]
1029|10
 楼主| pangb 发表于 2018-11-27 19:46 | 显示全部楼层 |阅读模式
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
chenjunt 发表于 2018-11-27 19:48 | 显示全部楼层
还有什么吗?
 楼主| pangb 发表于 2018-11-27 19:52 | 显示全部楼层
当只加了定时器模块和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
ousj 发表于 2018-11-27 19:54 | 显示全部楼层
没看手册吗?
 楼主| pangb 发表于 2018-11-27 19:55 | 显示全部楼层

根据手册CY8C20434应该是有512个Byte的RAM的
从上面分析可以看出,编译器只认到了256个Byte的RAM吗?
morrisk 发表于 2018-11-27 19:57 | 显示全部楼层
超过了256个Byte就已经报错了?
 楼主| pangb 发表于 2018-11-27 19:58 | 显示全部楼层
是编译器设置问题吗?
zyf部长 发表于 2018-11-27 20:00 | 显示全部楼层
肯定不是规格书有错
kangzj 发表于 2018-11-27 20:02 | 显示全部楼层
不知道了。。。
zwll 发表于 2018-11-27 20:03 | 显示全部楼层

这个问题可以参照这里解决:
http://www.cypress.com/?id=4&rID=40001
 楼主| pangb 发表于 2018-11-27 20:05 | 显示全部楼层
嗯,预料中的结果,先结贴吧,多谢大家啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则

701

主题

7643

帖子

6

粉丝
快速回复 在线客服 返回列表 返回顶部