diff --git a/configs/sam3u-ek/README.txt b/configs/sam3u-ek/README.txt index ba8c18dad2d..a350c72d7e6 100755 --- a/configs/sam3u-ek/README.txt +++ b/configs/sam3u-ek/README.txt @@ -332,6 +332,17 @@ must be is one of the following: This specall make command ('make pass1 pass2') will make the dependencies separately for each pass. + At there end of the build, there four files will top-level build + directory: + + nuttx_user.elf - The pass1 ELF file + nuttx - The pass2 ELF file + nuttx_user.ihx - The pass1 Intel HEX format file + nuttx.ihx - The pass2 Intel HEX file + + The J-Link program will except files in .hex, .mot, .srec, and .bin + formats. + nsh: Configures the NuttShell (nsh) located at examples/nsh. The Configuration enables both the serial and telnetd NSH interfaces. diff --git a/configs/sam3u-ek/kernel/Makefile b/configs/sam3u-ek/kernel/Makefile index c51271cc383..f9903b1577c 100755 --- a/configs/sam3u-ek/kernel/Makefile +++ b/configs/sam3u-ek/kernel/Makefile @@ -71,6 +71,18 @@ nuttx_user.elf: $(TOPDIR)/nuttx_user.elf: nuttx_user.elf @echo "LD: nuttx_user.elf" @cp -a nuttx_user.elf $(TOPDIR)/nuttx_user.elf +ifeq ($(CONFIG_INTELHEX_BINARY),y) + @echo "CP: nuttx_user.ihx" + @$(OBJCOPY) $(OBJCOPYARGS) -O ihex nuttx_user.elf $(TOPDIR)/nuttx_user.ihx +endif +ifeq ($(CONFIG_MOTOROLA_SREC),y) + @echo "CP: nuttx_user.srec" + @$(OBJCOPY) $(OBJCOPYARGS) -O srec nuttx_user.elf $(TOPDIR)/nuttx_user.srec +endif +ifeq ($(CONFIG_RAW_BINARY),y) + @echo "CP: nuttx_user.bin" + @$(OBJCOPY) $(OBJCOPYARGS) -O binary nuttx_user.elf $(TOPDIR)/nuttx_user.bin +endif $(TOPDIR)/User.map: nuttx_user.elf @echo "MK: User.map" diff --git a/configs/sam3u-ek/knsh/defconfig b/configs/sam3u-ek/knsh/defconfig index 551817c5678..677cb548a48 100755 --- a/configs/sam3u-ek/knsh/defconfig +++ b/configs/sam3u-ek/knsh/defconfig @@ -202,9 +202,9 @@ CONFIG_USART3_2STOP=0 # CONFIG_HAVE_LIBM - toolchain supports libm.a # CONFIG_RRLOAD_BINARY=n -CONFIG_INTELHEX_BINARY=n +CONFIG_INTELHEX_BINARY=y CONFIG_MOTOROLA_SREC=n -CONFIG_RAW_BINARY=y +CONFIG_RAW_BINARY=n CONFIG_HAVE_LIBM=n #