Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

IAR c compiler (msp430) - pointers help

Status
Not open for further replies.

ccjklppp

Newbie level 1
Joined
Nov 13, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hello, I'm using IAR C/C++ Compiler for MSP430 5.10.1 (5.10.1.50144)
with the MSP430F2617 MCU.

I have a problem when using pointers:
when i try to debug the program with the following part of code, the debugger "hangs" (it takes a while till the iar changes to debug mode and then i don't have any option available accept 'stop debugging' "

the problematic part:
char pic0[2500], pic1[2500], *pic_rd, *pic_wrt;
pic_rd = pic0;
pic_wrt = pic1;

however, when i'm using only one command:
char pic0[2500], pic1[2500], *pic_rd, *pic_wrt;
pic_rd = pic0;
or
char pic0[2500], pic1[2500], *pic_rd, *pic_wrt;
pic_wrt = pic1;

the debugger works fine.

what could be the reason?
 

Hi

Don't use large array size with IAR decrease size or use union to divide the array to a smaller size section's

All the best

Bobi
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top