Hi Carmine,
Great book. Certainly the best I have read next to Joseph Yiu’s book.
There is an error in the UART implementation via polling example code page 241 there are literal character arrays that lack enclosing quotes, they are:
1. WELCOME_MSG
2. MAIN_MENU
3. PROMPT
Best,
Mbutura.
Kindly update your openocd version from Liviu. The issue has been closed:
https://github.com/gnuarmeclipse/plug-ins/issues/173
Keep the same path prefix and just replace the openocd working folder. It should work with no modifications to your IDE-Toolchain setup.
Best,
Mbutura.
I managed to solve this problem a while back just as @tony radice but only a bit differently:
I use Ubuntu 16.04 and I have my debugger tab OpenOCD Setup as:
<Executable>: /<absolute path prefix>/openocd/bin/openocd
<GDB port>: 3333
<Telnet port>: 4444
<Config options>: -f /<absolute path prefix>/openocd/scripts/board/st_nucleo_f4.cfg
Note: After you have done this on your Linux/Unix system, unchecked the “Start OpenOCD Locally” button.
Apply the above and close.
Thus to successfully debug:
1. Start Openocd as an external program.
2. Run the debug configuration as in the book with the modifications in this post reply to avoid the error.
On windows it should be the same as linux but only with a different absolute path and path separators(“\” instead of “/”).
Hope it helps!
Best,
Mbutura.
Nairobi, Kenya.