1

The STM8S-Discovery has a JTAG port for programming the STM32F103C8T6 ST-LINK part of the board. Though there is only the USB connection, two I/O lines (for the SWIM interface) and a LED which are easily accessible (plus the JTAG lines themselves once programmed) it could still be fun to play with - a single STM32 chip costs more than the STM8S-Discovery.

With a recoded STM32 it should be possible (with appropriate rewiring and bridging software) to USB enable the STM8S as a HID or CDC (Serial) device thru the STM32.

Does anyone have any information or pointers to software and hardware needed to program the STM32? Is anyone using the STM8S-Discovery as an STM32 development plaform?

If anyone can work out how to use one Discovery ST-LINK to program another that would be very useful. Ideally it would just need one ST-LINK JTAG port linking to the other.

flag

2 Answers

1

Since the STM32's are ARM Cortex-M3's, I believe they are supported by GCC. It looks like the cheapest way to get code onto them would be with a board supported by OpenOCD, one example of which that runs on USB is the Flyswatter from Tin Can Tools for ~$50. Parallel port JTAG programmers are apparently also an option, and lower-cost. The person on the SparkFun forum link below seems to be using OpenOCD to program a similar chip, and might have useful info.

As to actually programming it to act as a USB/serial bridge, an HID device, or to program other chips, I'll leave that to you :P

Note that this is based on cursory web research and not any special knowledge or experience I have :P

openocd.berlios.de/

www.tincantools.com/product.php?productid=16134&cat=251&page=1

forum.sparkfun.com/viewtopic.php?p=86779&sid=02ab60d1301df691e080f1c6e9551503

link|flag
1

Thanks. From my own research it also appears that the STM32 has an inbuilt boot mode which allows programs to be loaded via a UART and executed. Access to the required pins may be a challenge but would save on needing JTAG and related software and hardware. The STM8S could be used to bootload the STM32 from its internal memory for short programs or I2C/SPI EEPROM for larger.

It might even be possible to create a JTAG interface using the STM8S, at least capable of flashing an STM32 if nothing else.

I am unfortunately not familiar with STM8S, STM32 or JTAG but am pulling more information in all the time. The STM8S-Discovery is a very cheap, fairly powerful board - the challenge now is maximising its use beyond what was intended.

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.