-
Notifications
You must be signed in to change notification settings - Fork 93
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
flash.mk openocd script can't open target binary #872
Comments
Hello, I also have trouble similar to that. May I just ask, did you also encounter a gdb connection error? |
Hi Ethyl, No, I did not. I was able to flash my app over gdb-openocd. I ran it like it explains in the User Guide, below for your reference: In one terminal window, run: In another terminal, cd into your project directory and run I was also able to flash with just OpenOCD by essentially running the same command as the flash.mk but on the command line. Incidentally, I also installed onto a VM for Ubuntu 22.04 yesterday and the flash.mk process works just fine on Linux. So it's perhaps a Windows issue. |
Thanks @Brandon-Hurst, just replicated the issue. It does seem to be specific to Windows/MSYS2 |
Hey @Brandon-Hurst just merged a fix into main. Should be working now |
Yep, tested and working. Thanks Jake! |
Attempting to flash my MAX78000FTHR via "make flash.openocd" as described in the User Guide.
![image](https://private-user-images.githubusercontent.com/82959533/296515859-0dc6b004-cd36-4afb-89f4-93ab6bb1b75c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjMwOTcsIm5iZiI6MTczOTE2Mjc5NywicGF0aCI6Ii84Mjk1OTUzMy8yOTY1MTU4NTktMGRjNmIwMDQtY2QzNi00YWZiLTg5ZjQtOTNhYjZiYjFiNzVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA0NDYzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5MTk1NGRkN2NiZmRmZTMxMDFmNGUwYTY0YmYyMWMxYzQ3NjI4ZTFiZDY1ZWQzZDI1NWNjMDNkOWNjOWNlZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EEVpUKzCGt6cnuONljWFpkTXFLBSPr5HZCyjA7e8Kjg)
Here is the output I consistently get:
![image](https://private-user-images.githubusercontent.com/82959533/296515823-b00fe50e-5233-483f-8060-9b67c6cbf7d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjMwOTcsIm5iZiI6MTczOTE2Mjc5NywicGF0aCI6Ii84Mjk1OTUzMy8yOTY1MTU4MjMtYjAwZmU1MGUtNTIzMy00ODNmLTgwNjAtOWI2N2M2Y2JmN2QzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA0NDYzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0ZmFiNzExOWRjMGViYzA3YTA1ZmFlNTFjMDE3YjA0NDg3NmM1NzE4ZDJkZTg5YTFjNzdhZDUxZDM5OGYwMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.S_6zgEi2e1oQWuLT7GyD2BomdM_XeoJQq2YOzB7TnI4)
I'm able to manually run openocd/arm-none-eabi-gdb server and flash the binary just fine, but the flashing script referenced here is unable to open the binary file. I also tried this from an Administrator-level bash environment.
The text was updated successfully, but these errors were encountered: