GithubHelp home page GithubHelp logo

jacklee032016 / sama5d2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 293.71 MB

Emacs Lisp 0.01% Makefile 0.23% C 97.10% Shell 0.11% C++ 1.27% Perl 0.18% Lex 0.01% Yacc 0.02% Assembly 0.18% Python 0.25% QML 0.01% Objective-C 0.62% CSS 0.01% Roff 0.01% sed 0.01% Awk 0.01% UnrealScript 0.01% Gherkin 0.01% XS 0.01% Perl 6 0.01%

sama5d2's Introduction

# Sama5d26 Project

1 Programming

Open bootconfig applet with device sama5d2x through JTAG link

/d/Xilinx/sam-ba_3.2.2/sam-ba.exe -p j-link -d sama5d2 -a bootconfig
/d/Xilinx/sam-ba_3.2.2/sam-ba.exe -p jlink -d sama5d2 -a bootconfig
/d/Xilinx/sam-ba_3.2.1/sam-ba.exe -p j-link -d sama5d2 -a bootconfig
/d/Xilinx/sam-ba_3.2.1/sam-ba.exe -p jlink -d sama5d2 -a bootconfig

Opening J-Link with S/N '29424457'
Found Atmel SAMA5D2x device
Disabling watchdog
Connection opened.
Connection closed.

## 1.1 Debug

When RomBOOT is not enabled, it complains "SAMBA/Applet.qml:232: Error: Could not initialize applet (status: undefined)":

Short the pins to make RomBOOT is loaded;

When try to program, it complains "qml/SAMBA/Applet.qml:232: Error: Could not initialize applet (status: 1)":

Plug off the shorted pins, and begin to program;

When can't change to binary mode:

$ sam-ba.exe -x scripts/sfSerialUboot.qml
Opening serial port 'COM10'
Error: Could not switch monitor on port 'COM10' to binary mode
Connection closed.

In serial software, such as SecureCRT, connect to COM10, and disconnect;
Then try again;

It is because the serial port operation in Windows or MinGw.

When this happens, try later:

$ sam-ba -p jlink -d sama5d2 -a bootconfig
Opening J-Link with S/N '29424457'
Error: Unsupported device

2 Partitions

13 ofpart partitions found on MTD device f0020000.spi
Creating 13 MTD partitions on "f0020000.spi":
0x000000000000-0x000000010000 : "at91bootstrap"
0x000000010000-0x000000020000 : "uboot env"
0x000000020000-0x0000000a0000 : "uboot"
0x0000000a0000-0x0000000b0000 : "device tree"
0x0000000b0000-0x0000004b0000 : "kernel"
0x0000004b0000-0x0000004c0000 : "configuration"
0x0000004c0000-0x0000004d0000 : "edid"
0x0000004d0000-0x0000014d0000 : "rootfs"
0x0000014d0000-0x0000018d0000 : "app"
0x0000018d0000-0x0000018e0000 : "datacfg0"
0x0000018e0000-0x0000018f0000 : "datacfg1"
0x0000018f0000-0x000001900000 : "datacfg2"
0x000001900000-0x000002000000 : "reserved"

## 2.1 Compile DataFlashBoot

Clear all configuration:

make mrproper

Configure sama5d2:

make sama5d2_xplaineddf_qspi_uboot_defconfig

make menuconfig

make

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.