CS452 - Real-Time Programming - Winter 2015

Lecture 29 - Power On

Public Service Annoucements

  1. Final exam date: 16.00 14 April to 18.30 15 April
  2. Milestone 2 demo: 25 March
  3. Final demo: 6,7 April.

Power On

When you turn on the power or press the reset button, what happens before you see the RedBoot> prompt?

This is not determined by the instruction set architecture (ISA).

Asserting the reset input of the SoC, asserts the reset output of the SoC.

Negating the reset input starts the boot sequence, with the SoC in its reset state. Ten hardware inputs determine how the SoC boots

These inputs allow the designer of the board hosting the SoC to determine enough characteristics of the boot state that it can be used for many applications

TS-7200 is set up for internal pre-boot with source from the flash on the 32-bit AHB

The AHB bus has all the important high-speed components

Initial state

ARM

The following things, which are contolled through the system control co-processor, are determined by the CPU architecture. They must be independent of the stuff added by Cirrus

  1. MMU flat, but might be different on soft reset
  2. Caches disabled
  3. Slow bus clock
  4. Interrupts disabled
  5. Little-endian memory system
  6. No access to MMU registers
  7. Normal exception registers

Cirrus

The following things, which are described in the EP9302 documentation, are properties of hardware Cirrus added. They are independent of how Technologic configured the chip when they designed the TS7200.

  1. DRAM controller(s) not initialized
  2. Flash controller(s) not initialized
  3. All I/O devices in reset state. (They receive hardware reset inputs from the CPU.)
  4. Memory map in boot mode

Technologic

The following things, which are described in the Technologic documentation, manual & circuit diagram, are properties of the TS7200

  1. Boot control bits, set to normal boot, 32-bit bus width, sychronous boot device, internal, watchdog timer disabled.
  2. Physical memory map
  3. In the AHB registers is a 16K block of ROM from 0x80090000 to 0x80093fff

Pre-pre-boot Sequence

  1. Jump to 0x80090018.
  2. Remap memory.
  3. Turn on red LED; turn off green LED
  4. Make the CPU completely vanilla. E.g.,
  5. Turn off watchdog timer
  6. Acquire boot state
  7. Configure the clocks to run from external source (needed for serial boot)
  8. Acquire boot state configuration inputs
  9. Using the memory width given in the boot state register
  10. Toggle LEDs
  11. Switch
  12. In the first two cases the 2048 bytes contains a memory test followed by a loader.

Pre-boot Sequence

This code, provided by Technologic, knows all about the EP9302, and all about the TS7200.

  1. Sets up a stack in the ethernet buffer
  2. Sets the CPSR to a vanilla state: no interrupts, svc mode
  3. Copies 260 words of code from flash to the ethernet buffer
  4. Initializes memory controllers for the memory it has
  5. Configures GPIO.
  6. Turns off the watchdog timer
  7. Sets up the appropriate serial port for a monitor
  8. Code in the ethernet buffer loads RedBoot
  9. Jump to the start of RedBoot


Return to: