swift-embedded / swift-embedded

Swift for Embedded Systems ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to load ont on NUCLEON-H743ZI2

doozMen opened this issue · comments

Thanks for the good explanation and setup. I managed to get a board NUCLEO-H743ZI2 like described in the readme.

My toolchain is set to

xcrun -f swift
/Users/stijnwillems/Library/Developer/Toolchains/swift-LOCAL-2020-02-15-a.xctoolchain/usr/bin/swift

When I try to run openocd it fails

openocd -f board/st_nucleo_f4.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: open failed
in procedure 'init'
in procedure 'ocd_bouncer'

But as my knowledge is not big on the openocd part I got opened a new therminal and tride to load the builded blinky in to the

xcrun arm-none-eabi-gdb .build/debug/Blinky -ex 'tar ext :3333' -ex 'load'

GNU gdb (GNU Tools for Arm Embedded Processors 8-2019-q1-update) 8.2.50.20181213-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from .build/debug/Blinky...

warning: Section .debug_names in /Users/stijnwillems/Developer/OpenSource/swift-embedded/examples/Blinky/.build/thumbv7m-unknown-none-eabi/debug/Blinky length 368 does not match section length 33060, ignoring .debug_names.

warning: Could not find DWO CU /Users/stijnwillems/Developer/OpenSource/swift-embedded/examples/Blinky/.build/thumbv7m-unknown-none-eabi/debug/ModuleCache/BDVD4G0YREPI/HardwareExt-27Z9BOINAXY0Z.pcm(0xf4d17d3941b52b0c) referenced by CU at offset 0x7539 [in module /Users/stijnwillems/Developer/OpenSource/swift-embedded/examples/Blinky/.build/thumbv7m-unknown-none-eabi/debug/Blinky]

So unfortunatly I am somewhat stuck now. Could you point me in a direction to look for a solution?

steps I took to get it working where installing the STM32 cube programmer on macOS Catalina. This was not trivial finally got it working https://community.st.com/s/question/0D50X0000BmnqrBSQQ/how-to-run-stm32cubeprogrammer-on-macos-catalina-10151-19b88

clue is to have the jdk 8 installed and using the .exe as instructed in link above

Still I cannot yet flash a simple program on the arm processor. Would appreciate any help but getting closer to solution :)