你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

查看: 5522|回复: 0

GraspForth port for STM32 Primer. Works over VirtualCOM.

[复制链接]

134

主题

4489

回帖

239

蝴蝶豆

版主

最后登录
2020-12-9
发表于 2010-8-26 09:46:04 | 显示全部楼层 |阅读模式
本文内容来自:http://www.stm32circle.com
Description:

GraspForth port for STM32 Primer 1 and 2
GraspForth (created by Bernard Mentink) stands for Gcc/Relocatable/fAst/Small/Portable Forth. This Forth system runs potentially on every 32-bit processor architecture with a corresponding GCC port. For those with special knowledge, it uses GCC's calculating labels to do the threading. The communication works over the VirtualCOM (Emulation of a serial port over USB).
Current version of the source code worked on Primer1, but should work on Primer2 almost without changes.
To use this Forth, install the resulting binary as usual and start the program GRSPFRTH. Connect to the newly registered serial port (of course, the port will be recognized only if you connect the USB cable between the application USB port on Primer and a USB port on your main computer) with the following settings: 115200 baud, 8 bits, no parity,1 stop bit, no flow control. Voila! You can exit the application with a press of a button.
(Remember though, that these settings work only for manual input; if you paste an entire source, it is possible, that because of too long compiling times some definitions will be dropped, and it is not what you want! Change the baud setting in src\hw_config.c if you desire to compile long sources automatically.)
The source code is structured as following:
Directory Forth contains the original GraspForth implementation together with the STM32 Primer-relevant include file stm32primer.h and the updated graspforth.c (the updates are basically the preprocessor-induced definitions for void GF_Task(void)).
Directory Software Driver has a driver for the serial-over-USB port.
Directory src has a main application source in the file Application.c; the rest is the USB library together with hardware abstraction library from STM. The file hw_config.c contains the USB descriptior.
The architecture is rather simple: The words of the Forth system are processed in a loop, 50000 words in one Application_Handler() call. If the output buffer is full or there is no (needed) input, the GF_Task() exits, hence the Forth system has to wait until the next Application_Handler() and through this the next GF_Task() call.

GraspForth-.zip

下载

645.62 KB, 下载次数: 6, 下载积分: ST金币 -1

回复

使用道具 举报

关于 意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
13245底部标题123相同标题
12底部标题123相同标题
33333底部标题123相同序号
3435底部标题-无链接
关注我们
st-img 微信公众号
st-img 手机版