Now I have VisualGDB setup correctly, I can now compile my code and debug it on my target hardware.
However, it is failing at almost the first hurdle 🙁
In startup_stm32f215xx.c there is a call to __libc_init_array in the Reset handler which I believe is in newlib. When __libc_init_array is called a hard fault results.
Looking on other forums, it would appear that this is due to __libc_init_array being compiled as 32-bit ARM code rather than Thumb(2) code required by my Cortex-M3 processor (STM32F215RG).
Can anyone advise how I go about resolving this ?
Andy