Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make upload results "Bad Command" #10

Open
nitimohi opened this issue Mar 5, 2020 · 3 comments
Open

make upload results "Bad Command" #10

nitimohi opened this issue Mar 5, 2020 · 3 comments

Comments

@nitimohi
Copy link

nitimohi commented Mar 5, 2020

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
Copy link
Owner

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

@nitimohi
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants