HardFault_Handler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HardFault_Handler

2,610 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by terrype on Tue Sep 09 00:56:23 MST 2014
IDE : LPCexpresso
BSP; LPC Open 2.10
Board ; LPCexpresso 1769
example use ; lwip_tcpecho_freertos

I modify the example to works as TCP client and it wroks well, I add a extra task which was tested independly and works well.
When boath task run together then started get
1. Malloac fail
2. Increase the total heap size then get Hardfault_Handler error

I attached few images

Q1. How to reduce the lwip tcp tx and rx frame size? also all level of tx and rx buffer 
Labels (1)
0 Kudos
Reply
2 Replies

2,429 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by terrype on Tue Sep 09 15:13:21 MST 2014
LPC espresso version 7.3,

I used heap_3 as it is not thread safe and gave me pretty much same error. LPC1769 have huge RAM in different banks

Q1. How to configure the linker script to use  stack and global variable in 1 bank and heap in different bank?

0 Kudos
Reply

2,429 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Sep 09 07:37:12 MST 2014
What version of LPCXpresso are you using?

In the first place, I suggest that you see:

http://www.lpcware.com/content/faq/malloc-failure-using-freertos-heap3c-lpcxpresso-tool-chain
http://www.lpcware.com/content/faq/lpcxpresso/heap-checking-redlib

And possibly:

http://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault

Regards,
LPCXpresso Support
0 Kudos
Reply