Other Parts Discussed in Thread: CC3200, UNIFLASH
hi.
I'm trying the cc3200 LaunchPad with AWSIOT demo code. http://www.ti.com/ww/en/internet_of_things/IoT-Amazon-Web-Services-for-SimpleLink-Wi-Fi.html?DCMP=aws-amazon&HQS=awsiot
the demo is work.
and I want Flash program to device
modify file to build to target file ".bin"
1 aws_iot_config.h
#define AWS_IOT_ROOT_CA_FILENAME "/cert/ca.pem"
#define AWS_IOT_CERTIFICATE_FILENAME "/cert/client.pem"
#define AWS_IOT_PRIVATE_KEY_FILENAME "/cert/private.key"
2 makefile
diff --git a/sample_apps/shadow_sample/platform_tirtos/cc3200/makefile b/sample_apps/shadow_sample/platform_tirtos/cc3200/makefile
index 8cca1e3..15d806f 100644
--- a/sample_apps/shadow_sample/platform_tirtos/cc3200/makefile
+++ b/sample_apps/shadow_sample/platform_tirtos/cc3200/makefile
@@ -79,7 +79,7 @@ LIBS = aws_iot_sl.aem4
%.o : %.c $(APP)/compiler.opt aws_iot_config.h
@$(CC) $(CFLAGS) -c $<
-all: $(APP).out
+all: $(APP).bin
$(LIBS): $(OBJECTS)
@$(AR) rq $@ $^
@@ -88,6 +88,9 @@ $(APP).out: $(LIBS) $(APP).o main.o rom_pin_mux_config.o netwifi.o UARTUtils.o C
@echo building $@ ..
@$(LD) -o $@ $^ -x -m $@.map $(LFLAGS)
+$(APP).bin: $(APP).out
+ @$(binconv) $^ $@
+
clean:
@echo cleaning ..
@ $(call remove, *.o *.out *.map $(LIBS))
we get the target file shadow_sample.bin
convert PEM format file to DER format file with tool OPENSSH
short J15 at CC3200 board and connect to pc with usb cable.
open CCS UniFlash ,create new configuration.
select CC3x Serial(UART) Interface at "Connection:" choice box
after create new configuration for cc3200.
set the /sys/mcuimg.bin Url to the path for shadow_sample.bin
set the /cert/ca.pem Url to path for root-ca.der
set the /cert/client.pem Url to path for certificate.pem.crt
set the /cert/private.key Url to path for D:\Work\IOT\amazon\f58da81ae0-private.pem.key
after modify the setting.
click format ,select (1MB)
click program.
when flash finish.
open the JUMP j15, press the reset button.
but the flash program can't run.