+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Newbie level 1
    Points: 380, Level: 4

    Join Date
    Nov 2010
    Posts
    1
    Helped
    0 / 0
    Points
    380
    Level
    4

    IAR c compiler (msp430) - pointers help

    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?

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 4
    Points: 11,875, Level: 26
    bobcat1's Avatar
    Join Date
    Jul 2002
    Posts
    1,288
    Helped
    99 / 99
    Points
    11,875
    Level
    26

    Re: IAR c compiler (msp430) - pointers help

    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



--[[ ]]--