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


Groups > comp.lang.forth > #42756

Re: Forth and "embedded" enviroment

From kristoff <kristoff@skypro.be>
Newsgroups comp.lang.forth
Subject Re: Forth and "embedded" enviroment
Date 2015-10-22 15:54 +0200
Organization A noiseless patient Spider
Message-ID <n0apph$3dl$2@dont-email.me> (permalink)
References <n0934k$6kh$1@dont-email.me> <n0a99i$ugn$1@newsserver.rrzn.uni-hannover.de>

Show all headers | View raw


Hallo Mathias,




On 22-10-15 11:13, Matthias Koch wrote:
> Hi Kristoff,
>
> have a look into the common folder and the other STM targets already
> supported in Mecrisp-Stellaris. You simply use a chip that has got
> little attention so far, but there are many similiarities between STM
> chips, so that this will give you hints. GPIO examples are there for
> your chip, ADC and DAC are ready for other chips. Somewhere is a
> SPI-bit-bang implementation, but all this you are asinkg for are just
> peripheral bit wigglers. I included everything I know of into the
> package, and Reginald Beardsley measured GPIO characteristics for
> STM32F407. http://sourceforge.net/p/mecrisp/home/STM32F4-tst1/

Yes, I started looking into that code. Thanks!


As mentioned in message to Rick, I looked at this from a higher-level.

Compairing this with the arduino-platform, the big advantage of that 
platform is not only that application-level programmers can just use the 
high-level APIs (and does not need to deal with the "bit-fiddling" 
code), but also that the API is actually standardised across platforms 
and IDEs.

This makes sharing code much easier which really helps the "open source" 
element of all this.



> Multitasking is available as Forth source in the common folder.

Hmm. Didn't see that. I must have looked over it. My appologies.




> For everything else, you need to dive into the datasheets and find out
> which bits to set in which register to make the chip do what you desire.
> Do not forget to send me your results for the mainstream release ! I am
> just out of time writing examples for various chips each with their
> various peripherals all at my own. Currently, I am busy with developing
> a stronger optimizing compiler which can hold the top five elements in
> registers.

As I see it, there are two elements in here that could nicely run next 
to eachother: low-level optimizing the code and implementing a standard 
API for basic functions.

Either can be done by different people.

And, if you have a standard platform and the code is open-source, it can 
probably be used as "template" for other microcontrollers!.
This would allow other people to implement the same code for other 
microcontrollers.



> By the way, I am not here on comp.lang.forth too often, so feel free to
> contact me via E-Mail if you wish a quicker response.

No problem. I just do this when I have a little bit of time. It's a nice 
way to get to learn more how a microcontroller actually works.


BTW. I did manage to get the "switch MCU to 72 Mhz" code (in 
assembly-language) running.  (althou the code is not good enough, I 
still need to find out how to return data from a function in 
assembly-language so I can indicate if the switch to 72 Mhz has 
successeeded or not).

Anycase, my first ever ARM assembly-code! YES! :-)


> Matthias
Cheerio! Kr. Bonne.

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Forth and "embedded" enviroment kristoff <kristoff@skypro.be> - 2015-10-22 00:23 +0200
  Re: Forth and "embedded" enviroment Roberto Waltman <usenet@rwaltman.com> - 2015-10-21 19:19 -0400
  Re: Forth and "embedded" enviroment rickman <gnuarm@gmail.com> - 2015-10-21 21:59 -0400
    Re: Forth and "embedded" enviroment kristoff <kristoff@skypro.be> - 2015-10-22 15:37 +0200
      Re: Forth and "embedded" enviroment rickman <gnuarm@gmail.com> - 2015-10-22 15:43 -0400
        Re: Forth and "embedded" enviroment jonjo <jjonethal@yahoo.de> - 2015-10-22 15:26 -0700
          Re: Forth and "embedded" enviroment rickman <gnuarm@gmail.com> - 2015-10-23 03:20 -0400
        namespace (was: Forth and "embedded" enviroment) kristoff <kristoff@skypro.be> - 2015-10-25 23:20 +0100
          Re: namespace Paul Rubin <no.email@nospam.invalid> - 2015-10-25 15:45 -0700
            Re: namespace kristoff <kristoff@skypro.be> - 2015-10-25 23:53 +0100
              Re: namespace Paul Rubin <no.email@nospam.invalid> - 2015-10-25 16:18 -0700
                Re: namespace "Elizabeth D. Rather" <erather@forth.com> - 2015-10-25 14:01 -1000
                Re: namespace Paul Rubin <no.email@nospam.invalid> - 2015-10-25 17:40 -0700
          Re: namespace "Elizabeth D. Rather" <erather@forth.com> - 2015-10-25 12:50 -1000
            Re: namespace kristoff Bonne <kristoff@skypro.be> - 2015-10-26 00:11 +0100
              Re: namespace "Elizabeth D. Rather" <erather@forth.com> - 2015-10-25 14:10 -1000
                Re: namespace kristoff <kristoff@skypro.be> - 2015-11-03 23:11 +0100
                Re: namespace "Elizabeth D. Rather" <erather@forth.com> - 2015-11-03 16:17 -1000
                Re: namespace kristoff <kristoff@skypro.be> - 2015-11-07 17:56 +0100
          Re: namespace (was: Forth and "embedded" enviroment) hughaguilar96@gmail.com - 2015-10-25 16:31 -0700
          Re: namespace (was: Forth and "embedded" enviroment) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-10-26 11:23 +0000
        Re: Forth and "embedded" enviroment kristoff <kristoff@skypro.be> - 2015-11-03 12:16 +0100
          Re: Forth and "embedded" enviroment rickman <gnuarm@gmail.com> - 2015-11-03 11:12 -0500
            Re: Forth and "embedded" enviroment kristoff <kristoff@skypro.be> - 2015-11-04 14:06 +0100
              Re: Forth and "embedded" enviroment rickman <gnuarm@gmail.com> - 2015-11-04 09:29 -0500
  Re: Forth and "embedded" enviroment Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2015-10-22 11:13 +0200
    Re: Forth and "embedded" enviroment kristoff <kristoff@skypro.be> - 2015-10-22 15:54 +0200
      Re: Forth and "embedded" enviroment Matthias Koch <matthias.koch@hot.uni-hannover.de> - 2015-10-22 16:42 +0200

csiph-web