Example program don't work

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

Example program don't work

746 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by manlong on Mon Jun 09 09:00:20 MST 2014
Hello,

I have a LPCXpresso1549 evaluation board OM13056 and I want to run example program.
Unfortunely all there program FreeRTOS, ADC, EEPROM, FlashIAP, freqmeas, I2C, pmu (power management unit), RTC, SPI_slave and temp don't run. When I execute the program, I go directrly to HardFault_Handler.
When I do my own program, I want to use <stdio.h> to use printf and sscanf.
When I use printf my program go directly to HardFault_Handler as example program.
In example program, th e function DEBUGOUT use printf and I think this will the cause of error.
Do you know why?
Do you have a solution to resolve the problem?

Thank you

Man Long LAY
Labels (1)
0 Kudos
7 Replies

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by manlong on Sun Aug 17 07:13:50 MST 2014
I update the sofware LPCXpresso. I pass from  v7.2.0 of LPCXpresso 7 for Windows to (7.3.0) of LPCXpresso 7 for Windows.
I use exactly the same workspace.
In V7.2.0 I have the issue explain above and in version 7.3.0 all run correctly.
0 Kudos

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Wed Jun 18 11:36:11 MST 2014
As mentioned already last week it's required to select correct library and correct board.h settings.

All examples are working here with Semihosting or UART. Probably your setup is wrong or you didn't rebuild projects.

But nobody knows if you don't post / describe your settings...
0 Kudos

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by manlong on Wed Jun 18 10:20:50 MST 2014
nobody have an idea about example program?
0 Kudos

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by manlong on Mon Jun 09 13:25:41 MST 2014
I want to use the library stdio.h like some example program.
Unfortunaly, the example program that use this library compile well but when I  execute the program, the program go directly to HardFault_Handler.
Yes I already test with Semihosting.
The setup is done corretly in example program. I use lpcopen_2_08b_lpcxpresso_nxp_lpcxpresso_1549.
Do you have an explantion and a solution to permit me to execute the example program and use stdio.h in my own program.?

Thank you

Man Long
0 Kudos

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Jun 09 10:35:12 MST 2014
Not sure what you are trying to do in detail  :quest:

Are you trying to use Semihosting or UART?

Did you setup your board.h correct for this purpose?

See: http://www.lpcware.com/content/faq/lpcopen-debug-inputoutput-support
0 Kudos

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by manlong on Mon Jun 09 09:45:36 MST 2014
Hello,

I put the file but it's the same.
I had already the file in version 140114.
The code compile correctrly it's just when I execute the program.
I think it's not an interrupt problem because periph_MRT and periph_ritimer run correctly.
I think it's when I put STDIO.h with fprint, printf, sscanf,... function that the program go directly to HardFault_Handler at start up.
Do you have another idea?

Thank you

Man Long
0 Kudos

698 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Jun 09 09:20:03 MST 2014
Interrupt problems?

http://www.lpcware.com/content/forum/updated-lpc15xx-startup-files-lpcopen-compatibility
0 Kudos