CW10.4se, K60 TWR CDC example + code size limitation warning

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CW10.4se, K60 TWR CDC example + code size limitation warning

跳至解决方案
1,767 次查看
Frost
Contributor II

I'm getting a code size limitation warning when I try and debug the CDC example from the USB stack V4.11. This is on segger Jlink or OSBDM debug options.

Map file output:

# Memory map:

  v_addr        p_addr   size          name

  00000000 00000000 000001E0 .interrupts m_interrupts

  00000800 00000800 00004920 .app_text  m_text

  1FFF0000 00005120 000006F0 .app_data  m_data

  1FFF06F0 1FFF06F0 00000BD0 .bss       m_data

  1FFF12C0 00005810 00000018 .romp      m_data

  00000400 00000400 00000000 .cfmprotect m_cfmprotrom

So if you add the sizes, it comes out at 24024Bytes decimal. K series has 128KB limitation according to this page.

I'm running CW10.4se on windows 7 pro x64. The K70 example worked fine over OSBDM (jlink wouldn't work for some reason) and when I hit debug, it says it can't continue, and to check my licence.

Anybody got any suggestions???

标签 (2)
0 项奖励
回复
1 解答
1,446 次查看
BlackNight
NXP Employee
NXP Employee

ok, I see. So this is not a warning, but an error. That's why I was not sure what you are seeing.

Maybe it is this problem I had too:

Please Check Your License | MCU on Eclipse

?

I hope this helps you too.

Erich

在原帖中查看解决方案

0 项奖励
回复
7 回复数
1,446 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

I'm not sure which warning your are seeing. Could you post that warning (sceenshot?)?

0 项奖励
回复
1,446 次查看
Frost
Contributor II

Here's the warning, diagnostic info is attached.

CW10.4_CDC_Licence_Error.jpg

As said above, I can compile/run/debug the processor expert version, but not the baremetal version.... I'm running 10.4SE but have had previous versions of CW on this machine. (10.2, 10.3beta & 10.3 iirc)

0 项奖励
回复
1,447 次查看
BlackNight
NXP Employee
NXP Employee

ok, I see. So this is not a warning, but an error. That's why I was not sure what you are seeing.

Maybe it is this problem I had too:

Please Check Your License | MCU on Eclipse

?

I hope this helps you too.

Erich

0 项奖励
回复
1,446 次查看
Frost
Contributor II

Hi Erich,

  thanks for your help. It was the exceptions box that was checked - code size downloaded was 11100Bytes after a clean+build.

0 项奖励
回复
1,446 次查看
BlackNight
NXP Employee
NXP Employee

Yeah, so this saved you some code size too :-)

0 项奖励
回复
1,446 次查看
Frost
Contributor II

Well that's right. I was interested in how much difference it was, as I'm playing around in this area for possible projects at work; Nice to know what another CW checkbox does though! :smileyhappy:

0 项奖励
回复
1,446 次查看
Frost
Contributor II

I tried the Processor Expert CDC example. It worked, BUT I had to re-configure it as follows:

When trying to debug, it will first say "invalid memory configuration file". To fix this, go into the debug settings, and re-point the target .mem file to the .mem file in your project. It uses the USB Audio example .mem file by default. If this is not in your workspace because you haven't opened the audio example, you need to re-point it.

As above, the kinetis init .tcl file needs to be re-pointed from the same place as well.Then it debugged using osbdm debugger.

The project downloads 14500Bytes, as a size indication. Still can't find why I'm having the limitation warning above.

0 项奖励
回复