setjmp issues HardFault

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

setjmp issues HardFault

1,299 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by taliesin on Fri Jun 11 10:05:12 MST 2010
Even a simple

#include <setjmp.h>
#include "LPC11xx.h"

static jmp_buf end_out;

void main(void)
{
  setjmp(end_out);
  while(1) ;
}
leads to a HardFault. Any hints?!
0 项奖励
回复
5 回复数

1,272 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jun 15 02:11:30 MST 2010
taliesin,

We expect to make a new release of the LPCXpresso IDE within the next few weeks. If you would be interested in trialling the updated setjmp/longjmp, please contact us directly, referencing this thread:

http://www.code-red-tech.com/support.php

Regards,
CodeRedSupport.
0 项奖励
回复

1,272 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by taliesin on Tue Jun 15 01:46:23 MST 2010
in what time frame will the next version be released?

I'm using the setjmp in a piece of code ported from an AVR atmegaXX. It is part of a network stack and handles an asynchronous reset exception there. Replacing the longjmp would cause a major re-write of quite complex and extensively tested code.
0 项奖励
回复

1,272 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by domen on Mon Jun 14 05:36:21 MST 2010
I'm curious... what do you want to use setjmp for?
0 项奖励
回复

1,272 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Jun 14 04:45:49 MST 2010
Just to confirm, we will fix this issue in the next LPCXpresso release.

Regards,
CodeRedSupport
0 项奖励
回复

1,272 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jun 11 11:13:13 MST 2010
Sounds like a potential issue in the C library. We'll investigate.

Regards,
CodeRedSupport
0 项奖励
回复