1

The STM8S-Discovery is designed to snap apart into two boards, the programmer and the one with the MCU itself. What do I do to use them together after snapping them apart?

flag

4 Answers

1

You only actually need one of 5V or 3.3V.

If you set JP1 to straddle pins 1 and 2, VCC is 3.3v, 2 and 3 sets VCC to 5V. SWIM access works with the core set to either of the two (pins are 5V tolerant even with VCC at 3.3).

If you're using the board on its own, connect regulated 3.3v or 5v to pin 2 of JP1, and gnd to any one of the VSSIO headers (CN1 pins 4 or 5, CN2 pin 7) CN3 pin 2 is analog ground, as far as I can tell

link|flag
1

I'm not convinced those connections shown on the above image are correct, they certainly don't match with the STM8S-Discovery manual nor with a continuity check with a meter before snapping the two apart.

link|flag
1

** should be fixed now **

The boards are connected by five traces: 5V supply, 3.3V supply, VSS, SWIM, and RESET.

The header labelled CN7 on the programmer board has what you'll need; from left to right, VDD, SWIM, VSS, and RESET. These will need to be connected appropriately to the headers on the MCU board. See picture for details. The VDD pin of CN7 supplies 5V. The regulated 3.3V is only brought out on pin 1 of CN5 (the square pad on the bottom right, this header is unpopulated OOB). The MCU board can run and be programmed on either voltage.

Note that the MCU board doesn't have a power supply of it's own, so to use it independently you'll need one.

(pic/text similar to my own blog post, it isn't plagiarism)

link|flag
1

That agrees with my assessment, thanks.

For those not familiar with IDC header pin numbering; numbers go across the connector then along. Pin 2 is opposite Pin 1, Pin 3 is adjacent to Pin 1, Pin 4 is opposite Pin 3 etc, so odd numbered pins along one side, even numbered along the other.

For the STM8S-Discovery, Pin 1 of each CN block is outmost ( furthest from the chip ) and the most clockwise pin around those blocks.

link|flag

Your Answer

Get an OpenID
or

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