Hi,
How to flash a hexadecimal file compiled with Simplicity Studio for MG24 series onto my XIAO MG24 board?
Regards
Hi,
How to flash a hexadecimal file compiled with Simplicity Studio for MG24 series onto my XIAO MG24 board?
Regards
Just use OpenOCD. I have a repository that explains how.
Thanks, I’ll go check it out right away.
Hi,
Do you know why it doesn’t work with my xiao_mg24?
PS C:\Users\ludov\Documents\GitHub\xiao_mg24\OpenOCD> ./flash_code.bat "firmware\MatterValveThreadSolution.hex"
Flash Image "firmware\\MatterValveThreadSolution.hex"?
Press Y or Enter to continue or N to exit: Y
Open On-Chip Debugger 0.12.0+dev-01514-g21fa2de70 (2024-02-07-19:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
scripts/target/efm32s2.cfg:8: Error: Can't find target/swj-dp.tcl
in procedure 'script'
at file "embedded:startup.tcl", line 28
at file "scripts/target\efm32s2_g23.cfg", line 11
at file "scripts/target/efm32s2.cfg", line 8
Do I need to create the target/swj-dp.tcl file
?
Sorry, I don’t know what is causing that. I can check in the morning, 10:30pm here now…
What OS are you using? Try from Windows cmd to see if that helps?
I testing on my Windows 11 laptop.
Same issue using Windows cmd terminal:
C:\Users\ludov\Documents\GitHub\xiao_mg24\OpenOCD>flash_code.bat "firmware\MatterValveThreadSolution.hex"
Flash Image ""firmware\\MatterValveThreadSolution.hex""?
Press Y or Enter to continue or N to exit: y
Open On-Chip Debugger 0.12.0+dev-01514-g21fa2de70 (2024-02-07-19:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
scripts/target/efm32s2.cfg:8: Error: Can't find target/swj-dp.tcl
in procedure 'script'
at file "embedded:startup.tcl", line 28
at file "scripts\target\efm32s2_g23.cfg", line 11
at file "scripts/target/efm32s2.cfg", line 8
Ok, I’ll have a look when I get back to my office in the morning.
Seems like a script isn’t getting found even though it exists. Could be a path issue?
I find that file in Arduino Silabs directory and copy it.
Now I don’t have this error anymore.
Fixed by this commit: