This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omap4430_A9_Packed_Unpacked_Issue !!!!!!!!!



I am trying to run a program on OMAP4430 on ARM cortexA9 core (using CCSv5.1.0 on Windows platform) which consists of 4 byte(32bit) loads and stores. While running on the board its  giving problem as "No source available". For example,i want to do 4byte load.

unsigned short *ptr; //Let us say ptr is 0x80000000

unsigned int val;

val = *((unsigned int *)ptr); // this is giving above problem.

---------------------------------------------------------------------------------

But if i try to load 1 byte there is absolutely no problem.i.e

unsigned short *ptr; //Let us say ptr is 0x80000000

unsigned short val;

val = *(ptr); // this is giving no problem.

--------------------------------------------------------------------------

whether ARM cortex-9 doesn't support 4 byte load/store or does it need any compiler settings or is it an alignment issue....?????

-Studinstru

  • Hi,

    is there a reason you are typecasting pointers?  There are some rules about this in C which might be causing your problem

    http://stackoverflow.com/questions/559581/casting-a-function-pointer-to-another-type

    What about

    unsigned int *ptr;

    unsigned int val;

    val = *(ptr);

    How about trying the above?

    Best Regards,
    Lisa