Thalhammer / simcom_dam

Examples for simcoms downloadable modules (Qualcomm SoC)
28 stars 13 forks source link

make upload results "Bad Command" #10

Open nitimohi opened 4 years ago

nitimohi commented 4 years ago

I am trying to use this package to check if could program the SIM7000, after struggling for couple of days here there I got everything running but last step :

make upload - Bad Command.

Using: linux Ubuntu 18.4.1 QMake version 3.1; using QT version 5.11.1 /opt/qt5/lib(i build it) UPLOAD_DEV=dev/ttyUSB0 ls /dev/ttyUSB* : /devUSB0 /devUSB0 /devUSB1 /devUSB2 /devUSB3 /devUSB4 lsusb : Bus 001 Device 003 ID 1e0e:9001 Qualcomm / Option

copied serial library to project directory i don't know what else i am missing

Thalhammer commented 4 years ago

Did you build the upload tool ? Can you post the full console output ?

nitimohi commented 4 years ago

nav@nav:~/simcom_dam/tools$ make clean nav@nav:~/simcom_dam/tools$ make Building upload.cpp nav@nav:~/simcom_dam/tools$

nav@nav:~/simcom_dam/tools$ sudo ./upload /dev/ttyUSB0 /home/nav/simcom_dam/examples/00-helloworld/bin/cust_app.bin Bad Command

nav@nav:~/simcom_dam/examples/00-helloworld$ make upload Bad Command ../../build_scripts/default.mk:53: recipe for target 'upload' failed make: *** [upload] Error 255

Thalhammer commented 3 years ago

Make sure you use the correct serial device and retry a couple of times. The make scripts have a upload-retry target that just retries uploading until it works.