Author: Jan

CAN Pinout

The D-Sub 9 to right contains the pinout for CAN. And As I use a flat-cable to connect to the header to Left I also did the mistake of assuming that Pin 2 on the header is pin 2 on the D-Sub 9 so my pinout is completely messed up. Looking at the left header…

Read the full article

CPU Load

CPU load in out case is a definition – if I say that a cycle time of 100yS (0,00001 Sec) is 100% CPU Load then the data above indicate we have 10% CPU Load – if we say 1ms is 100% we are at 1% CPU load. We use in average 10 yS to execute…

Read the full article

CAN Testing

The idea is to have 1:1 between connectors and D-SUB9, but for testing I just connected all three on the same cable with a D-SUB9 for Laptop connection. This is a stanadard 10x flat cable. Pin 10 is shield if needed. I have not connected 5V and GND on D-Sub9, but I will in the…

Read the full article

3xCAN – almost there

Got more parts today so I finally have connectors, USB and SD-Card mounted – lack Ethernet yet + discovered that the PSRAM has a more narrow footprint than I used. Not sure I am bothered with mounting PSRAM on this version because strapping another nCS will be difficult – one nice thing with narrow footprint…

Read the full article

Dictionary

As you build a modular system you will implement a lot of variables in each module that you might want to change as part of configuration or see as they are sensor values. To do this I create a separate module called a “Dictionary” that is illustrated below. The dictionary itself is a large Index…

Read the full article

C++ CAN Interface

I am waiting on parts for the USB, SD-Card, Ethernet and Modules so the next task I can work on is the CAN interface. The actual barebone CAN interface is autogenerated by STM32CubeIDE in C, so all we need to do is to create a proper IO queue, deal with timing and error handling. Most…

Read the full article

3xCAN – Switch

Below is a high level draft of switching logic that I want to implement on the 3 x CAN board. The “standard” firmware on any CAN Hub is that you forward CAN messages to/from USB or Ethernet, but we can do so much more than that by creating programmable switch logic. I have called this…

Read the full article

3xCAN – Shiny leds

9 leds on this board – 7 are up running. I lack parts yet, but will start Ethernet tomorrow. Just happy that I mnaged to fix crystal and are running at 550Mhz for now.   Happy Easter folks!