spyren / mecrisp-cube Goto Github PK
View Code? Open in Web Editor NEWMecrisp-Stellaris Forth for the STM32 Cube ecosystem.
Mecrisp-Stellaris Forth for the STM32 Cube ecosystem.
Is there a MecrispCube.ioc file for the STM32F405 (mentioned in the README)?
Rich
The last commit to rtos.s is marked "WIP" and lack of docs or examples makes it difficult to understand how to use it.
The osThreadNew says "// The new thread needs its own data stack!", but doesn't it need both stacks?
Is it that osThreadNew is more of an internal word, and as a user I should simply "start-task" and two stacks are set up and I am good to go?
In rtos_osNewDataStack there is "ldr r0, =256" and further down a "adds r7, r0, #128". Shouldn't those be the same values (assuming r7 contains top of data stack address)?
Doesn't "terminate" word need to reclaim the allocated data stack?
How is one supposed to create a TCB? Don't we need xTaskCreate() and/or xTaskCreateStatic() wrappers? Or maybe I am just supposed to do ' io-scan TCB construct start-task
(where io-scan is my never-ending background thread/task)
I thought I would write a little about this use case:
The NanoVNA analyser is a synthesised signal source, and tracking receiver that follows the source frequency, controlled by an STM32 equivalent. The hardware of this unit is very versatile.
The nature of using this sort of gear is that there is an almost unlimited number of special applications. It is impossible (and foolish to try) to support them all into the firmware.
It is both a standalone device, and one controlled by PC application software through a (serial) port. The authors of the pc software are not the authors of the firmware. When a new function at the PC level needs a new command in the firmware, it can't easily be implemented. When a new application (e.g use it as a signal generator) is outside the scope of the product, the designers won't (and shouldn't really) add it.
Where does Mecrisp-cube fit in?
Firstly the program is in C, and is not going to be rewritten in forth.
It needs/has a command interpreter for the external interface.
By adding Forth you get the command interpreter function for free.
You get macro capability to speed up repetitive command sequences for free. By using forth, the macro capability is essentially a full, unlimited programming language.
Now any normal task can be accomplished from the pc hosted software sending forth commands.
The end user / pc software author, can automate and extend, without touching the firmware.
If extensions require more firmware functionality, it is now only required to expose a low level function. A new function does not require the firmware author to implement anything above the basic level. Once that is done , users can handle most of the work involved in a special function: the UI, configuration and display. None of that falls on the firmware author.
As an example, a requested feature is an offset between the signal generator and detector frequencies. To implement this the usual way, means adding a new function to do it, a new serial command, and new offset parameters.
In Forth, it can be implemented immediately, as the set frequency function is a basic exposed function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.