getting data abort handler error when using string application

OP (Company: wertecknologies) #2608710
Hello All,
I'm recently implementing a C application for POS device which is based 
on ARM.
The application is basically a transaction to the webservice using POS 
and involves sending card details, amount etc and the string operations 
I use involves sprintf, strcat etc. Now when I'm using sprintf 
operations involving floating numbers, it gives dataaborthandler error. 
The same peice of code works perfectly fine on fedora linux but with the 
device, it gives this error. I suspect this has to do with the stack 
memory. I don't have much experience on ARM devices.
Here is the linker script

SECTIONS
{
  . = 0x20500000;
  .text : { *(.text) }
  Image_RO_Limit = .;
  Image_RW_Base = .;
  .data : { *(.data) }
  .rodata : { *(.rodata) }
  Image_ZI_Base = .;
  .bss : { *(.bss) }
  Image_ZI_Limit = .;
  _bss_start_ = .;
  _bss_end_ = .;
  _EH_FRAME_BEGIN_ = .;
  _EH_FRAME_END_ = .;
PROVIDE (__stack = .);
  end = .;
  _end = .;
  .debug_info     0 : { *(.debug_info)  }
   .debug_line    0 : { *(.debug_line)  }
     .debug_abbrev   0 : { *(.debug_abbrev)}
     .debug_frame    0 : { *(.debug_frame) }
}

I don't know how to increase the stack size etc. and how to tweak with 
the linker script. Also, do let me know any information you may require.
One thing more, the application i'm implementing is on top of a pilot 
software provided by the vendor of the device. I still don't know why 
the memory was initialised with 0x20500000. many of the ARM related 
stuff are transparent to me.

Your expert advice could be of great help to me.
Thanks
Ruchi

Reply

A question of your own? This thread is over 14 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.