Trying scripts adapted from pabigot/bsp430