Page 1 of 1

Demo project for LPC43xx, problem

Posted: Mon Oct 06, 2014 9:52 am
by Alex
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)

Re: Demo project for LPC43xx, problem

Posted: Mon Oct 06, 2014 10:27 am
by Giovanni
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

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 12, 2014 7:03 pm
by Alex
Excuse me, I'm afraid you forgot about my problem, it is still actual. I hope that you'll answer. Thank you.

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 12, 2014 7:17 pm
by Giovanni
Yes I forgot... I will try tomorrow. Probably it is an error in some .mk file.

Giovanni

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 12, 2014 7:20 pm
by Alex
Project archive

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 12, 2014 7:43 pm
by Giovanni
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

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 12, 2014 7:49 pm
by Giovanni
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

Re: Demo project for LPC43xx, problem

Posted: Wed Oct 15, 2014 7:37 pm
by Alex
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__;

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 19, 2014 12:22 pm
by marcinj7
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

Re: Demo project for LPC43xx, problem

Posted: Sun Oct 19, 2014 3:14 pm
by Alex
Yes!!! My Dear friend, thank you very much! Good luck! My English so bad. I am very glad to see you you! )) so on...