Saturday, 21 May 2016

Hummingboard i2 & Motorola lapdock 720p fix.

I bought a Hummingboard i2 off ebay as it was going cheap and I've wanted to play with an sbc with canbus and lvds.

Anyway it came with openelec on the memory card so to test it I connected it up to my to my lapdock and getto usb cable.

Kodi loaded but it would only give 720x576p resolution.

Turns out any none standard resolutions given over edid are ignored by the kernel and it defaults to 576p.

I did some investigation on the solidrun forums and came across this post which has some manual timings for the lapdock.

I've added the below command to /storage/.config/autostart.sh which sorts everything out before kodi boots

#!/bin/sh
fbset -g 1280 720 1280 720 16 -t 13468 140 210 10 10 20 10



Reboot and hey presto it all works.


Tuesday, 5 January 2016

Teensy 3.1 with working flexCAN interrupts and BUSMASTER compatibility

The Teensy 3.1 flexCAN library doesn't have the facility for setting up interrupts for incoming messages. So I set out to fix the problem, and after a lot of forum research and a few tweaks I've been able to get interrupts working.

I've ported my mcp2515 based Arduino CAN to USB logger to the Teensy, this firmware implements the Lawicel protocol (badly haha) to be compatible with canhacker software.

While doing a bit of research I discovered that VScom's ser-com tool also uses the Lawicel protocol and they have drivers built into Bosch's BUSMASTER software, WINNER!! so I've now got access to what looks like a pretty sweet bit of canbus logging software.

To test I programmed one of my STM32 boards to spam the bus continuously and it seems that BUSMASTER and the teensy were able to keep up, and the network stats showed 99.9% bus load! horray.

I still have the transmit side of the Lawicel protocol to implement and maybe tidy up and complete my changes (add loopback and listen only mode and some error detection) made to the flexCAN library.









Tuesday, 29 December 2015

STM32F103xC + ILI9341 LCD + FSMC + CHIBiOS + UGFX = Success! - CC9060 hacking Part 2

After re writing the ugfx board config from scratch and going through the code with a fine tooth comb I finally got the LCD to work!

The included drivers for the ILI9341 are only written for 8bit wiring configs, so I got an Image of sorts, but just in blue.

After reading every thread on the ugfx forum relating to the ILI9341 I found this one which explained what I need to do to get the other 8 bits back.

Tiny tweak of the code and hey presto!


Now that I have working LCD drivers I can push on with canbus and gauges!

I'll be uploading a complete ChibiStudio project for this board once I have all the kinks worked out.

Saturday, 26 December 2015

Resurrecting the Sony Ericsson Live View MN800

Another STM32 I've had for years is the Liveview.

A few clever people on the XDA developers forum have reverse engineered the device and made drivers for chibios.

The code is on github here ----> https://github.com/GottZ/olvfw  FYI this is not my code!!

It's old code but I've compiled it my self and flashed it and it works!

And yes I'll be getting canbus working via the micro usb port at some point  :)



Hacking the Bury CC9060 / VW Touch Phone Kit - Part 1

Whilst looking for an LCD to use as a display for Megasquirt

I found a display from a Volkswagen Touch Phone kit, these are a VW themed and branded version of the Bury CC9060. 

The 708 version of this hardware has an STM32F103 with some nice little goodies left on the board from when it was being developed.

I've sacrificed one to work out the JTAG/SWD pinouts and to establish how the LCD is connected to the board.



Yes that is an unpopulated mini usb connector and that vertical row of pads is the JTAG/SWD interface.

Which works out as the following

TOP TO BOTTOM 
pin 1 - voltage, (haven't checked what voltage, suspect 3v) 
pin 2 - PA14 - JTCK - SWCLK
pin 3 - PB3 - JTDO - SWO
pin 4 - PA13 - JTMS - SWDIO
pin 5 - PA15 - JTDI 
pin 6 - PB4 - NJTRST
pin 7 - ground 

The LCD seems to be an ILI9341 made by Top Foison the data sheet can be found here.
http://www.topfoison.com/product/2.8inch-TFT-LCD-module.html

Its connected to the STM32 on the fsmc pins, I've been trying to get Chibios and ugfx to work with it but example code is a bit scarce for this controller in 16bit.

I'm going to keep poking as its a nice device and once I've go the LCD going, CANbus etc shouldn't be far behind.

Innovate MTS to Megasquirt CAN Bus converter part 1



After quiting my job last month I've finally had some time to put my collection of STM32 boards to work.

With the addition of the STM32 cpus to the MBED platform its made it super simple to write code for them.

The first thing that I've decided to develop is an Innovate MTS to Megasquirt CANBUS converter.

You can see the MBED project here

https://developer.mbed.org/users/sordfish/code/MTS_TO_MSCAN/wiki/Homepage


Its still alpha code but I've had it connected to a Microsquirt and it was doing something!

I've added CAN filtering since I last tested so it may or may not work at this moment in time but I'll be adding a part 2 with the actual hardware in the next few days.

Friday, 25 December 2015

Burg on Linux Mint 17.3

Santa dropped off an SSD for my dev laptop which duel boots windows xp and Linux mint.

I've always wanted something a bit more polished for a boot manager and found Burg (Brand-new Universal loadeR from GRUB)

Here's how I installed it.

sudo add-apt-repository ppa:n-muench/burg
sudo apt-get update
sudo apt-get install burg burg-themes
sudo burg-install /dev/sda (please check the name of your drive)
sudo update-burg

Then to test

sudo burg-emu



ta da! 
F2 allows you to choose what theme and F3 will change the resolution.



please bear in mind adding a repo can be a security risk, I don't own that repo nor have the ability to check how genuine it is, us at your own risk.

Using sudo with boot managers can brick your machine, have a live distro handy in case you make a mistake!