Author Topic: STM8L-Discovery: Separating the programmer  (Read 23774 times)

0 Members and 1 Guest are viewing this topic.

Offline ju1ceTopic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
STM8L-Discovery: Separating the programmer
« on: July 10, 2012, 06:48:28 am »
Has anyone tried to separate (physically, using a saw) the programmer from the rest of the STM8L-DISCOVERY board? Of course, then I would have to supply the power myself, but are there any other things I should take into account? I think it should just work...

I'm asking this because I need the LCD to be near the top of the enclosure board in a project and I can't be bothered to brew my own board yet.
 

Offline ju1ceTopic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
Re: STM8L-Discovery: Separating the programmer
« Reply #1 on: July 13, 2012, 10:44:12 am »
I guess no one has this board. I'll order one from Mouser tonight and report back here when I get it (if I remember).

It looks like a very nice chip with an ADC, DAC and LCD interface.
 

Offline hans

  • Super Contributor
  • ***
  • Posts: 1685
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #2 on: July 13, 2012, 11:50:14 am »
Like all STM boards, can't you remove the jumpers + 2 wires?
I guess you can cut from the display, if you were really going for a smaller form factor.
The power supply is probably on the programmer side though, as that's where the power enters. I also see a SOT223 device next the jumpers, so that's probably the 3.3V rail.

Well, if it works, I think you can use the SWD output from the ST-Link for programming any ST device. So that would be quite convenient.
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2032
  • Country: dk
Re: STM8L-Discovery: Separating the programmer
« Reply #3 on: July 13, 2012, 07:01:08 pm »
I wonder why a STM8L-Discovery is interesting ....

Custom $$ compiler & non-32bit cpu.

I'd select a

STM32L-Discovery - Arm CortexM3

Free Compiler & 32-Bit

Both seems to have onboard LCD

/Bingo
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: STM8L-Discovery: Separating the programmer
« Reply #4 on: July 13, 2012, 07:09:40 pm »
...i was "lectured" by another person on this forum some time ago that,
8 bit is faster for bitbanging
And apparently the STM8L is the king of the 8bit market
 

Offline ju1ceTopic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
Re: STM8L-Discovery: Separating the programmer
« Reply #5 on: July 13, 2012, 07:32:04 pm »
I wonder why a STM8L-Discovery is interesting ....

Custom $$ compiler & non-32bit cpu.

I'd select a

STM32L-Discovery - Arm CortexM3

Free Compiler & 32-Bit

Both seems to have onboard LCD

/Bingo
Well it depends. I'm making a dummy load (one-off), where the current setting is given by the DAC and the current is shown on the LCD. I may also add a few I2C devices like a temperature sensor and a keypad, but even then a compiler with a size limit will suffice.

In this case a 32-bit cpu wouldn't add any extra value, so I decided to stick with a 8-bit cpu because I'm used to them and they are generally simpler.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: STM8L-Discovery: Separating the programmer
« Reply #6 on: July 13, 2012, 07:33:51 pm »
I digged one out of the junk bin at work (where all our ST boards live). It was marked as MB915-B00. It didn't power up so I couldn't conduct a live saw experiment. But from a quick inspection, there doesn't seem to be an official "cut here" line between the display and the programmer. There is a little bit of space, but it is used, for example, by a horizontal traces.

Anyway, STs eval licene is rather restrictive when it comes to using the eval board in some producr setup. Read it for a good laugh end hen move on to another manufacturer.
:
By the way, there is an attempt at an open source compiler for the 7 and 8 ST MCUs. When we looked at it, it was unusable. And as we have learned, ST won't give open source compiler developers a helping hand. Despising open source and thinking throwing cheap eval boards at the masses is enough to win the hearts and minds over.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline McMonster

  • Frequent Contributor
  • **
  • Posts: 413
  • Country: pl
    • McMonster's blog
Re: STM8L-Discovery: Separating the programmer
« Reply #7 on: July 14, 2012, 02:53:45 pm »
By the way, there is an attempt at an open source compiler for the 7 and 8 ST MCUs. When we looked at it, it was unusable. And as we have learned, ST won't give open source compiler developers a helping hand. Despising open source and thinking throwing cheap eval boards at the masses is enough to win the hearts and minds over.
Same thoughts here. I considered buying one just to see how a different 8-bit micro would work, but couldn't find any compiler that does not limit the code size etc. (or maybe I missed something?). Lack of open source support for the platform won't attract many hobbyists. TI makes the same error with MSP430, great micros, but no support for open source tools, but at least they are there.
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: STM8L-Discovery: Separating the programmer
« Reply #8 on: July 14, 2012, 05:54:39 pm »
It's depressing, it really is.
If not for the fact that i have access to IAR, i would not have tried out a STM32F4-Disco
 

Offline McMonster

  • Frequent Contributor
  • **
  • Posts: 413
  • Country: pl
    • McMonster's blog
Re: STM8L-Discovery: Separating the programmer
« Reply #9 on: July 14, 2012, 06:42:58 pm »
Things are different with ARMs, there good and free toolchains, there's OpenOCD for debugging and it's all relatively easy to set up in Eclipse or any other environment you like. I have two ARM dev boards (STM32F4 Discovery and a STM32F107 based board) and I don't have any problems programming and debugging them.
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2032
  • Country: dk
Re: STM8L-Discovery: Separating the programmer
« Reply #10 on: July 14, 2012, 06:50:35 pm »
TI makes the same error with MSP430, great micros, but no support for open source tools, but at least they are there.

This i don't understand ....

I have build several MSP430 GCC compilers , and there's also OSS support for the programmer @their 4.30$ little board.

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=720728#720728
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=756652#756652

/Bingo
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2032
  • Country: dk
Re: STM8L-Discovery: Separating the programmer
« Reply #11 on: July 14, 2012, 06:54:31 pm »
In this case a 32-bit cpu wouldn't add any extra value, so I decided to stick with a 8-bit cpu because I'm used to them and they are generally simpler.

Afaik the STM8 is quite complex , as the IO looks a lot like ST's 32-bit arm's

But i haven't tried one , i do have a few STM8VL-Discovery's.
But just used the programmer part (ARM) , to convert to Versaloon Debugging dongle.
I have never wanted to waste time on a mcu wo. a free compiler.

/Bingo
 

Offline ju1ceTopic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
Re: STM8L-Discovery: Separating the programmer
« Reply #12 on: July 19, 2012, 09:14:19 pm »
I tried it and it is definitely possible. You needn't rework any traces if you've got a saw with a blade thin enough. I had to rewire the reset line and connect the 3.3V line to the SWIM connector so that the target board can get power.

Here's the board saying "Hello EEVBlog":

 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #13 on: July 21, 2012, 11:56:47 am »
TI makes the same error with MSP430, great micros, but no support for open source tools, but at least they are there.

This i don't understand ....

I have build several MSP430 GCC compilers , and there's also OSS support for the programmer @their 4.30$ little board.

Same here. mspgcc + mspdebug works just fine. :)
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #14 on: July 21, 2012, 12:02:10 pm »
I tried it and it is definitely possible. You needn't rework any traces if you've got a saw with a blade thin enough. I had to rewire the reset line and connect the 3.3V line to the SWIM connector so that the target board can get power.

That's using the STM8VL-Discovery? If so, then I just found another rationalization for buying one. ;) I wonder if the same trick is going to work for a  STM8S-Discovery. I'd guess yes, but has anyone here tried this?
 

Offline ju1ceTopic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
Re: STM8L-Discovery: Separating the programmer
« Reply #15 on: July 21, 2012, 02:32:59 pm »
That's using the STM8VL-Discovery? If so, then I just found another rationalization for buying one. ;) I wonder if the same trick is going to work for a  STM8S-Discovery. I'd guess yes, but has anyone here tried this?
It's a STM8L-discovery (STM8VL-Discovery doesn't seem to exist; STM32VL-Discovery is of course a completely different beast). STM8S-Discovery can definitely be separated, it even has milled slots for easy snapping and it is mentioned in its manual.
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #16 on: July 21, 2012, 02:44:59 pm »
Sorry, STM8SVLDISCOVERY induced mixup there. And good to know about the STM8S-Discovery. Looks like an addition to the shopping list. And now I only hope setting up a toolchain for that is moderately less painful than for the STM32F4. :P
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: STM8L-Discovery: Separating the programmer
« Reply #17 on: July 21, 2012, 05:40:46 pm »
Sorry, STM8SVLDISCOVERY induced mixup there. And good to know about the STM8S-Discovery. Looks like an addition to the shopping list. And now I only hope setting up a toolchain for that is moderately less painful than for the STM32F4. :P

It is indeed painful. But that's what you throw away for raw power

*PS: I saw a STM3210e for only 110USD somewhere, if you're interested and also
http://www.aliexpress.com/product-fm/601319176-Free-shipping-ARM-Cortex-M4-STM32-STM32F407-STM32F407IGT6-development-board-with-3-2-inch-LCD-display-wholesalers.html
« Last Edit: July 21, 2012, 05:45:26 pm by DaveXRT »
 

Offline hans

  • Super Contributor
  • ***
  • Posts: 1685
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #18 on: July 21, 2012, 10:50:25 pm »
...i was "lectured" by another person on this forum some time ago that,
8 bit is faster for bitbanging
And apparently the STM8L is the king of the 8bit market
Why is 8-bit faster for bitbanging?
The bit size of a proccesor only means how big registers in the proccesor are. A 32-bit processor can easily work with  bytes.
For e.g. I have done SPI bitbanging on a PIC32 running at 80MHz. I was only able to analyze the signal (like SCK) if I put extra delays in the code (NULL commands) , otherwise the 50MHz tek scope @ college couldn't pick it up..
I do give you though, that most ARM processors don't allow for quick I/O toggling because of their architecture. The new GPIO values have to propogate through all the AHB busses , matrices, switches etc. etc. , and will add considerable delays.
Some MCU's support Fast GPIO where it's directly on the CPU bus. But typically fairly limited. However, if bit banging is too slow then try to use a peripheral (adapt SPI, I2C, camera, memory busses etc), it's much faster and you get DMA (if you need high throughput).

Anyway, if you want to ditch IAR (which I probably am going to do), CooCox sounds like a great alternative:
http://www.coocox.org/CooCox_CoIDE.htm
It's free to use.

They support Cortex M4 and the STM32F4 too.

I'm uncertain if the STM8 is a 'king' at all.  Like I never actually looked into ST MCU's untill I saw the STM32F4 with a 7MSPS ADC (which I plan to use for a future project).
Their 8-bit MCU's seem alright, but I don't see any advantage or disadvantage to using a modern PIC or an AVR.
Well I guess having DMA and a 1MSPS ADC + DAC on such a low entry MCU is nice. Problem is, if the project doesn't need it, you still don't gain any advantage ;)
In general, I'd rather ditch 8-bit completely and pick something 16-bit or even 32-bit all the time. Look at NXP Cortex m0 series, they are fast , lots of space and peripherals, one set of tools (Cortex m0 to m4), small (I believe there are some TSSOP and even DIP versions) and cheap (few dollars).
« Last Edit: July 21, 2012, 10:59:46 pm by hans »
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: STM8L-Discovery: Separating the programmer
« Reply #19 on: July 22, 2012, 05:33:26 pm »
Well duh. STM32F0 too ...
As i said i was "lectured"
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #20 on: July 29, 2012, 01:17:02 am »
I'm uncertain if the STM8 is a 'king' at all.  Like I never actually looked into ST MCU's untill I saw the STM32F4 with a 7MSPS ADC (which I plan to use for a future project).
Their 8-bit MCU's seem alright, but I don't see any advantage or disadvantage to using a modern PIC or an AVR.
Well I guess having DMA and a 1MSPS ADC + DAC on such a low entry MCU is nice. Problem is, if the project doesn't need it, you still don't gain any advantage ;)
In general, I'd rather ditch 8-bit completely and pick something 16-bit or even 32-bit all the time. Look at NXP Cortex m0 series, they are fast , lots of space and peripherals, one set of tools (Cortex m0 to m4), small (I believe there are some TSSOP and even DIP versions) and cheap (few dollars).

Agreed, those NXP cortex M0's are pretty nice for the price. However for my current purposes the PWM capabilities on the lower end devices (< 2.00 EUR @ 100 units) is unfortunately only so-so.

As far as I could tell the entry level models only supported edge aligned PWM, and no center aligned PWM. Combine that with the curious pinout layout (msp430 lower end mcu's have the same issue) and then all in all it's not super useful. Regarding pinout: I need 8 PWM outputs AND 8 adc inputs. So it'd be nice if the analog inputs are not mutually exclusive with LOTS of PWM outputs. As said, msp430 also suffers from this. But the STM8S cheapies actually do allow you to use all your analog inputs while still being able to use all the PWM outputs. Obviously the STM32F4 also fits the technical requirements, but it's a tad expensive. ;-)

I will confess however I am not all that up to speed with the NXP parts, so maybe I missed the magical MCU that fits?
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: STM8L-Discovery: Separating the programmer
« Reply #21 on: July 29, 2012, 04:34:04 am »
ALA, they should be the same.
Since they are decidedly based on the same platform, but really you can make use of the extra speed on the NXP's chips.
but there's a reason ST's not that quick, it's a M4F part, which means you can make use of the mighty FPU if need be.
ST's 204MHz M4 without the FPU is still in the works*
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: STM8L-Discovery: Separating the programmer
« Reply #22 on: July 30, 2012, 02:35:36 am »
ALA, they should be the same.
Since they are decidedly based on the same platform, but really you can make use of the extra speed on the NXP's chips.
but there's a reason ST's not that quick, it's a M4F part, which means you can make use of the mighty FPU if need be.
ST's 204MHz M4 without the FPU is still in the works*

If you intended this as reply to my post, then I'm afraid I don't quite follow. How can one make use of the extra speed of the NXP chips? To compensate for the PWM deficiencies mentioned? Hopefully not by bitbanging PWM or some such, because that kind of defeats the whole purpose of hardware support. Lack of center aligned PWM is annoying to workaround in software, not to mention the pinouts. ;)

And if you didn't intend it as a reply to my post, my bad, please ignore this. Carry on. :)
« Last Edit: July 30, 2012, 02:37:39 am by mrflibble »
 

Offline ju1ceTopic starter

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
Re: STM8L-Discovery: Separating the programmer
« Reply #23 on: August 02, 2012, 11:35:43 am »
I've played with this for a few nights and I'm starting to think that STM8 microcontrollers are quite nice. They are quite affordable, they have a lot of on-chip peripherals (like DAC, on-chip unique id, RTC etc.) and the register design seems quite logical. The biggest annoyance is the lack of decent (gcc) dev tools, which is a bit sad as it is a good chip.

I think I may use STM8 chips in the future if I need a peripheral that isn't found on ATmegas or MSP430s (like a 12-bit DAC) and the application is not math intensive (that's for ARM chips).
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2032
  • Country: dk
Re: STM8L-Discovery: Separating the programmer
« Reply #24 on: August 02, 2012, 08:30:28 pm »
@Ju1ce
What compiler are you using for the STM8 ?
I have 4 STM8S boards , just for using the Jtag part as a Versaloon Arm-Jtag SWD Dongle.

Meaning , i have 4 STM8 boards (separated from the Jtag) , that just lies around.


But .... TI is launching a $5 Cortex M4 "Launchpad" in late september.
http://www.ti.com/ww/en/launchpad_site/stellaris.html

If periphs are nice on those , then i's suggest to di..h the STM8 (unless you'd need 1K+ for a proj)

/Bingo

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf