|
Forum Index : Microcontroller and PC projects : Colour maximite 2 firmware V8.00.00 betas
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12242 |
https://github.com/UKTailwind/CMM2V1.5/releases/tag/v8.00.00b1 The first beta of version 8 of MMBasic for the Colour Maximite 2 is on GitHub. One firmware file runs on the Generation 1, the Generation 2 and the new Generation 3. About version 7 7.00.00RC6 is the last release of version 7. It is highly functional and well tested, and you can keep using it, but there will be no full 7.00.00 release. Version 8 is needed to support the new Generation 3 and WiFi, so from now on all the work goes into version 8. What is new in version 8 • WiFi and the Internet. Plug a WiFi module carrying a Raspberry Pi RM2 into the rear I/O connector, and the Colour Maximite 2 runs the WebMite's networking: a web server, web clients with TLS, UDP, MQTT, the time from the Internet, a Telnet console and TFTP file transfer. The WEB commands are the WebMite's, so WebMite programs run with only their pins changed. Geoff's Retic irrigation controller runs under OPTION PICOMITE with its pins changed. • The Generation 3. A Generation 2 with HDMI in place of VGA. Every mode shows at full colour levels, and the sound goes to the HDMI monitor as well as the audio socket. OPTION DVI ON is there for monitors that only take DVI. • Programs always run from RAM. The program is never written to the flash, so loading is quicker and editing and running programs no longer wear it. A program is kept over an option's restart. To run one at power up, save it as AUTORUN.BAS and use OPTION AUTORUN ON. • Your own commands and functions. You can now extend MMBasic itself: see the next section. • SQL. Ctrl-C in a long statement is now an error that ON ERROR catches, SQL(LONGSTRING reads text of any length, and an SQL INSERT of an array that fails part way no longer leaves its transaction open. • For PicoMite programs. WATCHDOG HW, MM.INFO(BOOT COUNT), OPTION COUNT (for the CMM2's own counting pins), MODE 19 as the PicoMite's 720 x 400, and 640 x 480 at 75Hz. Extend MMBasic with your own commands and functions Version 8 lets you add commands and functions of your own to the BASIC language. You write them in C, and a BASIC program calls them as if they were built in: USER LOAD "A:/mymod.mod" USER LED ON PRINT USER(TEMPERATURE 3) • They work like built-in commands. MMBasic hands your module the rest of the statement after USER, or the text inside USER( ), and the module reads its own keywords and arguments with the interpreter's own routines, just as MMBasic's commands do. Arguments can be numbers, strings, expressions, variables to change in place, or whole arrays. A function returns an integer, a float or a string. • They run as compiled C. You can move the parts of a program that are too slow in BASIC into C, and keep the rest of the program in BASIC. • Starting is easy. tools/sdk/examples/user/proforma.c is a complete working module with four commands and four functions, a few lines each: USER HELLO, USER SWAP a, b, USER FILL a(), value, USER TOTAL a(), t, USER(ADD a, b), USER(REVERSE$ s$), USER(FIXED$ x, n) and USER(CALLS). Copy it, rename it, and replace its commands with your own. • Building is one line on a PC with Python 3 and the Arm GCC toolchain (arm-none-eabi-gcc 13.3), the same tools the loadable programs use: python build.py out/mymod.mod mymod.c --user • Modules stay small. printf() and sprintf() in a module are the firmware's own, floats included, so the pro-forma is only 3KB. A module can have about 400KB of code and data. • No restart is needed. Copy a rebuilt module to the card and USER LOAD it again. RUN and NEW unload the module, and the next USER or USER( loads it again by itself. The same .mod file works on the Generation 1, 2 and 3, and it can be loaded while the SQL command's database engine is in use. The new chapter USER Modules in the Loadable Programs manual describes all of it, including every interpreter routine a module can call: https://github.com/UKTailwind/CMM2V1.5/releases/download/v8.00.00b1/Colour_Maximite_2_Loadable_Programs.pdf The build tools and the pro-forma module are in the repository: https://github.com/UKTailwind/CMM2V1.5/tree/v8.00.00b1/tools/sdk Before you update: please read • Save your program to the SD card first. Version 7 kept it in the flash, and version 8 uses that flash for its own code. • As always, save your options with OPTION DISK SAVE "A:/myoptions" before writing the firmware, and load them afterwards with OPTION DISK LOAD "A:/myoptions". A file saved by 7.00 loads into 8.00. • Load your library again from its source files with LIBRARY LOAD. Version 8 numbers some functions differently, so a library saved by 7.00 is discarded with a message, and a 7.00 .lib file is refused. • A program saved in a flash slot by 7.00 has to be loaded from its .bas file and saved with FLASH SAVE again. • To go back to 7.00, write RC6 with "Full chip erase" ticked, then load an options file saved by 7.00. In the release • The firmware, CMM2_MMBasic_8.00.00b1.bin. • CMM2_Programs_8.00.00b1.zip. These are the same programs as in RC6's zip, and they all run on version 8. • The User Manual, with a new chapter, WiFi and Internet Functions. The Loadable Programs manual, with a new chapter, USER Modules. The App User Guide, C Compiler, 386 PC Emulator and STEPPER references. • The full release notes, which list every change since RC6, including the structural ones. Known problems • The RM2 also has Bluetooth. It is not used yet, and is next on the list. • Not all of the WebMite's own example programs have been tried yet. • A Generation 3 can reset when its HDMI cable is unplugged. Switching the monitor off and on is fine, and the next board fixes it. This is a beta, so please report anything that goes wrong here. |
||||
| hhtg1968 Guru Joined: 25/05/2023 Location: GermanyPosts: 320 |
runs well so far. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |