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???
已解决! 转到解答。
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
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
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:
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.