Home|Articles|

STM32 Bootloader Design – Part 3

Here is the bootloader code, let's go through it and explain it step by step: /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "flash.h" #include "srecord.h" #define USER_APPLICATION_BASE_ADDRESS 0x8004000U uint8_t srec_data[16]; void __svc(1) EnablePrivilegedMode(void ); void __SVC_1 (void){ __disable_irq(); __set_CONTROL((__get_CONTROL( ))& 0xFFFFFFFE); // enter priv mode __enable_irq(); } static void BootJump(uint32_t *Address) { /* 1. Make sure,

2020-02-17T18:37:00+02:00By |Categories: Embedded Systems|Tags: , |0 Comments

Installing Laravel with Composer

The first thing required for installing Laravel with Composer is to have Composer installed on your machine. After that, you have to download the installation package for Laravel in Composer. You can do this using the following command: composer global require laravel/installer If the command is completed successfully you will see an output similar to

2020-02-02T20:49:07+02:00By |Categories: How To|0 Comments

Create a Custom Block for Gutenberg in WordPress

Instead of having one big chunk of content, as it was until Gutenberg had been introduced in Wordpress 5.0, the web page is now segmented into smaller parts, called blocks. The editor provides a wide variety of blocks that you can use across your pages and posts, but since this is WordPress, there’s always room

2020-01-28T08:15:13+02:00By |Categories: WordPress|0 Comments

Customize Product Tabs in WooCommerce

In this article, I will show you how to customize WooCommerce tabs. I will start by adding the tab because it contains almost everything we need to know. add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['description_tab'] = array( 'title' => __( 'Description Tab', 'woocommerce' ), 'priority' => 50, 'callback' => 'woo_description_tab_content' ); return

2020-01-08T21:21:22+02:00By |Categories: WordPress|0 Comments

Add WordPress “At a Glance” Items

Sometimes we want to add items to the dashboard widget called "At a Glance". This can be done with the filter dashboard_glance_items. add_filter( 'dashboard_glance_items', 'add_custom_glance_items', 10, 1 ); function add_custom_glance_items( $items = array() ) { $items[] = '<a href="URL"'>My URL</a>'; return $items; } In the example above we use filter to add one item to

2020-01-10T19:01:27+02:00By |Categories: WordPress|0 Comments

RTOS Task Context Switching

In our article covering the scheduling algorithms of real-time operating systems (RTOS), we stated that they can run tasks in such a way that leaves the impression of a multitasking behavior. This is achieved by giving the RTOS the capability to interrupt a currently executing task and to start executing another one. At some point

2020-01-06T05:50:26+02:00By |Categories: Embedded Systems|Tags: , , |0 Comments

RTOS Scheduling Algorithms

We already introduced the basic concepts of real-time operating systems (RTOS) and now we will take a deeper look into one of the most important things when designing an embedded system using an RTOS - the scheduling of the tasks and the algorithms that are used. Scheduling Process Scheduling is the process of deciding which

2019-12-10T20:49:41+02:00By |Categories: Embedded Systems|Tags: , , |0 Comments