hi
this is saida
wordking on custmoised i.mx6 board
i am using ARM DS5 and Dstream for code development,debugging respectively
i am facing one problem
i have one application code which running with debugger perfectly but
the same bin file when i am running from u-boot with loadb command
its not running and it is going to SVC,UNDEF,ABORT handlers
the code is given below
/*******************************************/
struct t1
{
float x;
int y;
};
typedef struct t1 t1struct;
struct six
{
float xx;
int yy;
t1struct xyz;
boolean v;
};
typedef struct six sixstruct;
void datacopy(t1struct *T)
{
T->y =1;
}
void start(sixstruct *data)
{
datacopy(&(data->xyz));
}
int main(void)
{
sixstruct s;
start(&s);
return EXIT_SUCCESS;
}
/******************************************/
please can any one help me in this regard
thanks in advance
regards
Saida
Hi Saida
one can look at map file to find correct "main" address and run from
that address. More hints can be found on:
https://community.nxp.com/thread/359068
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
thank you for your reply
i am using startup.s file which i found in ds5 archieves
i am running so many applications from same memory address
my scatter file address is 0x20000000
while debugging
i am observed that when calling this routine datacopy(&(data->xyz));
then it is aborted
if i comment all this kind of function calling then it is working
i have done small test also
just used this test code
struct rt
{ int x;
float y;
}
typedef struct rt rtstruct;
rtstruct *ptr
if i call ptr->x
then also it is aborting
it is somthing pointer and structure formation problem
it is giving memory aborts
if possible can you try in ds5 and run it
from this community i have learned more and solved few issues also
i hope i can solve this problem with all your help
i thank all the people who are supported me
regards
saida