Archive for September, 2020

LAZY! LAZY! LAZY!

Posted in FPGA on September 28, 2020 by asteriondaedalus

Got lazy, as much because I’ve too many projects on the boil. So I did a search and found the best all around programmer gadget.

It’s a beast.

Ordered a XGecu TL866II Plus USB Universal Programmer with 16 adapters.

Good for programming 15000+ parts.

Brings PLD and GAL back into my toolkit, since I struggle with why you want an FPGA for small logic solutions. Especially when the NIOS and ARM options, while sexy, seem be overkill for many projects when an ESP8266 or a ESP32 suffice – as long as sufficient I/O ports are there for the job.

Still, my FPGA are, so far, only for learning VHDL/Verilog and problem solving while doing exercises. Hobby learning.

So, yes. I can now program PLD/GAL that are defined by CUPL, with outputs in HEX but not JEDEC.

Warning! There was mention on a video unpacking on Youtube of problem with clones of the XGecu TL866II Plus. The software for the programmer is only on the XGecu site and the warning is that clones may not work with the genuine software.

The videographer did mention that black 40pin sockets (but not green 40pin sockets) were an indication of “real” units. If you watch the video he provides, you can pick up the name of the ebay shop he bought his “real” unit.

I almost bought one from that ebay shop but I hesitated and I was glad I did. I checked the XGecu site and the ebay site did not appear to be listed as a genuine retailer. In fact, you’ll note the link above is to the Aliexpress store of XGecu as pointed to by the XGecu site. There is a photo on that XGecu page with both green and black 40pin sockets (or at least as per the pictures). So is a black or a green 40pin socket indication of a “read” unit or is it that you may get a black one or a green one?

Fun fact, the genuine XGecu store on Aliexpress seems to have the best prices as well. Not to mention, while the videographer bought from an ebay store, he did not buy from the XGecu ebay store. DOH! Of course, he could also have bought from the official XGecu Amazon store. Double DOH!

Not sure then if the bloke unboxing a “genuine” XGecu TL866II Plus was, just going on the black socket “evidence”. You may well be buying a clone, even if it has a black socket, if you don’t buy from a vendor listed at the XGecu site.

Sort of begs the question, why do you have so many sellers on the internet if you can go to the genuine sellers. There is something wrong with the Internet and how its used.

What FUN!

Posted in FPGA on September 21, 2020 by asteriondaedalus

About, god is it? About 40 years ago I did rather dabble in FORTH and was interested in PLD and did write a CUPLike compiler for myself, manly because commercial gear cost so much in those days.

I managed to hack up a PLD programmer around an INTEL 8051!

Those were the days.

Go figure, CUPL compilers are now free, especially since people tend to now play with FPGA etc. However, being sentimental, I had been trying to find if anyone had released a CUPL compiler on and off for decades.

Go figure, Microchip released WinCUPL!

PLD are perfect for little bits of glue logic. I had actually used PLD to drive a couple of hi-speed DAC to build a crude storage gadget for my old CRO.

Those were the days.

Nowadays I have me a Hantek.

But for fun I found a PLD project for a real-time laser range finder!

GODDAM!

I could even build my own programmer for the 16V8 and 22V10 SPLD from Atmel!

Will need to convert to something other than a LPT driven thing, so options are likely varied. Might actually be something for my MEGA1280 that seems to sit for too long doing naught.

What Rabble

Posted in Rant on September 20, 2020 by asteriondaedalus

Book store bans JK Rowlings. May as well have had a book burning, it would have attracted more free advertising.

Oddly a man was ejected from the store for causing a Rabble.

If they check their selves I think they can do better to clear the shelves.

JK Rowling

Posted in Rant on September 15, 2020 by asteriondaedalus

JK Rowling is likely to win awards with her new inclusive novel. Other similar villain’s are everywhere, including here and here and here and not to forget here.

Cluster Frenzy!

Posted in Cluster, Docker, Open Source can be professional on September 9, 2020 by asteriondaedalus

So, I ended up splurging on a RPi3 (not +), enough to sit a clusterHAT upon, since I learnt my lesson with my RPi3+ home server and NOT using it for cluster experiments.

I fragged something and had to re-image the SD card. DOH!

Now with 4 RPi Zero (Hardkernel ODRIOD W clones) atop, I find I marvel at the design, since I was able to bolster the setup with 3M nylon posts that fitted EXACTLY! Voila!

Brilliant!

However, that will serve to help me finish my Docker course (I got up to the SWARM part and no cluster DOH!). Some wag at work suggested a virtual machine setup, but why would you 😉

Otherwise, I am setting up now with my SOPINE64 baseboard to setup the SOPINE 64 for my clusterboard.

Interesting find was also that someone has a image for SOPINE64 to run them on a clusterHAT. So, whether, once the clusterboard is setup, I re-purpose this SOPINE64 baseboard as another 20 but not 8 core cluster is another interesting question.

Would that be too much?

Setting up clusterctl on Hypriot

Posted in Uncategorized on September 1, 2020 by asteriondaedalus

Manually install clusterctl. This will install fine but not run.

The running problem clusterctrl status results in:

$ clusterctrl status
Traceback (most recent call last):
File "/sbin/clusterctrl", line 7, in
import glob, sys, smbus, time, os
ModuleNotFoundError: No module named 'smbus'

So, smbus needs to be installed.

Manually installing smbus from example. Findings:

  • /etc/modprobe.d/raspi-blacklist.conf is empty so neither i2c or spi are blacklisted so no modification needed.
  • i2c-dev is already included in /etc/modules so no modifications needed.
  • run sudo apt-get install i2c-tools
  • run sudo adduser pi i2c

Unfortunately, instead of:

$ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

I am geting:

$ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Hopefully that simply means nothing attached.

I tried to fix the smbus module missing with:

sudo apt-get install python-smbus

But still got the problem. BUT, that command line is for Python2 and not Python 3. To be sure to be sure, and since Python3 is the one running on Hypriot, use the following:

sudo apt-get install python-smbus python3-smbus python-dev python3-dev i2c-tools