Happy new year to you all. It’s been a few years of blogging since I started and what keeps me bothering to do this is all you who read my ranting and give feedback, so thank you for reading.
Happy new year to you all. It’s been a few years of blogging since I started and what keeps me bothering to do this is all you who read my ranting and give feedback, so thank you for reading.
St have a good series of MCU’s and I have stuck with F405 for a while. But, I just discovered G474RE, G484RE, G484CEm G491CE etc. This series is very similar to F405, but contains a lot of extras for a lower price. Also some of the MCU’s are LQFP48, but it is still a M4…
We will always have some kind of RTOS behind PScript regardless where we execute, so what I need a few system functions to interface to the RTOS in an uniform way. I my own linear scheduler that scale better than and that is perfect for extending thread shifters. The advantage is that I get the…
Part 6 introduces an easy way of communicating where one module raise an event and another receive it. But, for this to work I need some infrastructure that easyIPC provides for me. easyIPC uses a device address where device 0 is NMT (Network Master) on the local network. At this point I don’t care if…
I need a way to communicate with the rest of the world, and the method I like is “Events” where you send and receive packets or byte streams. Let’s annotate an example where I read temperature from an ADC once a second and display it on the PC. In this case I use PScript in…
I am currently at ca 13Kb Flash usage and 1Kb SRAM usage. SRAM usage can be adjusted, but Flash usage is fixed and will increase with definition of more build-in stuff. This is on a CISC, so I am not 100% sure how that convert to a RISC MCU, but it looks decently good. I…
As with any programming language we need to define a list of operators and how they behave. After years of C/C++ programming I simply copy the list from that language as a start. This first list show mathematical operators. Operator Description + Addition: a+b – Subtraction: a-b / Divide. a/b * Multiply: a*b +a Positive…
PScript would only be able to perform math unless we integrate it to the target platform. In the drawing above I illustrate (1) the build in function “print” and (2) a variable “a”. Both are declared as a C/C++ struct in a table that point to a function with a specific format that accept a…
I must admit that PScript is a nice break from the larger BSA task. Sadly BSA is written in C# and PScript in C++ because PScript is perfect for extending BSA. But, I can actually use C++ from C#, so lets see. I have created a stack that I use while I interpret and I…
I surpriced myself with how easy it was to implement the PScript Interpreter and would like to share the basic technique that I am using. The language is still under development, but the idea is to have a minimalistic Interpreter that can be used embedded so I need a very small footprint on the core…