error while running ported coremark on LPC1114 board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

error while running ported coremark on LPC1114 board

1,229件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Wed Apr 20 22:49:22 MST 2011
Hi,
I've ported coremark to NXP LPC1114 board. But coremark.exe always run into hard_fault error.
for windows version LPCXpresso v3.6.3 [Build 317] [08/04/2011]
the insn causes the fault lies in matrix_add_const;
for linux version LPCXpresso v3.8.3 [Build 317] [08/04/2011] the insn causes the fault is at "<malloc>+0x14", which is provided in libcr*.a

Thanks.
0 件の賞賛
返信
5 返答(返信)

1,203件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Shay Gal-On on Thu Apr 28 09:01:44 MST 2011
Can you post the port?
The error appears to be in malloc. How much memory is available on the board? Is it possible you did not initialize the available memory during init, and malloc is trying to allocate on an invalid memory block?
0 件の賞賛
返信

1,203件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Thu Apr 21 00:34:44 MST 2011

Quote: TheFallGuy
Are you trying to run code that was compiled for the 1343/1769 on the 1114? If so, that is your problem. The LPC17/LPC13 has a Cortex-M3 processor, and the LPC11 has a Cortex-M0, which runs a smaller instruction set. If you execute a Cortex-M3 instruction, you will get a fault. Note that you can run Cortex-M0 code on a Cortex-M3, but oif course it will not make use of the additional features of the Cortex-M3 and will not run as fast as it could.


No, I mean I ported coremark to all three target boards. The 1114 porting ran into falut, while the other two porting work fine, all on their own boards.
thanks very much, don't know I can run M0 codes on M3 before. ^_^
0 件の賞賛
返信

1,203件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Apr 21 00:12:36 MST 2011
Are you trying to run code that was compiled for the 1343/1769 on the 1114? If so, that is your problem. The LPC17/LPC13 has a Cortex-M3 processor, and the LPC11 has a Cortex-M0, which runs a smaller instruction set. If you execute a Cortex-M3 instruction, you will get a fault. Note that you can run Cortex-M0 code on a Cortex-M3, but oif course it will not make use of the additional features of the Cortex-M3 and will not run as fast as it could.
0 件の賞賛
返信

1,203件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by can.finner on Thu Apr 21 00:04:22 MST 2011

Quote: larryvc
Hi can.finner,

Without seeing your ported code it would be very difficult for us to help resolve your problem.

Where did you get the original coremark source from?

Larry


Thanks for quick replying.
I downloaded coremark from EEMBC a few days ago, then ported it to lpc1769/lpc1343/lpc1114 based on CMSIS lib and example projects shipped with lpcXpresso tools.
Both 1769 and 1343 porting work fine except 1114.
i'll see if I can attach porting related codes here.

Thanks.
0 件の賞賛
返信

1,203件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Wed Apr 20 23:22:59 MST 2011
Hi can.finner,

Without seeing your ported code it would be very difficult for us to help resolve your problem.

Where did you get the original coremark source from?

Larry
0 件の賞賛
返信