Skip to content

Instantly share code, notes, and snippets.

@kdpatino
kdpatino / clk_gen.v
Last active March 11, 2017 00:06
DCM FPGA
//////////////////////////////////////////////////////////////////////////////*/
module matrix_clkgen (
CLKIN,
RST,
CLKFX
);
input CLKIN;
######################
# Timing Constraints #
######################
##### Grouping Constraints #####
NET CLKIN_I TNM_NET = clk50_grp;
##### Clock Period Constraints #####
TIMESPEC TS_PER_CLK50 = PERIOD "clk50_grp" 20.0 ns;
@kdpatino
kdpatino / clk.c
Created March 23, 2017 01:48
blink.c
#include <wiringPi.h>
int main(void) {
wiringPiSetup();
pinMode(5,OUTPUT) ;
while(1){
digitalWrite (5, HIGH) ; delay(100);
digitalWrite (5, LOW) ; delay(100);
@kdpatino
kdpatino / main.cpp
Created October 9, 2017 16:20
Psram Read
/*
* Copyright 2016 <Admobilize>
* MATRIX Labs [http://creator.matrix.one]
* This file is part of MATRIX Creator firmware for MCU
* Author: Andrés Calderón [andres.calderon@admobilize.com]
*
* MATRIX Creator firmware for MCU is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
@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)
@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 / 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");
clear all
close all
clc
pkg load signal
% CIC frequency domain example
%% Setup parameters
Fs_in = 3e6; % Input sample rate
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
/ {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;ranges;
rproc_0_reserved: rproc@1e000000 {
no-map;reg = <0x1e000000 0x01000000>;
};
};
amba {