Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


You are viewing a reply to if not executed, but true  

if not executed, but true

France

Hi,

if you declare value_1 as uint16_t value_1; as your message implies, your code works as expected: the possible values for value_1 goes from -32768 to 32767, so can never be greater than 32767!...

In fact your code is useless: 16-bit twos-complement arithmetic implies that the values for value_1 wraps from 32767 to -32768 automatically as you are working in modulo 65536 arithmetic. Note that this also means that value_1 -= 32768; is in fact a No-Operation!

Hope this helps,

Bernard (Ac6)