Skip to content

SHRMu/SOCLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

SOCLab

Code for the Lecture RS2 in TU Darmstadt

The following steps can be considered to help your SOCLab with SpartanMC SOC-Kit

Create a SpartanMC project
  • cd $SPARTANMC_ROOT
  • make newproject +path=~/Desktop/newproject
Create firmware & Open JConfig

Under project directory:

  • make newfirmware +path=firmware
  • (module load jdk/OpenJDK11/11.0.1)
  • make jconfig
Customizing the SpartanMC System

Select components:

  • SP601
  • SpartanMC core
  • UART Light
Example Code

#include "peripherals.h"
#include <stdio.h>

FILE * stdout = &UART_LIGHT_0_FILE;

void main() {
printf("hello world\n");
}

Connect to USB UART port
  • stty -F /dev/ttyUSB0 115200 cs8 -echo raw
  • cat /dev/ttyUSB0
Load the Code
  • make all program (make updateRam program)

components usded in the practice:

  • i2c_master_0
  • port_out_0
  • spi_master_0
  • interrupt_controller_0

(more details can be referred to the configuration file SOCLab.jc3)

Problems may occur

permmission denied -> restart the SP601 device

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published