NETOS5.1 Training NS7520 Overview NETOS5.1 Overview BSP Changes BSP & Board Configurations Build File Changes for GHS Makefile Changes for GNU Linker Files.

Slides:



Advertisements
Similar presentations
Chapter 9 Bootloader.
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
LOGO Lab Supervisor – Dr. WH Lau EE3271 Design Laboratory.
Net+OS Initialization Initialization Sequence Initialization Routine Roles ROM Image Compression/Decompression.
ARM development environment Modified Content Philips LPC2106 ARM chip ARM target board PSPad customised development environment Troubleshooting.
SAM9263-EK RevB WinCE 6.0 DEMO (All-in-NAND) AT91 SAM9 Product Group. Version 1.1 May 2008.
Boot Issues Processor comparison TigerSHARC multi-processor system Blackfin single-core.
Chapter 9 Bootloader. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2002 Chapter 9, Slide 2 Learning Objectives  Need for a bootloader.
Using PDG with e2studio: Example
1-1 SYS Module System Clocks FXTAL BCLK Reset Circuit Reset Conditions Bootstrap Initialization.
NS Training Hardware. System Controller Module.
Welcome to Workshop 88’s Tiny85 Class Please download Tiny core libs from: (for Arduino 1.0, not 1.5!) Unzip and.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
Hardware Overview Net+ARM – Well Suited for Embedded Ethernet
NET+OS Bootloader Overview Requirements How to Build How to Customize Changes to Applications Configuration Settings.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
NET+OS 6.1 Training. BSP NET+OS 6.1 BSP Initialization Memory map New features Debugging Porting Issues.
The GreenHills Tool Chain
AT91SAM9261-EK WinCE 6.0 DEMO ATMEL AT91 Application & Support Group
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
September 15, 2015 NET+OS 6.0/GNU Postinstallation.
NET+OS 6 BSP How and why it was restructured Changes to memory map New features How to port to custom hardware.
LPC2148 Programming Using BLUEBOARD
NET+OS 6.1 Training. Introduction What is Net+Os? In Circuit Emulator (Raven) Ethernet Dev.-Driver GPIO PHY Ser. DD. OS (ThreadX) IP, ICMP, IGMP, PPP,
1 Introduction to ARM A15 Linux DSP Platform Software Apps Team 04/19/2013 1TI Confidential - NDA Restrictions.
AT91SAM9261-EK WinCE 5.0 DEMO ATMEL AT91 Application & Support Group Version 1.O February 2007.
MOBILE OPERATING ROBOT ON EMBEDDED SYSTEM
AT94 Training 2001Slide 1 AT94K Configuration Modes Atmel Corporation 2325 Orchard Parkway San Jose, CA Hotline (408) OR.
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
NS7520.
Ethernet Driver Changes for NET+OS V5.1. Design Changes Resides in bsp\devices\ethernet directory. Source code broken into more C files. Native driver.
ECS642U Embedded Systems Digital I/O William Marsh.
NIOS II Ethernet Communication Final Presentation
NS Training Hardware. Serial Controller - UART.
Siemens Microelectronics, Inc. December 98 Slide 1 HOT50x-5 Version 1.0 HOT50x-5 An Add-On to the HOT50x_1 Hands-On Training Materials for the 8bit Family.
NS Training Hardware. Print Engine Controller NS9775.
SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
NET+OS 6.1 Training. GPIO APIs NET+OS 6.1 Signal Multiplexing System tradeoffs affecting pin count at design-time. –NS9750 unit cost reduced by conserving.
1 Bringing it all together: Exploring the EVB Today: First Hour: Bringing it all together by exploring the EVB –Section of Huang’s Textbook.
Embedded Systems Design with Qsys and Altera Monitor Program
Net+Os v5.1 with GHS 3.5 & GNU. What it is… Inter Release that allows you to run Net+Os on 7520 based targets… The BSP has been restructured to make it.
Commands 3/1/ Boot PROM Fundamentals All Sun systems have resident boot PROM firmware Provides basic hardware testing and initialization prior.
1 Bringing it all together: Exploring the EVB Today: First Hour: Bringing it all together by exploring the EVB –Section of Huang’s Textbook.
PCI 9052 소개 권 동혁. Contents 1.Introduction 2.Major features 3.PCI 9052RDK-LITE.
The World Leader in High Performance Signal Processing Solutions Das U-Boot: Blackfin Guts.
Catalog RTOS Apps April 13, 2015
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
CCNA 2 v3.1 Module 2 Introduction to Routers
Lab 1: Using NIOS II processor for code execution on FPGA
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
I/O Systems.
Refer to Chapter 5 in the reference book
Using FPGAs with Processors in YOUR Designs
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
NS Training Hardware.
Baremetal C Programming for Embedded Systems
Lab. 4 – Part 2 Demonstrating and understanding multi-processor boot
Chapter 9 Bootloader.
Lecture9: Embedded Network Operating System: cisco IOS
NS Training Hardware.
CHAPTER HARDWARE CONNECTION.
Computer System Laboratory
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

NETOS5.1 Training NS7520 Overview NETOS5.1 Overview BSP Changes BSP & Board Configurations Build File Changes for GHS Makefile Changes for GNU Linker Files

NS7520 Overview No Cache No Port B No Parallel Ports, No ENI Less GPIO, only Port A and Port C Register address changes in Ethernet module Some bits changes in eth & spi registers

NETOS5.1 Overview NETOS5.1 ONLY Support NS7520 Boot Loader BSP Restructure Ethernet Driver Image Build File Changes

BSP Changes BSP Restructure 1. Files in /src/bsp/customize MUST BE CUSTOMIZED FOR YOUR PARTICULAR HARDWARE: cs.c -- sets up the NET+ARM chip selects gpio.c -- sets up the GPIO ports led.h -- defines used by the LED driver errhndlr.c -- contains error handling routines pll.s -- contains a list of PLL settings, indexed by chip reversion ID 2. Ncc_post() is called from main(), romstart.c does not exist anymore. 3. Decompress() is called from bootloader, Set R14 in UNDEF mode to 0xff to signal a software restart. 4. In init.s, Put the DMA controller into Test mode. This will let us use its internal registers as scratch pad memory to call ncc_init(). 5. In ncc_init(), memory section “initdata” is used to store power on information: customizeReadPowerOnButtons(chipType, initdata) 6. In ncc_init(), memory section “nccdata” is used to store “debugger” & “software reset” flags.

BSP Changes Settings.c. Entries have been added for chip ID 40 (NS7520-0), chip ID 41 (NS7520-1) and possible future chip ID 42. NOTE: can only use external cs0WaitStates has to be 5, cs1SdWaitStates has to be 1 for the parts on our development board can use external oscillator or cs0WaitStates has to be 5, cs1SdWaitStates has to be 1 for the parts on our development board. If use PLL+crystal, bspconf.h need to be changed, and some jumpers and resistors need to be installed on the board. Please consult Don Stone on which jumpers need to be installed and what values cs0WaitStates and cs1SdWaitStates

BSP Changes PLL & sysClock.c NOTE: The PLLCNT field in PLL control register is initialized on hardware reset as a function of the input seen on ADDR. NETOS5.1 BSP does not write to this field. Writing the register when the PLL is enabled produces a hardware reset to allow for settling of the new PLL setting. If PLL is enabled, sysClockFrequency is calculated using the fields “IS”, “FS” and “ND” in PLL settings register, not the “PLLCNT” field in PLL control register. If PLL is enabled, the internal auxiliary clock signal (XTAL) Frequency is always (CRYSTAL_OSCILLATOR_FREQUENCY/5) regardless what the sysClockFrequency is, 55Mhz, 46Mhz or 36Mhz.

BSP Changes Serial Driver SPI Driver HDLC Driver

BSP & Board Configurations Default configurations: … #define BSP_INCLUDE_SERIAL_DRIVER_1 1 #define BSP_USE_FLASH_FOR_NVRAM #define BSP_BOOTLOADER_SIZE (64*1024) #define BSP_APPLICATION_OFFSET BSP_BOOTLOADER_SIZE #define BSP_APPLICATION_ADDRESS (BSP_APPLICATION_OFFSET + BSP_ROM_BASE) #define BSP_APPLICATION_IMAGE_SIZE 0xd0000 #define CLOCK_SOURCE 0 /*0 =SELECT_THE_XTAL1_INPUT*/ …

BSP & Board Configurations To enable serial port 2 #define BSP_INCLUDE_SERIAL_DRIVER_2 1 Jumper JP6 is “OUT” NOTE: DCD, DSR and RI are not connected to “PORTB” on the board.

BSP & Board Configurations To enable SPI port 2 /* #define BSP_INCLUDE_SERIAL_DRIVER_2 1 */ #ifndef BSP_INCLUDE_SERIAL_DRIVER_2 /* If we do not have an RS-232 driver, we can include SPI driver */ #define BSP_INCLUDE_SPI_DRIVE_2 1 #endif Jumper JP6 is “IN” Example application in /src/examples/naspi can now access EEPROM at U30 on the board through SPI interface.

BSP & Board Configurations To enable PLL for NS #define CLOCK_SOURCE 1 /*0 = SELECT_THE_XTAL1_INPUT*/ Resistor changes on the board, you need soldering gun! JP54 is “IN” For 55Mhz, jumpers JP46-JP53 are “OUT” For 46Mhz, JP52 is “IN”, others are “OUT” For 36Mhz, JP50 & JP51 are “IN”, others are “OUT” wait states for CS0 and CS1? Ask Don Stone.

BSP & Board Configurations If #define BSP_USE_FLASH_FOR_NVRAM, rom.bin does not boot Why not use bootloader and image.bin? if you have to use rom.bin: /* #define BSP_USE_FLASH_FOR_NVRAM */ /* This is for 20UM board if BSP_USE_GPIO_DRIVE_NVRAM is defined, PORTC0, PORTC4, PORTC7, PORTC3 will be used to drive NVRAM.*/ #define BSP_USE_GPIO_DRIVE_NVRAM JP6 has to be “IN”

Build File Changes for GHS Debug.bld and romzip.bld are gone Image.bld will build debugger image and image.bin to use with bootloader Please note that debugger image and unzipped application code start at the same location Rom.bld is still there, better not use it

Makefile Changes for GNU No longer overwrite libc.a and crt0.o in cygwin directory NETOS5.1 use libc.a and crt0.o in /netos/lib/32b/gnu/ directory You must use the Makefile in our examples directory as template for your application In the Makefile NETOS_CLIBPATH=./../../../../lib/32b/gnu NETOS_STARTFILE=$(NETOS_CLIBPATH)/crt0.o LINKOPT= -mbig-endian –nostartfiles NETOS_LIBS= -L $(NETOS_LIBPATH) -L $(NETOS_CLIBPATH) $(DEBUG_VERSION): $(OBJECTS) $(LINK_CMD) $(LIBS) $(CC) -o $(DEBUG_VERSION) $(OBJECTS) $(LINKOPT) -T $(LINK_CMD) $(NETOS_STARTFILE) $(NETOS_LIBS) -Wl,-Map,$(MAPFILE) $(NM) -n $(DEBUG_VERSION) > $(SYMFILE) For C++ application NETOS_STARTFILE=$(NETOS_CLIBPATH)/crt0.o $(NETOS_CLIBPATH)/crtbegin.o $(NETOS_CLIBPATH)/crtend.o

Linker Files One linker file set for all applications In netos/src/linkerScripts This directory contains linker scripts and configuration files that are shared by all applications. These files are: bootldr.dat bootloader configuration file used to generate the file image.bin. It controls the information placed in the bootloader header of the image. image.ld GNU linker script used to build an image that can be debugged and used with the bootloader. image.lx Green Hills linker script used to build an image that can be debugged and used with the bootloader. rom.ld GNU linker script used to build an image that will run from ROM. The bootloader is not used with this type of image. rom.lx Green Hills linker script used to build an image that will run from ROM. The bootloader is not used with this type of image. Except: nahttp & namail examples use local rom.ld and image.ld for GNU

References BSP Porting Guide for GHS & GNU Getting Started with GHS and GNU NS7520 Hardware Manual