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

Please, check if everything needed for flash is not ignored in .git #3

Closed
remixoff opened this issue Feb 2, 2024 · 1 comment
Closed

Comments

@remixoff
Copy link

remixoff commented Feb 2, 2024

`$ ./flash.sh

Open On-Chip Debugger 0.10.0

Licensed under GNU GPL v2

For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

embedded:startup.tcl:60: Error: Can't find interface/stlink.cfg
in procedure 'script'

at file "embedded:startup.tcl", line 60
`

after download the stlink.cfg:

`$ ./flash.sh

Open On-Chip Debugger 0.10.0

Licensed under GNU GPL v2

For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

interface/stlink.cfg:8: Error: invalid command name "adapter"

in procedure 'script'

at file "embedded:startup.tcl", line 60

at file "interface/stlink.cfg", line 8`

after download proper stlink-v2.cfg:

`$ ./flash.sh

Open On-Chip Debugger 0.10.0

Licensed under GNU GPL v2

For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

embedded:startup.tcl:60: Error: Can't find target/stm32g4x.cfg

in procedure 'script'

at file "embedded:startup.tcl", line 60
`

after download stm32g4x.cfg

`$ ./flash.sh

Open On-Chip Debugger 0.10.0

Licensed under GNU GPL v2

For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '.

target/stm32g4x.cfg:33: Error: invalid command name "dap"

in procedure 'script'

at file "embedded:startup.tcl", line 60

at file "target/stm32g4x.cfg", line 33
`

too much. Decided to flash via st-flash, but now figuring out if I should start flash from start of the memory, or need some alignments.

PS: before that whole build was almost smoothly. Unmet dependencies are: sudo apt install curl openocd
PPS: I was also surprised by not existing curl in Ubuntu 20

@jpieper
Copy link
Member

jpieper commented Feb 2, 2024

The README had mentioned that some openocd's did not support the processor in the fdcanusb. Since then, upstream 0.11.0 was released, which does have support. It is included in Ubuntu 22.04, so I've just upped the minimum build requirement to that:

8498001
36789b8

@jpieper jpieper closed this as completed Feb 2, 2024
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