Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #473818

Re: Microchip ICD4 ?

From rickman <gnuarm@gmail.com>
Newsgroups sci.electronics.design, comp.lang.forth
Subject Re: Microchip ICD4 ?
Date 2017-08-18 05:18 -0400
Organization A noiseless patient Spider
Message-ID <on6b4c$b23$1@dont-email.me> (permalink)
References (3 earlier) <on52f0$4ou$1@dont-email.me> <_XolB.2447$kJ2.2238@fx33.iad> <59965381$0$1499$c3e8da3$5496439d@news.astraweb.com> <on5l20$kjl$1@dont-email.me> <59969e39$0$1499$c3e8da3$5496439d@news.astraweb.com>

Cross-posted to 2 groups.

Show all headers | View raw


Terry Porter wrote on 8/18/2017 3:58 AM:
> On Thu, 17 Aug 2017 23:01:21 -0400, rickman wrote:
>
>> Terry Porter wrote on 8/17/2017 10:40 PM:
>>> On Thu, 17 Aug 2017 18:40:58 -0400, bitrex wrote:
>>>
>>>> On 08/17/2017 05:44 PM, rickman wrote:
>>>>> piglet wrote on 8/17/2017 4:23 PM:
>>>>>> On 17/08/2017 20:52, bitrex wrote:
>>>>>>> On 08/17/2017 01:45 PM, Martin Riddle wrote:
>>>>>>>> Any folks using this ICD4?
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>>
>>>>>>>>
>>>>>>> I hope nobody's still writing uP code in asm in the year 2k17.
>>>>>>
>>>>>> I do, assembler is the best!
>>>>>>
>>>>>> With a good suite of macros can do anything better than them darn
>>>>>> annoying "high level" languages claim.
>>>>>
>>>>> I have often thought of Forth as a macro assembler on steroids.
>>>>> Mecrisp is being given optimizations that get it even closer to
>>>>> working in assembler in terms of speed and code size.  Have you ever
>>>>> looked at it?
>>>>>
>>>>>
>>>> My contention is that well-written modern C++1x will destroy any
>>>> handwritten asm or compiled-Forth "macro assembler" program on both
>>>> execution speed and code size for any nontrivial general computing
>>>> task in all but the most extreme edge-cases, even on say AVR 8 bit
>>>> devices.
>>>>
>>>> There should be a contest! ;-)
>>>
>>> Why not, personally I believe that hand wrtten assembly will murder any
>>> modern C++1x, so here is my challenge.
>>>
>>> A human-visible Blinky with the smallest binary size, and without
>>> strange electrical states on other pins. A 'Blinky" blinks a LED around
>>> once a second but may be faster or slower as long as it's clearly
>>> 'blinking' to a human.
>>>
>>> The targets:
>>> MCU		       | Assembly binary size to beat so far:
>>> 1) STM32F051 Discovery | 32 bytes 2) MSP340	       | 14 bytes
>>>
>>> Note: The binary sizes above were above hand crafted by Matthias Koch,
>>> author of Mecrisp, Mecrisp-Stellaris, Mecrisp-Across and many other
>>> programs.
>>>
>>> A personal note, my own efforts are tabled below, both are boring, no
>>> shortcut tutorial Blinkies:
>>> Assembly STM32F051 Discovery Blinky: 84 bytes.
>>> GCC STM32F051 Discovery Blinky: 312 bytes.
>>
>> Did all of the numbers above include the required startup code?
>
> Yes and exception handling, they're self contained cold bootable
> binaries. Flash them to the targets and the LED will blink.

Then it is not a fair comparison.  A C compiler won't have any way to pare 
down the startup code to eliminate a bunch of initialization that won't be 
needed.  I guess that goes along with the example being rather "trivial".


>>  Or is
>> this just for the binary to actually blink the LED, say the equivalent
>> of "main"?
>
> Definitely not.
>
>>
>> If Mathias coded this, did he also code it in Forth?
>
> A Forth Blinky is too big to include in a "smallest size binary contest"
> as the Forth core is also required. Otherwise a Forth Blinky is the
> easiest to make.

Sorry, that is not the case.  A Forth compiler can compile a stand alone 
executable just like any other compiler.


>> He is working on a
>> new system that can run on a "host" and generate code to run on a target
>> MSP430.
>
> Yes, I'm evaluating "Mecrisp-Across" at the moment. The binary runs on
> MSP430 targets, but "Mecrisp-Across" is written in Forth and runs on
> Mecrisp-Stellaris, hosted on ARM, be it a RaspberryPI, STM32, TI Tiva
> Connected Launchpad or about 5 other manufacturers ARM products.

"But"???  Why "but"?


>>   He hasn't even thought about an ARM version yet.
>
> He has, but because Matthias is a *very* fond of MSP430 Assembly
> and always wanted to make a super optimised tethered Forth compiler,
> MSP430 was a logical choice. I wouldn't hold my breath waiting for a ARM
> version.

Yes, that's what I said.  I asked him and he said it would be a while before 
he considers it.  I assume some if not much of the optimization would be 
different for the two CPUs, so a lot of work for an ARM version.


> He has made Mecrisp-Stellaris for CortexM, it's cold bootable turnkey
> capable and only 19K with the latest RA version and Vocabulary hooks. I
> feel it's very capable, and the price is right.

I know, I've used it... on a Stellaris in fact.


> STM32F CortexM variants with 64K Flash are dirt cheap and what I use. I
> paid $0.56 USD ea for STM32F051 in 32 pin QFN with 64K flash from Avenet
> a couple of years ago.

Oh yeah, I know you.  You are the guy with the web site that only uses the 
IP address.  I'm not good with names when I can't connect faces to them.  I 
was talking to you about adding documentation to your site for the MSP430 
Mecrisp.


> On the other hand MSP430 are very expensive in comparison to STM32F, so I
> think Mecrisp-Across Forth hosted on ARM and generating binaries for
> MSP430 chips is a great idea.

I don't follow the reasoning.  An MSP430 with 128kB of Flash and 16kB of RAM 
is only $2.30.  I think that is affordable for a development system.


> Mecrisp-Across Forth, apart from generating MSP430 binaries, also allows
> target I/O control via JTAG, which is pretty cool.
>
> Mecrisp-Across, is still very Alpha, but can download it here https://
> sourceforge.net/projects/mecrisp/files/mecrisp-across-0.4-
> experimental.tar.gz

I don't have one of the host boards, so I'm going to wait until I have a 
need.  Thanks for the link.

-- 

Rick C

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Microchip ICD4 ? Martin Riddle <martin_rid@verizon.net> - 2017-08-17 13:45 -0400
  Re: Microchip ICD4 ? DemonicTubes <tlackie@gmail.com> - 2017-08-17 12:17 -0700
    Re: Microchip ICD4 ? Martin Riddle <martin_rid@verizon.net> - 2017-08-17 15:32 -0400
    Re: Microchip ICD4 ? speff <spehro@gmail.com> - 2017-08-17 19:02 -0700
  Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 15:52 -0400
    Re: Microchip ICD4 ? piglet <erichpwagner@hotmail.com> - 2017-08-17 21:23 +0100
      Re: Microchip ICD4 ? boB <boB@k7iq.com> - 2017-08-17 13:42 -0700
      Re: Microchip ICD4 ? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-08-17 14:23 -0700
        Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 17:46 -0400
      Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 17:44 -0400
        Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 18:40 -0400
          Re: Microchip ICD4 ? DemonicTubes <tlackie@gmail.com> - 2017-08-17 16:19 -0700
            Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 22:04 -0400
          Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 20:03 -0400
            Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 23:17 -0400
              Re: Microchip ICD4 ? "Michael A. Terrell" <mike.terrell@earthlink.net> - 2017-08-18 07:36 -0400
            Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-17 22:50 -0700
              Re: Microchip ICD4 ? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-08-18 14:43 +0100
              Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 13:42 +0000
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 12:49 -0400
                Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 17:11 +0000
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 16:22 -0400
                Re: Microchip ICD4 ? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-08-19 08:44 +0100
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:19 -0700
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-28 00:22 -0700
                Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-09-02 16:35 +0000
              Re: Microchip ICD4 ? Cecil Bayona <cbayona@cbayona.com> - 2017-08-18 10:58 -0500
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 09:34 -0700
            Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 13:22 +0200
              Re: Microchip ICD4 ? stephen@mpeforth.com (Stephen Pelc) - 2017-08-18 11:54 +0000
                Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 14:40 +0000
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 09:29 -0700
                Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 17:06 +0000
                Re: Microchip ICD4 ? Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-08-18 19:59 +0100
                Re: Microchip ICD4 ? dplatt@coop.radagast.org (Dave Platt) - 2017-08-18 12:49 -0700
                Re: Microchip ICD4 ? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-08-19 01:52 +0200
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 20:40 -0400
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 20:43 -0400
                Re: Microchip ICD4 ? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-08-19 13:03 +0200
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-19 10:30 -0400
                Re: Microchip ICD4 ? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-08-19 21:03 +0200
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:28 -0700
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 16:49 +0200
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 16:43 +0200
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:26 -0700
              Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 14:11 +0000
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:49 +0200
          Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 02:40 +0000
            Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 22:55 -0400
              Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 09:14 +0000
                Re: Microchip ICD4 ? jack4747@gmail.com - 2017-08-18 03:10 -0700
                Re: Microchip ICD4 ? Clive Arthur <cliveta@nowaytoday.co.uk> - 2017-08-18 11:38 +0100
                Re: Microchip ICD4 ? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-08-18 12:13 +0100
                Re: Microchip ICD4 ? jack4747@gmail.com - 2017-08-18 04:25 -0700
                Re: Microchip ICD4 ? Clive Arthur <cliveta@nowaytoday.co.uk> - 2017-08-18 13:43 +0100
                Re: Microchip ICD4 ? Johann Klammer <klammerj@NOSPAM.a1.net> - 2017-08-18 23:40 +0200
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:57 +0200
                Re: Microchip ICD4 ? Przemek Klosowski <przemek@tux.dot.org> - 2017-08-22 03:24 +0000
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 12:32 -0400
                Re: Microchip ICD4 ? Neon John <no@never.com> - 2017-08-18 10:02 -0400
                Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 11:02 -0400
                Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 07:46 +0000
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 16:57 +0200
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:54 +0200
            Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 23:01 -0400
              Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 07:58 +0000
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 01:19 -0700
                Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 20:51 +0000
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:35 -0700
                Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 07:42 +0000
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-20 19:49 -0700
                Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-18 05:18 -0400
                Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 07:22 +0000
                Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-22 00:08 -0400
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-21 22:41 -0700
                Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-22 07:28 +0000
                Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-23 16:52 -0400
            Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-17 22:54 -0700
            Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:36 +0200
              Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 08:49 +0000
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 17:03 +0200
              Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-26 02:33 +0000
                Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-26 01:55 -0400
                Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-27 13:40 -0700
                Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-09-02 12:58 -0400
                Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-28 16:25 +0200
          Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 13:28 +0000
    Re: Microchip ICD4 ? speff <spehro@gmail.com> - 2017-08-17 19:09 -0700
    Re: Microchip ICD4 ? TTman <pcw1.cad@ntlworld.com> - 2017-08-18 10:12 +0100
      Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-18 05:21 -0400
        Re: Microchip ICD4 ? TTman <pcw1.cad@ntlworld.com> - 2017-08-18 12:10 +0100

csiph-web