Categories: Electronics

STM32CubeProgrammer 2.18: Enhancing the “movement” in “workflow”


Creator: STMicroelectronics

STM32CubeProgrammer 2.18 brings new options to enhance our builders’ expertise. As an illustration, as we shut 2024, flashing and debugging STM32 microcontrollers is extra simple and intuitive. As an illustration, the brand new software program leverages STM32 safety firmware replace (root safety system extension binaries), helps change a number of choice bytes extra effectively by means of an artificial view, and port person configuration settings extra simply. It’s, due to this fact, probably the most user-friendly model but, because it goals to make growth on STM32 really feel much less like work and extra like movement.

What’s new in STM32CubeProgrammer 2.18?

New MCU Help

Whereas almost each model of STM32CubeProgrammer comes with new MCU help, 2.18 is especially noteworthy for the variety of added gadgets. Customers can now work with the STM32WL3 introduced just some weeks in the past, the STM32N6 launched a couple of days in the past, the brand new STM32C0 gadgets with 64 KB and 256 KB of flash.

STM32CubeProgrammer additionally brings extra function help for the STM32H7R3/7S3/7R7/7S7, all STM32 MPUs, and the STM32U5. As an illustration, the STM32H7R/S MCUs can now carry out Safe Firmware Set up, whereas the STM32MP25 will get a GUI to handle PMIC registers and export settings to a binary file, which makes porting them to a different challenge a breeze. And the STM32U5 can now restore its choice byte configuration to manufacturing unit settings if builders make an error that will get them caught.

New enhancements to the person expertise

ST additionally continues to extend the variety of supported options when utilizing the SEGGER J-Hyperlink probe and flasher. In model 2.18, STM32CubeProgrammer provides the power to securely set up the Bluetooth stack on an STM32WB by way of a J-Hyperlink probe. Therefore, builders can use their SEGGER software for extra use instances, making these options extra widespread.

We’re additionally introducing new enhancements to the person expertise, equivalent to a challenge mode that permits customers to avoid wasting and restore configuration and connection settings, choice byte values, firmware lists, exterior flash loaders, safety firmware updates (root safety system extension binaries), stack set up settings for the STM32WB, and computerized mode parameters. In a nutshell, we wish builders to collaborate extra effectively by importing and exporting main challenge components to allow them to deal with their code somewhat than ticking packing containers and making use of the identical settings repeatedly.

STM32CubeProgrammer 2.18 additionally provides a brand new artificial choice byte view to see and edit a number of choice bytes on a single row as a substitute of getting to scroll by means of detailed lists. For knowledgeable customers who know precisely what they need to do, this artificial view makes altering an choice byte quite a bit faster. Lastly, to facilitate updates to RSSe binaries, STM32HSM-V2 personalization recordsdata, and choice bytes templates, these components at the moment are delivered individually within the X-CUBE-RSSe enlargement package deal supported by each STM32CubeProgrammer and Trusted Package deal Creator instruments. Consequently, these components are not a part of the lastest model of CubeProgrammer and needs to be downloaded individually.

What’s STM32CubeProgrammer?

An STM32 flasher and debugger

At its core, STM32CubeProgrammer helps debug and flash STM32 microcontrollers. In consequence, it contains options that optimize these two processes. As an illustration, model 2.6 launched the power to dump your entire register map and edit any register on the fly. Beforehand, altering a register’s worth meant altering the supply code, recompiling it, and flashing the firmware. Testing new parameters or figuring out if a worth is inflicting a bug is way easier immediately. Equally, engineers can use STM32CubeProgrammer to flash all exterior recollections concurrently. Historically, flashing the exterior embedded storage and an SD card demanded builders launch every course of individually. STM32CubeProgrammer can do it in a single step.

One other problem for builders is parsing the huge quantity of data passing by means of STM32CubeProgrammer. Anybody who flashes firmware is aware of how troublesome it’s to trace all logs. Therefore, we introduced customized traces that enable builders to assign a colour to a selected operate. It ensures builders can quickly distinguish a selected output from the remainder of the log. Debugging thus turns into much more simple and intuitive. Moreover, it will possibly assist builders coordinate their colour scheme with STM32CubeIDE, one other member of our distinctive ecosystem designed to empower creators.

STM32CubeProgrammer

What are a few of its key options?

New MCU help

Most new variations of STM32CubeProgrammer help a slew of recent MCUs. As an illustration, model 2.16 introduced compatibility with the 256 KB model of the STM32U0s. The gadget was the brand new ultra-low energy flagship mannequin for entry-level purposes because of a static energy consumption of solely 16 nA in standby. STM32CubeProgrammer 2.16 additionally introduced help for the 512 KB model of the STM32H5, and the STM32H7R and STM32H7S, which include much less Flash so integrators that should use exterior reminiscence anyway can scale back their prices. Put merely, ST strives to replace STM32CubeProgrammer as quickly as doable to make sure our group can make the most of our latest platforms quickly and effectively.

SEGGER J-Hyperlink probe help

To assist builders optimize workflow, we’ve labored with SEGGER to help the J-Hyperlink probe absolutely. Because of this the {hardware} flasher has entry to options that have been beforehand solely out there on an ST-LINK module. As an illustration, the SEGGER system can program inside and exterior reminiscence or tweak the learn safety degree (RDP). Moreover, utilizing the J-Hyperlink with STM32CubeProgrammer means builders can view and modify registers. And since model 2.17, we added the power to generate serial numbers and robotically increment them inside STM32CubeProgrammer, thus hastening the method of flashing a number of STM32s in a single batch.

We all know that many STM32 clients use the SEGGER probe as a result of it permits them to work with extra MCUs, it’s quick, or they’ve adopted software program by SEGGER. Therefore, STM32CubeProgrammer made the J-Hyperlink vastly extra helpful, so builders can do extra with out leaving the ST software program.

Exporting choice bytes and modifying reminiscence fields

Different quality-of-life enhancements purpose to make STM32CubeProgrammer extra intuitive. As an illustration, it’s now doable to export an STM32’s choice bytes. Very merely, they’re a approach to retailer configuration choices, equivalent to read-out safety ranges, watchdog settings, energy modes, and extra. The MCU hundreds them early within the boot course of, and they’re saved in a selected a part of the reminiscence that’s solely accessible by debugging instruments or the bootloader. By providing the power to export and import choice bytes, STM32CubeProgrammer permits builders to configure MCUs way more simply. Equally, model 2.17 can now edit reminiscence fields in ASCII to make sure part much more readable.

Automating the set up of a Bluetooth LE stack

Till now, builders updating their Bluetooth LE wi-fi stack needed to work out the tackle of the primary reminiscence block to make use of, which diverse based mostly on the STM32WB and the kind of stack used. As an illustration, putting in the essential stack on the STM32WB5x would begin at tackle 0x080D1000, whereas a full stack on the identical gadget would begin at 0x080C7000, and the identical package deal begins at 0x0805A000 on the STM32WB3x with 512 KB of reminiscence. Builders usually needed to discover the beginning tackle in STM32CubeWB/Tasks/STM32WB_Copro_Wireless_BinariesThe brand new model of STM32CubeProgrammer comes with an algorithm that determines the correct begin tackle based mostly on the present wi-fi stack model, the gadget, and the stack to put in.

A portal to safety on STM32

Readers of the ST Weblog know STM32CubeProgrammer as a central piece of the safety options current within the STM32Cube EcosystemThe utility comes with Trusted Package deal Creator, which permits builders to add an OEM key to a {hardware} safe module and to encrypt their firmware utilizing this similar key. OEMs then use STM32CubeProgrammer to securely set up the firmware onto the STM32 SFI microcontroller. Builders may even use an I2C or SPI interface, which supplies them better flexibility. Moreover, the STM32H735, STM32H7B, STM32L5, STM32U5, and STM32H5 additionally help exterior safe firmware set up (SFIx), that means that OEMs can flash the encrypted binary on reminiscence modules exterior the microcontroller.

Safe Supervisor

Safe Supervisor is formally supported since STM32CubeProgrammer 2.14 and STM32CubeMX 1.13. Presently, the function is unique to our new high-performance MCU, the STM32H573, which helps a safe ST firmware set up (SSFI) with out requiring a {hardware} safe module (HSM). In a nutshell, it offers an easy approach to handle your entire safety ecosystem on an STM32 MCU because of binaries, libraries, code implementations, documentation, and extra. Consequently, builders take pleasure in turnkey options in STM32CubeMX whereas flashing and debugging them with STM32CubeProgrammer. It’s thus an instance of how STM32H5 {hardware} and Safe Supervisor software program come collectively to create one thing better than the sum of its components.

Different safety features for the STM32H5

STM32CubeProgrammer permits many different safety features on the STM32H5. As an illustration, the MCU now helps safe firmware set up on inside reminiscence (SFI) and an exterior reminiscence module (SFIx), which permits OEMs to flash encrypted firmware with the assistance of a {hardware} safe module (HSM). Equally, it helps certificates technology on the brand new MCU when utilizing Trusted Package deal Creator and an HSM. Lastly, the utility provides SFI and SFIx help on STM32U5s with 2 MB and 4 MB of flash.

Making SFI extra accessible

STM32CubeProgrammer

Since model 2.11, STM32CubeProgrammer has acquired vital enhancements to its safe firmware set up (SFI) capabilities. As an illustration, in model 2.15, ST added help for the STM32WBA5. Moreover, we added a graphical person interface highlighting addresses and HSM info. The GUI for Trusted Package deal Creator additionally acquired a brand new structure beneath the SFI and SFIx tabs to reveal the knowledge wanted when establishing a safe firmware set up. The Trusted package deal creator additionally received a graphical illustration of the assorted choice bytes to facilitate their configuration.

Safe secret provisioning for STM32MPx

Since 2.12, STM32CubeProgrammer has a brand new graphical person interface to assist builders arrange parameters for the safe secret provisioning out there on STM32MPx microprocessors. The mechanism is analogous with the safe firmware set up out there on STM32 microcontrollers. It makes use of a {hardware} safe module to retailer encryption keys and makes use of safe communication between the flasher and the gadget. Nonetheless, the character of a microprocessor means extra parameters to configure. STM32CubeProgrammers’ GUI now exposes these settings beforehand out there within the CLI model of the utility to expedite workflows.

Double authentication

Since model 2.9, the STM32CubeProgrammer helps a double authentication system when provisioning encryption keys by way of JTAG or a Boot Loader for the Bluetooth stack on the STM32WB. Put merely, the function permits makers to guard their Bluetooth stack towards updates from end-users. Certainly, builders can replace the Bluetooth stack with ST’s safe firmware in the event that they know what they’re doing. Nonetheless, a producer might provide a selected atmosphere and, due to this fact, might want to defend it. In consequence, the double authentication system prevents entry to the replace mechanism by the tip person. ST revealed the appliance word AN5185 to supply extra particulars.

PKCS#11 help

Since model 2.9, STM32CubeProgrammer helps PKCS#11 when encrypting firmware for the STM32MP1. The Public-Key Cryptography Requirements (PKCS) 11, additionally known as Cryptoki, is a normal that governs cryptographic processes at a low degree. It’s gaining recognition as APIs assist embedded system builders exploit its mechanisms. On an STM32MP1, PKCS#11 permits engineers to segregate the storage of the non-public key and the encryption course of for the safe secret provisioning (SSP).

SSP is the equal of a Safe Firmware Set up for MPUs. Earlier than sending their code to OEMs, builders encrypt their firmware with a private-public key system with STM32CubeProgrammer. The IP is thus unreadable by third events. Throughout meeting, OEMs use the supplied {hardware} safe module (HSM) containing a protected encryption key to load the firmware that the MPU will decrypt internally. Nonetheless, till now, builders encrypting the MPU’s code had entry to the non-public key. The issue is that some organizations should restrict entry to such important info. Because of the brand new STM32CubeProgrammer and PKCS#11, the non-public key stays hidden in an HSM, even throughout the encryption course of by the builders.

Supporting new STM32 MCUs

STM32C0, STM32MP25, and STM32WB05/6/7

Since model 2.17, STM32CubeProgrammer helps STM32C0s with 128 KB of flash. It additionally acknowledges the STM32MP25, which features a 1.35-TOPS NPU, and all of the STM32WB0s, together with the STM32WB05, STM32WB05xN, STM32WB06, and STM32WB07Within the latter case, we introduced help just a few weeks after their launch, thus displaying that STM32CubeProgrammer retains up with the most recent releases to make sure builders can flash and debug their code on the latest STM32s as quickly as doable.

Entry to the STM32MP13’s naked steel

Microcontrollers demand real-time working techniques due to their restricted sources, and event-driven paradigms usually require a excessive degree of determinism when executing duties. Conversely, microprocessors have much more sources and might handle parallel duties higher, so that they use a multitasking working system, like OpenSTLinux, our Embedded Linux distributionNonetheless, many shoppers conversant in the STM32 MCU world have been asking for a approach to run an RTOS on our MPUs in its place. In a nutshell, they need to benefit from the acquainted ecosystem of an RTOS and the optimizations that come from working naked steel code whereas having fun with the sources of a microprocessor.

Consequently, we’re releasing immediately STM32CubeMP13, which comes with the instruments to run a real-time working system on our MPU. We go into extra element about what’s within the package deal in our STM32MP13 weblog publish. Moreover, to make this initiative doable, ST up to date its STM32Cube utilities, equivalent to STM32CubeProgrammer. As an illustration, we had to make sure that builders may flash the NOR reminiscence. Equally, STM32CubeProgrammer permits the usage of an RTOS on the STM32MP13 by supporting a one-time programmable (OTP) partition.

Historically, MPUs can use a bootloader, like U-Boot, to load the Linux kernel securely and effectively. It thus serves as the last word first step within the boot course of, which begins by studying the OTP partition. Therefore, as builders transfer from a multitasking OS to an RTOS, it was important that STM32CubeProgrammer allow them to program the OTP partition to make sure that they may load their working system. The brand new STM32CubeProgrammer model additionally demonstrates how the ST ecosystem works collectively to launch new options.

STM32WB and STM32WBA help

Since model 2.12, STM32CubeProgrammer has introduced quite a few enhancements to the STM32WB collection, which is more and more in style in machine studying purposes, as we noticed at electronica 2022Particularly, the ST software program brings new graphical instruments and an up to date wi-fi stack to help builders. As an illustration, the software has extra specific tips when encountering errors, equivalent to when builders attempt to replace a wi-fi stack with the anti-rollback activated however overlook to load the earlier stack. Equally, new messages will guarantee customers know if a stack model is incompatible with a firmware replace. Lastly, STM32CubeProgrammer offers new hyperlinks to obtain STM32WB patches and get new suggestions and tips so builders don’t must hunt for them.

Equally, STM32CubeProgrammer helps the brand new STM32WBA, the primary wi-fi Cortex-M33. Made official a couple of months in the past, the MCU opens the way in which for a Bluetooth Low Vitality 5.3 and SESIP Degree 3 certification. The MCU additionally has a extra highly effective RF that may attain as much as +10 dBm output energy to create a extra sturdy sign.

STM32H5 and STM32U5

The help for STM32H5 started with STM32CubeProgrammer 2.13, which added compatibility with MCUs, together with something from 128 KB as much as 2 MB of flash. Initially, the utility introduced safety features like debug authentication and authentication key provisioning, that are important when utilizing the brand new life administration system. The utility additionally supported key and certificates technology, firmware encryption, and signature. Over time, ST added help for the brand new STM32U535 and STM32U545 with 512 KB and 4 MB of flash. The MCUs profit from RDP regression with a password to facilitate developments and SFI safe programming.

Moreover, STM32CubeProgrammer contains an interface for read-out safety (RDP) regression with a password for STM32U5xx. Builders can outline a password and transfer from degree 2, which turns off all debug options, to degree 1, which protects the flash towards sure studying or dumping operations, or to degree 0, which has no protections. It should thus make prototyping vastly easier.

In lots of situations, builders use an STLINK probe with STM32CubeProgrammer to flash or debug their gadget. Therefore, we shortly added help for our newest STLINK-PWR probe, probably the most intensive supply measurement unit and programmer/debugger for STM32 gadgets. If customers need to see vitality profiles and visualize the present draw, they need to use STM32CubeMonitor-Energy. Nonetheless, STM32CubeProgrammer will function an interface for all debug options. It could possibly additionally work with all of the probe’s interfaces, equivalent to SPI, UART, I2C, and CAN.

Script mode

The software program features a command-line interface (CLI) to allow the creation of scripts. For the reason that script supervisor is a part of the appliance, it doesn’t rely upon the working system or its shell atmosphere. In consequence, scripts are extremely sharable. One other benefit is that the script supervisor can keep connections to the goal. Consequently, STM32CubeProgrammer CLI can maintain a connection stay all through a session with out reconnecting after each command. It could possibly additionally deal with native variables and even helps arithmetic or logic operations on these variables. Builders can thus create highly effective macros to automate advanced processes. To make STM32CubeProgrammer CLI much more highly effective, the script supervisor additionally helps loops and conditional statements.

A unifying expertise

STM32CubeProgrammer goals to unify the person expertise. ST introduced all of the options of utilities just like the ST-LINK Utility, DFUs, and others to STM32CubeProgrammer, which turned a one-stop store for builders engaged on embedded techniques. We additionally designed it to work on all main working techniques and even embedded OpenJDK8-Liberica to facilitate its set up. Consequently, customers don’t want to put in Java themselves and wrestle with compatibility points earlier than experiencing STM32CubeProgrammer.

Qt 6 help

Since STM32CubeProgrammer 2.16, the ST utility makes use of Qt 6, the framework’s newest model. Consequently, STM32CubeProgrammer not runs on Home windows 7 and Ubuntu 18.04. Nonetheless, Qt 6 patches safety vulnerabilities, brings bug fixes, and comes with vital quality-of-life enhancements.

 

The publish STM32CubeProgrammer 2.18: Enhancing the “movement” in “workflow” appeared first on ELE Occasions.


👇Comply with extra 👇
👉 bdphone.com
👉 ultractivation.com
👉 trainingreferral.com
👉 shaplafood.com
👉 bangladeshi.assist
👉 www.forexdhaka.com
👉 uncommunication.com
👉 ultra-sim.com
👉 forexdhaka.com
👉 ultrafxfund.com
👉 bdphoneonline.com
👉 dailyadvice.us

Uncomm

Share
Published by
Uncomm

Recent Posts

Microsoft and NVIDIA speed up AI improvement and efficiency

Collectively, Microsoft and NVIDIA are accelerating a few of the most groundbreaking improvements in AI.…

4 hours ago

Your subsequent smartphone would possibly embrace an even bigger 200MP principal digicam

Robert Triggs / Android AuthorityTL;DR Android OEMs are experimenting with a bigger 200MP major sensor…

4 hours ago

How is the UK investing in AI infrastructure?

Final yr, 4 main U.S. companies dedicated a mixed £6.3 billion, or $8.16 billion, to…

4 hours ago

Breaking Boundaries with Photonic Chips and Optical Computing

Introduction: The Shift from Electronics to Photonics As conventional semiconductor-based computing approaches its bodily and…

5 hours ago

SparkFun

This week, we announce our assist of Python and MicroPython, launch two new IoT RedBoards,…

7 hours ago

Reference Design For Gigabit Ethernet Entrance Finish

That includes optimized elements akin to transformers, common-mode chokes, and surge safety, this validated design…

10 hours ago