CodeWarrior 10.5 Special Edition limits Codesize at 256kbytes (Qorivva MPC5643L) instead of 512kbytes

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

CodeWarrior 10.5 Special Edition limits Codesize at 256kbytes (Qorivva MPC5643L) instead of 512kbytes

跳至解决方案
1,199 次查看
d_h_
Contributor I

CodeWarrior 10.5 Special Edition limits Codesize at 256kbytes (Qorivva MPC5643L) instead of 512kbytes

 

 

I'm stuck at a strange errors if my *elf-file reaches the limit of 256 000 byte.

 

Steps to reproduce:

1. Create a Project with a resulting elf-file of 256.000+ byte size.

2. Set a Breakpoint at the default ISR-Handler for External Interrupt Sources "void INTC_INTCInterruptHandler(void)"

3. Start the Debug Session (to RAM)

4. Resume (do not use Breakpoints except the default one at "main()")

5. Execution is paused at External Interrupt for no reason

 

 

I removed some lines of code (just internal functions without effects on any interrupts or hardware) to be below the code size "limit" and no problemes (normal program flow, no unexpected interrupts)

 

 

 

Using MPC5643L with a XPC56XL and XPC56XX Motherboard

The Flasher is a USB Qorivva Multilink PPCNexus

 

I have another Board (a TRK-USB-MPC5643L) with the same result

 

 

 

Changing the Optimization is a temporary solution for now.

 

 

 

Does anyone has the same problem or a solution/hint?

 

 

Best Regards,

D.H.

标签 (1)
0 项奖励
回复
1 解答
834 次查看
stanish
NXP Employee
NXP Employee

Hello D.H.

I suspect this issue is related rather to the fact you are placing your pretty big elf file into the limited internal SRAM rather then a licensing issue. You may e.g. overlap a code section with stack area.

Do you get any linker warnings after build?

In case of licensing issue you would get a licensing error message which completely prevent you from debugging.

Can you perhaps try to build the Flash build configuration and debug your code in FLASH?

Regards

Stanislav

在原帖中查看解决方案

0 项奖励
回复
1 回复
835 次查看
stanish
NXP Employee
NXP Employee

Hello D.H.

I suspect this issue is related rather to the fact you are placing your pretty big elf file into the limited internal SRAM rather then a licensing issue. You may e.g. overlap a code section with stack area.

Do you get any linker warnings after build?

In case of licensing issue you would get a licensing error message which completely prevent you from debugging.

Can you perhaps try to build the Flash build configuration and debug your code in FLASH?

Regards

Stanislav

0 项奖励
回复