Demo project for LPC43xx, problem

ChibiOS public support forum for topics related to the NXP LPC family of Cortex-M micro-controllers.
Alex
Posts: 30
Joined: Sat Feb 22, 2014 2:40 pm

Demo project for LPC43xx, problem

Postby Alex » Mon Oct 06, 2014 9:52 am

I am try research Demo project by TheShed. Make this project cause error message :

--------------------------------------------------------------------------------------------------------------
make: *** No rule to make target `build/LPC4357.elf', needed by `all'. Stop.
make: *** Waiting for unfinished jobs....
--------------------------------------------------------------------------------------------------------------

port LPC43xx by TheShed: http://sourceforge.net/p/chibios/svn/6740/
demo by TheShed: http://ehc.ac/p/chibios/svn/6742/tree/t ... IRQ_STORM/


original MakeFile by TheShed give the same results...

in attach my makefile (so little different from original)

User avatar
Giovanni
Site Admin
Posts: 12962
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 735 times
Been thanked: 610 times
Contact:

Re: Demo project for LPC43xx, problem

Postby Giovanni » Mon Oct 06, 2014 10:27 am

Hi,

You should verify the Makefile, that happens when some required file is missing, there is an option for make (-d) to enable a verbose mode, that could help you.

Moving this thread in the LPC forum. If you don't get answer there I will give this a try in the weekend.

Giovanni

Alex
Posts: 30
Joined: Sat Feb 22, 2014 2:40 pm

Re: Demo project for LPC43xx, problem

Postby Alex » Sun Oct 12, 2014 7:03 pm

Excuse me, I'm afraid you forgot about my problem, it is still actual. I hope that you'll answer. Thank you.

User avatar
Giovanni
Site Admin
Posts: 12962
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 735 times
Been thanked: 610 times
Contact:

Re: Demo project for LPC43xx, problem

Postby Giovanni » Sun Oct 12, 2014 7:17 pm

Yes I forgot... I will try tomorrow. Probably it is an error in some .mk file.

Giovanni

Alex
Posts: 30
Joined: Sat Feb 22, 2014 2:40 pm

Re: Demo project for LPC43xx, problem

Postby Alex » Sun Oct 12, 2014 7:20 pm

Project archive
Attachments
LPC4357.rar
(210.79 KiB) Downloaded 208 times

User avatar
Giovanni
Site Admin
Posts: 12962
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 735 times
Been thanked: 610 times
Contact:

Re: Demo project for LPC43xx, problem

Postby Giovanni » Sun Oct 12, 2014 7:43 pm

The project does not compile because the board directory is missing: /boards/NONSTANDARD_LPC4330_SBC/board.mk

Code: Select all

makefile:72: ../../boards/NONSTANDARD_LPC4330_SBC/board.mk: No such file or directory
make: *** No rule to make target `../../boards/NONSTANDARD_LPC4330_SBC/board.mk'
.  Stop.


It is different from what you posted so I don't know if there are more problems, you should contact the maintainer for the missing files and in case there are more problems, try a forum private message.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 12962
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 735 times
Been thanked: 610 times
Contact:

Re: Demo project for LPC43xx, problem

Postby Giovanni » Sun Oct 12, 2014 7:49 pm

The board files seem to be present if you checkout the latest revision here: svn://svn.code.sf.net/p/chibios/svn/trunk_old

You may try this one.

Giovanni

Alex
Posts: 30
Joined: Sat Feb 22, 2014 2:40 pm

Re: Demo project for LPC43xx, problem

Postby Alex » Wed Oct 15, 2014 7:37 pm

Good evening.
Thank You very mach. All files of DMA_MEMproject and of LPC43xx port was dowloaded from svn://svn.code.sf.net/p/chibios/svn/trunk_old by Tortoise svn . Project was builded successfully. I am debug project by JLink. Led switch on and switch off. But problems are present. First calling "chThdSleep" causes
Target Halted. Makefile equal original. Linker script was elited for LPC4357.


Linker script
---------------------------------------------------------------------------------------------------------------------------

* LPC4357 setup.
* Code runs from FLASH.
*/
__main_stack_size__ = 0x0800;
__process_stack_size__ = 0x0800;

MEMORY
{
flash : org = 0x1A000000, len = 512k
ram1 : org = 0x10000000, len = 32k
ram2 : org = 0x10080000, len = 40k
ramahb : org = 0x20000000, len = 32k
ramahb2 : org = 0x20008000, len = 16k
ramahb3 : org = 0x2000C000, len = 16k
}

__ram_start__ = ORIGIN(ram2);
__ram_size__ = LENGTH(ram2);
__ram_end__ = __ram_start__ + __ram_size__;

ENTRY(ResetHandler)

SECTIONS
{
. = 0;
_text = .;

startup : ALIGN(16) SUBALIGN(16)
{
__vectors_start = .;
KEEP(*(vectors))
} > flash

constructors : ALIGN(4) SUBALIGN(4)
{
PROVIDE(__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
PROVIDE(__init_array_end = .);
} > flash

destructors : ALIGN(4) SUBALIGN(4)
{
PROVIDE(__fini_array_start = .);
KEEP(*(.fini_array))
KEEP(*(SORT(.fini_array.*)))
PROVIDE(__fini_array_end = .);
} > flash

.text : ALIGN(16) SUBALIGN(16)
{
*(.text.startup.*)
*(.text)
*(.text.*)
*(.rodata)
*(.rodata.*)
*(.glue_7t)
*(.glue_7)
*(.gcc*)
} > flash

.ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
} > flash

.ARM.exidx : {
PROVIDE(__exidx_start = .);
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
PROVIDE(__exidx_end = .);
} > flash

.eh_frame_hdr :
{
*(.eh_frame_hdr)
} > flash

.eh_frame : ONLY_IF_RO
{
*(.eh_frame)
} > flash

.textalign : ONLY_IF_RO
{
. = ALIGN(8);
} > flash

_etext = .;
_textdata = _etext;

.stacks :
{
. = ALIGN(8);
__main_stack_base__ = .;
. += __main_stack_size__;
. = ALIGN(8);
__main_stack_end__ = .;
__process_stack_base__ = .;
__main_thread_stack_base__ = .;
. += __process_stack_size__;
. = ALIGN(8);
__process_stack_end__ = .;
__main_thread_stack_end__ = .;
} > ram2

.data :
{
. = ALIGN(4);
PROVIDE(_data = .);
*(.data)
. = ALIGN(4);
*(.data.*)
. = ALIGN(4);
*(.ramtext)
. = ALIGN(4);
PROVIDE(_edata = .);
} > ram2 AT > flash

.bss :
{
. = ALIGN(4);
PROVIDE(_bss_start = .);
*(.bss)
. = ALIGN(4);
*(.bss.*)
. = ALIGN(4);
*(COMMON)
. = ALIGN(4);
PROVIDE(_bss_end = .);
} > ram2
}

PROVIDE(end = .);
_end = .;

__heap_base__ = _end;
__heap_end__ = __ram_end__;
Attachments
ch.png
ch.png (77.29 KiB) Viewed 4612 times

marcinj7
Posts: 13
Joined: Wed Apr 17, 2013 10:08 am
Location: Poland

Re: Demo project for LPC43xx, problem

Postby marcinj7 » Sun Oct 19, 2014 12:22 pm

Hi,

In makefile you need to change

Code: Select all

# LPC43xx boot select: ram, spifi_flash_debug, flash.
ifeq ($(LPC_BOOT_SELECT),)
  LPC_BOOT_SELECT = ram
endif


to

Code: Select all

# LPC43xx boot select: ram, spifi_flash_debug, flash.
ifeq ($(LPC_BOOT_SELECT),)
  LPC_BOOT_SELECT = flash
endif

Alex
Posts: 30
Joined: Sat Feb 22, 2014 2:40 pm

Re: Demo project for LPC43xx, problem

Postby Alex » Sun Oct 19, 2014 3:14 pm

Yes!!! My Dear friend, thank you very much! Good luck! My English so bad. I am very glad to see you you! )) so on...


Return to “LPC Support”

Who is online

Users browsing this forum: No registered users and 1 guest