Skip to content

Instantly share code, notes, and snippets.

%%
clear;
clc;
fs = 16000;
t = 10;
A = importdata('test.dat');
X = A(1:end,1)/fs;
Y1 = A(1:end,2);
Y2 = A(1:end,3);
plot(X,Y1,X,Y2);
Successfully read diagram <SystemDBS> from BD file </home/kenny/UMN/NeuroTrial-Software/hw/build/DBSUMN/DBSUMN.srcs/sources_1/bd/SystemDBS/SystemDBS.bd>
update_compile_order -fileset sources_1
startgroup
set_property -dict [list CONFIG.PCW_QSPI_GRP_SINGLE_SS_ENABLE {1} CONFIG.PCW_SPI0_PERIPHERAL_ENABLE {1} CONFIG.PCW_SPI1_PERIPHERAL_ENABLE {1}] [get_bd_cells ps7]
endgroup
delete_bd_objs [get_bd_intf_nets axi_gpio_1_GPIO]
undo
INFO: [Common 17-17] undo 'delete_bd_objs [get_bd_intf_nets axi_gpio_1_GPIO]'
delete_bd_objs [get_bd_intf_nets axi_quad_spi_0_SPI_0]
set_property location {1137 97} [get_bd_intf_ports spi_rtl_0]
register[0] = 0
register[1] = 0
register[2] = 0
register[3] = 0
register[4] = 0
register[5] = 0
register[6] = 0
register[7] = 0
register[8] = 0
register[9] = 0
@kdpatino
kdpatino / efm32.cfg
Last active September 7, 2019 00:00
interface ftdi
ftdi_vid_pid 0x0403 0x6014
# 0x000f -> TMS, TCK, TDI, TDO
# 0x4000 -> ^LED
# 0x0010 -> GPIOL0 (grey)
# 0x0020 -> GPIOL1 (purpe)
# 0x0040 -> GPIOL2 (white)
# 0x0080 -> GPIOL3 (blue)
/ {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;ranges;
rproc_0_reserved: rproc@1e000000 {
no-map;reg = <0x1e000000 0x01000000>;
};
};
amba {
remoteproc remoteproc0: powering up remoteproc@0
remoteproc remoteproc0: Booting fw image image_echo_test, size 2684984
Unable to handle kernel paging request at virtual address e16ff03a
Unable to handle kernel paging request at virtual address e16ff03a
pgd = (ptrval)
pgd = (ptrval)
[e16ff03a] *pgd=00000000
[e16ff03a] *pgd=00000000
Internal error: Oops - BUG: 5 [#1] PREEMPT SMP ARM
Modules linked in: zynq_remoteproc remoteproc virtio_ring virtio uio_pdrv_genirq
clear all
close all
clc
pkg load signal
% CIC frequency domain example
%% Setup parameters
Fs_in = 3e6; % Input sample rate
@kdpatino
kdpatino / hex2bin.cpp
Created February 16, 2018 22:32
parse hex file
#include <gflags/gflags.h>
#include <cstdint>
#include <cstring>
#include <iostream>
extern "C" {
#include "cintelhex.h"
}
DEFINE_string(hex_file, "", "Hex File");
@kdpatino
kdpatino / DAC.cpp
Last active February 7, 2018 16:12
DAC test in MATRIX Voice
/*
* Copyright 2017 <Admobilize>
* All rights reserved.
*/
#include <gflags/gflags.h>
#include <wiringPi.h>
#include <math.h>
#include <fstream>
@kdpatino
kdpatino / matrixio-env.c
Last active November 23, 2017 03:49
Test without buff functions
/*
* matrixio_env.c - Support for Vishay VEML6070 UV A light sensor
*
* Copyright 2017 Andres Calderon <andres.calderon@admobilize.com>
*
* This file is subject to the terms and conditions of version 2 of
* the GNU General Public License. See the file COPYING in the main
* directory of this archive for more details.
*
* IIO driver for (MATRIX CREATOR Enviromental Sensors)