Author: Jan

STM32 Flash Usage

STM32L011F4 only have 16Kb Flash, and as I generate the code I need from STM32CubeIDE it compiles to 11,37Kb on Debug, leaving only 4,63Kb Free for the application. Looking at the map I see several nasty C functions n the drivers. The GCC compiler is decently good and greedy on bytes, but that don’t help…

Read the full article

Watchdog/D-Bus

This is the block diagram for XPortHub2 with an added Watchdog/D-bus. My objective here is that I want to add some features to the board and decided to do an experiment adding an external Watchdog/D-Bus by using a smaller STM32 in support. SPX3819 can be switched on/off enabling me to power a board on/off. Adding…

Read the full article

XPortHub2 w/Ethernet

3D model of XPortHub2. This contains an 10/100Mbps Ethernet with a standard RJ45 socket that replace TF Card, I2C and SPI on XPortHub1. New style SWD port. Raspberry PI Backbone with SPI and CAN. RTC with Battery holder on back. 8 x user leds. 2 x CAN ports. CAN1 is connected on Raspberry PI Connector…

Read the full article

SWD

J4 at right is the SWD connector. This can be reduced to 3 pins (SWCLK, SWDIO and GND), but it is wise to include Boot0, nRESET and 3.3V. I have painted SWCLK and SWDIO lanes in light red – those are the important ones that needs to be kept as short as possible. The only…

Read the full article

W5500 Schematics

  I am not sure where I wanna use this W5500 circuit, but the nice thing is that KiKad makes this a module I can re-use. This actually is the reference schematics.

Fiber Modules

Fiber modules have been around for some years. The picture below show a 14.- USD 8 x Ethernet/2 x Fiber Mux/Switch that can be found on AliExpress etc. I have also seen smaller modules and 16 x Ethernet modules in the same price range – also boxed versions. The interesting thing about these is that…

Read the full article

C#/.Net Dark Theme

Working on HMI in C#/.NET is fun, but it is a large task to get dark themes right. Below is a list of components that I want to complete: clEditCtrl Simple text edit control. clHScrollBar Horizontal Scroll Bar. clObjectEditor Advanced grid alike editor to edit an “object” with a tree of items. clPopUpMenu Classic pop-up…

Read the full article