DEVICE USED:
STM32 F446RE
DEFINITIONS:
SWV means Serial Wire Viewer
SWO means Serial Wire Output Trace
ITM means Instrumentation trace macrocell (https://percepio.com/2016/06/09/arm-itm/#:~:text=ITM%20is%20a%20hardware%20unit,data%20logged%20by%20your%20code.)
ITM:
ITM can be used to trace events in your OS and application and can emit diagnostic information.
It also introduces very minimal time-space overhead.
DEBUGGING OPTIONS AND TRICKS: • SWV and data tracing (print style) • Single stepping, stepping over, stepping out (best for executing program step by step) • Hardware Breakpoints (you can insert, delete and skip a breakpoint), • Disassembly (converting your higher-level language to an Assembly code, that way you can see the set…
MEMORY RESEARCH FOR C LANGUAGE:
In my study, I noticed a “char” consumes 1byte (8 bits) in C language, while a “char” cost 4 bytes in Rust (24 bits). The reason for this is, the “char” data type in Rust supports unicode which is 4 byte (an example of unicode is: emoji 😊).
Also, I noticed that when I allocate a memory using malloc, the minimum allocated size I get is 8 bytes even for a char data type that is meant to be 1 byte. Here is what the code looked like:
#include<stdio.h>
#include<stdlib.h>int main() {char *p…
Hello,
I’m Martin Joseph, a full-stack developer who recently found out his passion is to be able to build products on the computer in the most creative-way-thinkable and without any restriction.
After taking a look at the market to understand if my area of interest is something that has massive potentials. I am glad to say, yes it is.
What exactly is Systems Programming?
Argh, let me see if I can explain this without using a standard definition. …
Hello, I am Martins Joseph and this is my first Medium post, so please bear with me.
Today, I would be sharing with you how I wrote my first NPM package , and what inspired me to write this whilst providing you with links I used to guide me through the upload process.
This package was built as an in-house implementation for a problem we at StockFare had. So, we were building our mobile application using react-native and needed to implement FlutterWave’s Rave to handle payment from our customers. As at the time of writing the initial version of this…
An entrepreneur in the day || Software Engineer at night || I solve problems for a living.