2010-10-18 11:21 AM
Hey There,
after three days of succesfull playing with my stm32discovery i tried to attach a sd-card. After this i got an error while programming the new Firmware:C:/msys/1.0/build/tools/obj/gdb-7.1/gdb/regcache.c:178: internal-error: register_size: Assertion `regnum >= 0 && regnum < (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. The error remains also after removing the sd card Has anyone an idea? Thanks2010-10-18 01:28 PM
Perhaps you could have damaged the chip. Check the wiring, check voltages, and oscillators. Try using the ST-LINK with the ''ST-LINK Utilities'' programs that STMicro has, it should be able to identify the chip, erase, re-program, etc, provided you haven't destroyed it.
2010-10-19 10:40 AM
are you using the spi1 standard pinout, spi1 alternate pinout or spi2? if using the alternate pinout, you should notice that disabling the shared jtag pin (to enable the spi clock alternate function) will make any communication with the chip over st-link impossible.
2010-10-20 12:55 PM
Hey Guys, thank you for answering and trying to help.
@clive1: Voltages seems to be correct, all other points: see below @a. richard: I'm using the SPI standard pinout. After some hours of unsucessfull try'n'error I made the decision to reinstall Atollic TrueStudio... amazing: it works. Conclusion: sometimes the most implausible solution ist the best