- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using eCos for NiosII. I made my APP and when I am dbugging throuh the App, I found out that malloc call is failing. Initially I thought may be my Application is trying to allocate a big amount of memory. So I tried with a small memory, That also it failed.. After that I just tried a small program:- int main(void) { char *addr1; addr1 = malloc(200); if( NULL == addr1 ) { return 1; } printf("Hello, eCos world!!\n"); return 0; } Even this one also failed in that malloc. So can anyone please guide me through this? What might be the reason for failing malloc? AkhilLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- --- Quote Start --- Sorry for the late update. Was busy with the release activities.. It was the problem with the Nios Board. When we changed the board with another cyclone series board, The same program was working fine. Altera Enggr replaced the board that day itself.. Thanx Akhil <div align='right'><{post_snapback}> (index.php?act=findpost&pid=21861)</div> --- Quote End ---
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page