Corrrect Makefile to create FW.SFE for Uberboard Test Code

Recently purchased Uberboard V2.

Have successfully connected the serial cable to PC and ran Uberboard V2 Test Code.

Read the USB Bootloader Tutorial. (thanks for providing)

I have download and installed arm-elf-gcc (GCC) 4.1.1 (WinARM).

I have used the USB Bootloader v1.1 to load FW.SFE for the Blinking LED example successfully.

I have successfully reloaded the original FW.SFE file to the UberBoard and again successfully connected with the serial cable to my PC

I am attempting to compile UberBoard V2 Test Code and load an updated FW.SFE file as a training exercise. I want to be able to write, compile and load future programs and want to get this one working before moving further. I have made no changes to main.c at this point.

I discovered the original MAKEFILE was not configured to produce the FW.SFE file. After reviewing the MAKEFILE from the Blinking LED example I made the following changes to the MAKEFILE from UberBoard V2 Test Code:

  1. Replaced “FLASH_TOOL = UVISION” with “FLASH_TOOL = LPC12”

  2. Replaced “build: elf hex lss sym” with “build: elf lss sym hex FW.SFE”

  3. Added the following 4 lines to try and create an FW.SFE file just below lines 405-408 (%.hex: %.elf)

FW.SFE: main.elf

@echo

@echo $(MSG_FLASH) $@

$(OBJCOPY) -O binary $< $@

I used WINARM MAKE CLEAN and MAKE ALL. During the compile process I received one warning below:

Compiling C: main.c

arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gdwarf-2 -DROM_RUN -D__WinARM__ -O0 -Wall -Wcast-align

-Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=main.lst

-I…/Common_WinARM/inc -Wcast-qual -MD -MP -MF .dep/main.o.d -Wnested-externs -std=gnu99 -Wmissing-prototypes

-Wstrict-prototypes -Wmissing-declarations main.c -o main.o

main.c: In function ‘main’:

main.c:84: warning: passing argument 1 of ‘rprintf_devopen’ from incompatible pointer type

The following statement is at main.c:84, “rprintf_devopen(put_char); /* init rrprintf */”

I disconnect power from the UberBoard; Plug in the USB cable; Add power; Cut and paste the new FW.SFE to Micro SD.

When I disconnect the USB cable the following statements appear in my HyperTerminal Window

SparkFun USB Bootloader v1.1

Boot up complete

No USB Detected

Root open

Boot Done. Calling firmware…

No SD Card Detected

Boot Done. Calling firmware…

No SD Card Detected

Boot Done. Calling firmware…

(and the last two statements continue to loop)

Can you help me here?

Q: Does line 84 need to change in main.c?

Q: Have I made the correct changes to MAKEFILE to be able to create and use FW.SFE via USB Bootloader?