malloc causes crash - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

malloc causes crash

cofexcofex Posts: 2Member
hi there,

I'm developing a C program for an embedded device in order to use it as pad which is able to recognize handwriting. In short, the program is supposed to extract several features of the signature and calculate a biometric hash.

Sadly the program keeps crashing as soon as I use malloc or realloc. Since I'm not able to debug the malloc function I can't really see the cause for that.
[code]
int32_t *foobar;

foobar = malloc( sizeof(int32_t) ); //CRASH
[/code]
I don't even know where to start looking for a solution so maybe anyone here could give me a solution or a hint to fix it.

If there is some important information missing please just tell so and I will see if I can add it.

I'm working with Keil yVision:

stats for the embedded device
ARM-7 32bit Architecture
NXP (Philips) LPC 2368
72 MHz
512 kB on-chip Flash
58kB SRAM
Sign In or Register to comment.