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

GraspForth port for STM32 Primer. Works over VirtualCOM.

[复制链接]
废鱼 提问时间:2010-8-26 09:46 /
本文内容来自: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

收藏 评论0 发布时间:2010-8-26 09:46

举报

0个回答

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版