Creator: STMicroelectronics
STM32CubeMonitor 1.8 is the primary model so as to add assist for the SEGGER J-Hyperlink {hardware} probe. Because of this, builders who’re aware of the third-party probe will have the ability to use it whereas capturing knowledge with the ST software program. It can make debugging and monitoring operations rather a lot less complicated. Because the J-Hyperlink absolutely helps the JTAG interface and gives obtain speeds of as much as 4 MB/s (J-Hyperlink ULTRA+ / PRO), it additionally opens the door to better growth alternatives and speedy flashing operations. That’s why ST up to date STM32CubeMonitor. We wished to make the device much more sensible and allow builders to get pleasure from a extra versatile and sensible STM32 ecosystem.
ST typically releases new variations of STM32CubeMonitor, STM32CubeMonitor-RF, and STM32CubeMonitor-UCPD. The instruments repeatedly seem on our weblog posts as a result of many STM32 builders use them to launch their merchandise to market sooner. Certainly, the problem for any embedded system engineer is to discover a complete platform for his or her microcontroller or microprocessor. A tool might have many options, however it received’t be helpful if designers can’t implement them effectively. Because of this, it’s essential to supply a variety of software program instruments that facilitate the event of purposes on STM32 gadgets. Allow us to, subsequently, discover a few of these instruments and their new functionalities.
What’s new in STM32CubeMonitor 1.8?
The large replace introduced by STM32CubeMonitor 1.8 is the assist for SEGGER J-Hyperlink probes. Avid readers of the ST Weblog already know that SEGGER is an lively member of the ST Companion Program. The corporate ships embOS, a real-time working system optimized for STM32 gadgets. In truth, embOS was additionally one of many first items of software program to obtain the MadeforSTM32 label. Extra lately, we shared how SEGGER launched their STM32-SFI Flasher Commander to allow total meeting traces to assist software program firmware installs (SFI). Therefore, the assist of their J-Hyperlink probes ought to come as no shock.
The assist of the SEGGER probe inside STM32CubeMonitor is comparatively simple. As a substitute of utilizing the standard STLINK out and in nodes acq stlink in
and acq stlink out
, builders simply use ack jlink in
and ack jlink out
throughout the Node-RED interface. Therefore, as a substitute of getting to convert the on-board STLINK right into a J-Hyperlink, engineers can use the {hardware} probe to benefit from the SEGGER suite of software program and options. Lastly, STM32CubeMonitor 1.8 provides assist for a better vary of acquisition charges when selecting a frequency decrease than 1 Hz. The characteristic will assist customise how typically the software program captures knowledge, thus additional optimizing its operations.
What’s STM32CubeMonitor?
The Netflix of MCUs
STM32CubeMonitor is a runtime variable monitoring and visualization device with an online interface for distant connections and a graphical interface to create customized dashboards. It ensures builders can effectively monitor their utility by means of a graphical interface that depends on Node-RED. This flow-based programming device allows customers to create advanced knowledge representations with no coding in any respect. It can enable them to debug their software program simply and analyze behaviors with out disrupting an present codebase. Moreover, customers can share their dashboards on the Node-RED and ST communities to construct on each other.
To make the primary expertise with STM32CubeMonitor extra intuitive, the ST Wiki explains intimately how builders can monitor a variable inside an utility in simply two steps. Customers choose the beginning deal with of the info they observe in reminiscence and its kind. To help on this job, we’ve got a information displaying the right way to get addresses from ELF information. The interface then asks the person to pick an STLINK probe.
A runtime monitoring utility primarily based on Node-RED
Retaining observe of registers, variables in reminiscence, interrupts, and the myriad of occasions that happen at any second is daunting. Therefore, manually monitoring them is so demanding that groups typically do not need the assets for this endeavor. STM32CubeMonitor solves this downside and depends on Node-RED to maintain issues so simple as attainable. Customers drag and drop graphical representations of a program’s factor onto a canvas to create a circulate, which means a sequence of occasions. As an illustration, circumstances can set off modules that ship alerts by e-mail or push knowledge to a cloud platform utilizing MQTT.
With out getting into a single line of code, customers can create graphs, chart plots, or generate gauges that may assist them visualize values in a counter, knowledge from a sensor, and lots of different points of an utility. Moreover, the presence of an online server signifies that it’s attainable to make use of these visualizations on any PC or cellular browser, whether or not on the native community or remotely. Furthermore, because of the Node-RED and ST group, customers can begin by taking a look at different customers’ dashboards and organically study by learning different folks’s examples.
A .CSV generator for energy customers
The earlier model of STM32CubeMonitor (model 1.6) up to date the export to CSV characteristic to generate information that might work higher with spreadsheets. As an illustration, the time column moved earlier than the worth column to suit how most individuals set their tables. Equally, time started at 0, and lengthy numbers received a separator to be extra readable. Lastly, model 1.6 additionally made it simpler to establish probe configurations by giving them names.
Model 1.7 of STM32CubeMonitor now builds on the earlier launch to deliver options requested by our customers to show the CSV exporter right into a powerhouse. As an illustration, creating and organizing a number of columns throughout the export interface is now attainable. Beforehand, customers would have needed to run a Python script to control knowledge or do every thing of their spreadsheet utility, which tends to be cumbersome. Equally, every variable will get its column and a timestamp to raised observe it. Therefore, the brand new choices inside STM32CubeMonitor guarantee customers can construction their knowledge extra simply and use their spreadsheet software program to view the outcomes as a substitute of making use of time-consuming adjustments.
Node-RED 3.1
Since model 1.5, STM32CubeMonitor helps Node-RED 3. One of the vital enhancements is the addition of a contextual menu obtainable when customers right-click. Consequently, they will entry much more actions and uncover options that might beforehand require digging into menus. The opposite necessary performance obtainable in Node-RED 3 is junctions, a particular kind of node that makes it simpler to route wires. It helps simplify and make clear designs by bringing better flexibility. Model 3 additionally launched debugging capabilities that expose node areas when working with sub-flows, thus serving to builders see what node is producing an error message.
And since model 1.7, STM32CubeMonitor makes use of Node-RED 3.1, which brings notifications administration on the tab degree, thus providing much more granularity to builders monitoring a number of points of their utility. Customers additionally get a much bigger workspace (from 5000×5000 to 8000×8000) and lockable circulate, which might forestall unintended adjustments, which is particularly necessary when coping with mission-critical flows. Model 3.1, launched just a few months in the past, additionally up to date the context panel to incorporate widespread choices absent from the earlier iteration, forcing customers to dig by means of menus. Lastly, among the many many different enhancements, Node-RED 3.1 optimized the wiring between horizontally aligned nodes to make them considerably extra readable.
Eco acquisition mode
STM32CubeMonitor incorporates a low-power acquisition mechanism, named ECO mode, that reduces CPU consumption by decreasing the ring pattern fee under 10 Hz. There are a lot of cases when builders don’t want quick knowledge acquisition and may gain advantage from a decrease processing load. Historically, the utility captures variables each 50 ms or double the low fee frequency. Because of the ECO mode, builders get way more granularity and might handle assets higher. The characteristic can also be fairly accessible because the threshold is just a worth within the settings file. Altering it’s thus simple.
A assist device all through the life cycle of a product
Throughout the prototyping section, engineers will doubtless use an STLINK probe, reminiscent of one of many STLINK-V3 modules at the moment obtainable. It connects the MCU board to the PC, which can assist arrange the STM32CubeMonitor Dashboard and act as a gateway for the online interface. As designers put together to ship their ultimate product, they will create a software program routine that may ship knowledge to a USB port utilizing UART. Builders can thus nonetheless monitor their utility securely through the use of a pc with STM32CubeMonitor related to that USB port. Because of this, the device supplies a long-term evaluation that may assist plan upgrades or upcoming options.
New format and image change notification
The most recent model of STM32CubeMonitor brings the flexibility to export knowledge in CSV as a substitute of merely utilizing a proprietary format. Customers can import the data into Excel, MATLAB, and others, opening the door to extra knowledge optimization and manipulation. The brand new software program will even throw a notification if symbols change. Put merely, the utility tracks variables by defining them in a file and associating them with a logo. Nevertheless, recompiling the code might render the symbols’ information out of date, creating discrepancies with the Node-RED dashboard. The brand new STM32CubeMonitor will alert customers in the event that they overlook to replace the symbols’ file.
What’s new in STM32CubeMonitor-RF 2.12?
To assist the most recent options current in STM32WB and STM32WBA gadgets, STM32CubeMonitor-RF should align itself with their Bluetooth Low Power stacks. Consequently, every new launch tracks the adjustments dropped at the microcontrollers’ firmware packages. On this occasion, STM32CubeMonitor-RF 2.12 is aligned with model 1.17.0 of the firmware for the STM32WB and model 1.1.0 for the STM32WBA, the 1st wi-fi Cortex-M33 for extra highly effective and safer Bluetooth purposes. Moreover, the brand new utility brings assist for over-the-air firmware updates on the STM32WBA and the most recent Open Thread stack on the STM32WB.
What are among the key options of STM32CubeMonitor-RF?
Utility to optimize Bluetooth and 802.15.4 purposes
STM32CubeMonitor-RF is a device that assessments the Bluetooth and 802.15.4 radio efficiency of STM32WB microcontrollers. The graphical person interface helps visualize sign power and packet errors over time, whereas a command-line interface opens the door to macros, batch information, and different varieties of automation. Put merely, it attracts from the identical philosophy as the standard STM32CubeMonitor however focuses on radio efficiency. Therefore, builders can quickly take a look at their design and probably spot points. The utility may sniff 802.15.4 communications between gadgets. The simplest option to attempt the utility is to join an STM32WB growth board to a pc and use its USB or UART interface.
Over-the-air efficiency
Since model 2.8.0, STM32CubeMonitor-RF greater than doubled over-the-air performances because of bigger knowledge packets. When customers choose the “Optimize MTU dimension” possibility within the “OTA Updater”, the software program device will increase OTA transfers from 16 kbit/s to 41 kbit/s. It’s, subsequently, a vital high quality of life enchancment for builders. Sending information or updating a tool’s firmware are on a regular basis operations throughout growth. The sooner speeds will guarantee builders work sooner and extra effectively.
Superior Options
The software program bundle contains superior options like an OpenThread 1.3 stack and an 802.15.4 sniffer firmware that works with a USB dongle or a Nucleo board. STM32CubeMonitor-RF additionally inaugurates a new BLE Acquired Sign Energy Indication (RSSI) acquisition scheme, which helps decide the approximate distance between two Bluetooth gadgets. Trustworthy readers of the ST Weblog will keep in mind that the expertise was essential through the pandemic in aiding corporations like Inocess in creating merchandise such because the Nextent Tag to assist keep bodily distancing pointers.
One other milestone is that STM32CubeMonitor-RF 2.10 introduced the most recent options from the STM32WB BLE 5.3 firmware (stack model 1.15.0). Builders thus get to get pleasure from BLE prolonged promoting. Historically, Bluetooth 4 and 5 have three promoting channels solely, every able to sending a payload of 255 bytes. Because of prolonged commercials, sending a a lot bigger payload is feasible utilizing one of many 37 knowledge channels. One of many three channels merely sends a header pointing to the extension. Consequently, builders don’t must ship the identical knowledge on all three channels to make sure its reception, and so they can transmit extra knowledge sooner.
ACI logs
CubeMonitor-RF 2.11 introduced a top quality of life enchancment within the type of utility command interface (ACI) logs in CSV format. Put merely, ACI is the mechanism that sends instructions to the Bluetooth stack, and thus, one of many first logs builders look into when debugging or optimizing their software program. Beforehand, ACI logs had been solely obtainable in a standard .txt format. The transfer to CSV opens the door to clearer shows and simpler manipulation. As an illustration, customers can quickly kind the checklist of instructions by worth, kind, or variety of instances they had been despatched.
New testing capabilities
Model 2.11 of CubeMonitor-RF introduced a brand new technique of testing the reliability of 802.15.4 stacks because of the assist of a steady wave mode. Because the title implies, it simply sends an uninterrupted sign with out modulation. Builders can thus carry out primary however essential measurements to gauge sign propagation beneath a number of circumstances. It’s an necessary first take a look at for engineers trying to perceive how their design will carry out. Presently, the characteristic is simply obtainable on gadgets operating the STM32CubeWB 1.11.0 firmware or later.
What’s new in STM32CubeMonitor-UCPD 1.3?
STM32CubeMonitor-UCPD 1.3 is now suitable with the USB Prolonged Energy Vary (EPR), a brand new profile delivering 48 V at 5 A for a complete of 240 W. At this degree, it turns into rather a lot less complicated to fast-charge laptops or energy docking stations with a number of fast-charging ports. Furthermore, 240 W additionally brings USB-C to extra energy instruments, additional democratizing the connector. As makers look to make use of one port to save lots of assets, reuse cables, and scale back waste, assist for the EPR mode allows groups to undertake the brand new customary sooner. Moreover, as 240 W suitable cables at the moment are turning into obtainable, it’s essential. to undertake the profile as early as attainable.
What’s STM32CubeMonitor-UCPD?
STM32CubeMonitor-UCPD screens and helps arrange USB-C and Energy Supply methods on STM32 microcontrollers operating the ST USB PD stack. Builders can use the device to observe interactions on the USB-C interface, use sink or supply energy profiles, and use vendor-defined messages (VDM). The device even has predefined settings to facilitate and hasten developments by dealing with most of the complexities inherent to those new applied sciences. STM32CubeMonitor-UCPD was integral to the launch of ST’s USB-C Energy Supply ecosystem in 2019. Since then, we’ve continued to enhance the software program to assist builders gauge efficiency and procure certifications sooner.
Since STM32CubeMonitor-UCPD 1.2.0 homes a Java machine, like the opposite instruments on this weblog publish, the utility has every thing the installer wants. Customers not want to put in Java themselves earlier than operating the applying. Moreover, customers can now show traces for the voltage and present bus, VDM, UCSI, and extra. The brand new STM32CubeMonitor-UCPD additionally screens electrical values from the battery. Therefore, builders can observe extra processes and perceive what occurs when connecting two USB-C gadgets or utilizing Energy Supply.