HinzeSPP/FIELDS iCDR – TDS FSW Solar Probe Plus / FIELDS Instrument CDR TDS Flight Software Jason Hinze University of Minnesota

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

System Integration and Performance
Computer System Overview
Review: Chapters 1 – Chapter 1: OS is a layer between user and hardware to make life easier for user and use hardware efficiently Control program.
1 PFP IPDR 2010/6/ Particles and Fields Package (PFP) GSE Timothy Quinn.
Architectural Support for Operating Systems. Announcements Most office hours are finalized Assignments up every Wednesday, due next week CS 415 section.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
1 Computer System Overview OS-1 Course AA
Chapter 1 and 2 Computer System and Operating System Overview
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
GoetzFIELDS iCDR - TDS Solar Probe Plus - FIELDS Instrument CDR Time Domain Sampler TDS Keith Goetz University of Minnesota 1.
Instrument TrainingIDPU - 1 UCB, Dec 6, 2006 THEMIS INSTRUMENT TRAINING IDPU.
MAVEN CDR May 23-25, 2011 Particles and Fields Package Pre-Environmental Review May , 2012 Flight Software Peter R. Harvey Mars Atmosphere and Volatile.
Solar Probe Plus FIELDS ICU/FSW Peter R. Harvey Dorothy Gordon –ICU Will Rachelson – FSW Dec 1, 2012.
Real-Time Software Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
Timothy QuinnFIELDS iCDR – EGSE Solar Probe Plus FIELDS Instrument CDR Electrical GSE Timothy Quinn UCB 1.
Barbara PlanteFIELDS iPDR – DCB Flight Software Solar Probe Plus FIELDS Instrument PDR DCB Flight Software Barbara Plante UC Berkeley SSL
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
GoetzFIELDS iPDR - TDS SPP/FIELDS Time Domain Sampler Preliminary Design Review Keith Goetz University of Minnesota 1.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
D. GordonFIELDS iCDR – DCB Solar Probe Plus FIELDS Instrument CDR DCB Dorothy Gordon Space Sciences Lab, UC Berkeley 1.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
RBSP Radiation Belt Storm Probes RBSP Radiation Belt Storm Probes Sept. 2008EFW INST+SOC PDR253 Data Controller Board FPGA Dorothy Gordon UC Berkeley.
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
21-1 MAVEN IPSR October 30,31, 2012 Particles and Fields Package Pre-Ship Review October 30,31, : Flight Software Peter R Harvey Mars Atmosphere.
GLAST LAT ProjectDOE/NASA Peer Review, March 19-20, 2003 GLAST Large Area Telescope: Electronics, Data Acquisition & Instrument Flight Software Flight.
Time Management.  Time management is concerned with OS facilities and services which measure real time, and is essential to the operation of timesharing.
Chapter 2 Processes and Threads Introduction 2.2 Processes A Process is the execution of a Program More specifically… – A process is a program.
HinzeSPP/FIELDS iCDR – TDS FPGA 1 Solar Probe Plus / FIELDS Instrument CDR TDS FPGA Jason Hinze University of Minnesota
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
1 Programming of FPGA in LiCAS ADC for Continuous Data Readout Week 5 Report Tuesday 29 th July 2008 Jack Hickish.
Electronic Analog Computer Dr. Amin Danial Asham by.
GoetzPre-PDR Peer Review October 2013 FIELDS TDS FPGA Peer Review Keith Goetz University of Minnesota 1.
RBSP Radiation Belt Storm Probes RBSP Radiation Belt Storm Probes 12/25/20151 Flight Software Template for Instrument Critical Design Review Gary M. Heiligman.
Solar Probe Plus A NASA Mission to Touch the Sun March 2015 Instrument Suite Name Presenter's Name.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR Systems Engineering Mike DeKlotz GSFC Stanford Linear Accelerator Center Gamma-ray Large.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR Test Suites (Backup) Stanford Linear Accelerator Center Gamma-ray Large Area Space Telescope.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
RBSP Radiation Belt Storm Probes RBSP Radiation Belt Storm Probes RBSP/EFW I-PER 21 January EFW Flight Software Summary Peter Harvey Space Sciences.
June 16, 2015SPP/FIELDS SOC CDR: Integration & Test SPP/FIELDS Integration and Test SOC Critical Design Review Keith Goetz University of Minnesota
HarveyFIELDS iCDR – Flight Software Solar Probe Plus FIELDS DCB FSW Requirements Peter Harvey University of California 1.
RBSP Radiation Belt Storm Probes RBSP Radiation Belt Storm Probes 3-4 Sept. 2008EFW INST+SOC PDR447 Command, Telemetry, and Ground Support Equipment (CTG)
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
GLAST LAT ProjectCDR/CD-3 Review May 12-16, 2003 Document: LAT-PR Section 5 IOC Subsystem 1 GLAST Large Area Telescope: IOC Subsystems WBS: 4.1.B.
GoetzPre-PDR Peer Review October 2013 FIELDS Time Domain Sampler Peer Review Keith Goetz University of Minnesota 1.
13-1 MAVEN PFP ICDR, May 23 – 25, 2011 Particles and Fields Package Critical Design Review May , 2011 GSE Timothy Quinn.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
HarveyFIELDS iCDR – Flight Software Solar Probe Plus FIELDS DCB Flight Software Design Peter Harvey University of California 1.
SwCDR (Peer) Review 1 UCB MAVEN Particles and Fields Flight Software Critical Design Review Peter R. Harvey.
GLAST Large Area Telescope LAT Flight Software System Checkout TRR FSW Overview Sergio Maldonado FSW Test Team Lead Stanford Linear Accelerator Center.
Timothy Edward Quinn FIELDS iPDR – GSE Solar Probe Plus FIELDS Instrument PDR GSE Timothy Edward Quinn UCB 1.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Advanced Operating Systems CS6025 Spring 2016 Processes and Threads (Chapter 2)
RBSP Radiation Belt Storm Probes RBSP Radiation Belt Storm Probes RBSP/EFW CDR /30-10/1 647 Ground Support Equipment Will Rachelson University of.
Solar Probe Plus FIELDS MEP iPSR SOC Marc Pulupa April 10, 2017
Command & Data Handling
OPERATING SYSTEMS CS3502 Fall 2017
Real-time Software Design
Processor Fundamentals
BIC 10503: COMPUTER ARCHITECTURE
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Chapter 13: I/O Systems.
Presentation transcript:

HinzeSPP/FIELDS iCDR – TDS FSW Solar Probe Plus / FIELDS Instrument CDR TDS Flight Software Jason Hinze University of Minnesota 1

HinzeSPP/FIELDS iCDR – TDS FSW Flight Software Overview: High-Level Functional Description Boot Code: –Configure system to a known state. –Communicate with spacecraft (TC, engineering TM) –Select and execute operational code image –EBL: stay in boot; dump/load RAM/EEPROM Operational Code: –Communicate with spacecraft (Time and Status, Critical HK, TC, TM) –Communicate with DCB (CBS, TC, TM) –Generate and telemeter TDS events. –Manage MAGi (TC, TM, survey data, housekeeping) –Manage SWEAP –Manage AEB2 –Manage LNPS2 2

HinzeSPP/FIELDS iCDR – TDS FSW Flight Software Overview: Key Requirements System / Spacecraft -related –Configure to a known state at power on. –Support remote load-to/dump-from RAM and EEPROM. –Implement a commandable safe mode. –Communicate with spacecraft (per GI ICD ) FIELDS-related –Communicate with the DCB (per SPF_MEP_100_CDI_ICD) –Manage failover with the DCB. –Control and monitor MAGi, SWEAP, AEB2, LNPS2. –Send the Coordinated Burst Signal to DCB, SWEAP. Science Data Products -related –Time-tag science data accurately and precisely. –Collect, reduce, and send magnetometer science data (DC B-field). –Collect, evaluate, rank, and send TDS event data (AC E-field, AC B- field, SWEAP counts). 3

HinzeSPP/FIELDS iCDR – TDS FSW Flight Software Context: FIELDS Block Diagram 4

HinzeSPP/FIELDS iCDR – TDS FSW Flight Software Context: TDS Hardware 5

HinzeSPP/FIELDS iCDR – TDS FSW Changes Since iPDR There were no RFAs on the TDS FSW resulting from the iPDR. There were no major changes in software requirements. There were no major changes in relevant ICDs. There were no major changes in the top-level design of the FSW. TDS FSW pre-iCDR Peer Review (held 2014 Dec 5) resulted in 7 recommendations. –3 have been resolved. –4 will be implemented in the near term. Notable implementation changes: –Real-Time Clock Subsystem now uses multi-RTC hardware timestamping peripheral, obviating the need for timestamp-related RTC timebase conversion calculations. –TDS Event Quality / Classification algorithm increased in computational intensiveness. 6

HinzeSPP/FIELDS iCDR – TDS FSW Functional Description: Boot Code Configure system to a known state. –Initialize LEON3FT register file –Initialize RAM –Quiesce peripherals Communicate with spacecraft (Time and Status, Critical HK, TC, engineering TM) –Mostly in support of emergency boot load functionality. Select and execute operational code image –We have two slots for operational code images. –Select image to boot based on boot cause and “signature block” headers of operational code images. EBL: stay in boot; dump/load RAM/EEPROM –If we receive a command to stay in boot mode within a certain time period after boot, we will stay in boot mode waiting for further commands. –This is in support of emergency boot load functionality. 7

HinzeSPP/FIELDS iCDR – TDS FSW Functional Description: Operational Code Communicate with spacecraft (per GI ICD ) –ITF protocol processing –Spacecraft Time and Status –Instrument Critical Housekeeping –Telecommands, Telemetry Communicate with FIELDS1/DCB (CBS, TC, TM) –Coordinated Burst Signal –Telecommands, Telemetry Generate and telemeter TDS events. Manage MAGi (time sync, TC, survey data, housekeeping) Manage SWEAP (time sync, CBS, TC) Manage AEB2 (set DAC values, housekeeping) Manage LNPS2 (control mag power, housekeeping) 8

HinzeSPP/FIELDS iCDR – TDS FSW Design: Operational FSW Architecture Diagram 9

HinzeSPP/FIELDS iCDR – TDS FSW Design: Real-Time Clock Subsystem Maintains a number of Real-Time Clocks. –sMET, dMET: spacecraft-sourced and DCB-sourced MET: –FSCT: FIELDS Sample Clock Time (cycle/subcycle time) –TSCT: TDS Sample Clock Time (number of TDS samples acqed since reset) –SYST: System Time (number of bus clocks since reset) Handles MET sync from spacecraft and DCB interfaces. Makes available hardware timestamps of a variety of events: –Spacecraft start-of-cycle (“V1PPS”) –FIELDS start-of-cycle (“F0”) –TDS event captured –SWEAP sweep start. The current failover mode determines which MET source is used. –In slave mode, DCB-sourced MET (dMET) is used. –In master mode, spacecraft-sourced MET (sMET) is used. 10

HinzeSPP/FIELDS iCDR – TDS FSW Design: Failover Management On detection of DCB failure: –The Fields Sample Clock Time (FSCT) real-time clock is allowed to free-run. –The telemetry stream to the DCB is paused. –The MET from the spacecraft interface (sMET) is used for timestamping. –For long failures (or by command) increase telemetry bitrate to the spacecraft interface. On detection of DCB recovery: –The FIELDS Sample Clock Time (FSCT) is synced with the DCB. –The telemetry stream to the DCB is resumed. –The MET from the DCB interface (dMET) is used for timestamping. –Telemetry bitrates restored to defaults. 11

HinzeSPP/FIELDS iCDR – TDS FSW Design: TDS Instrument Handles parameter setting commands. Controls TDS analog input muxes. Maintains metadata for the TDS event buffers. –Quality –Datation timestamp –Current mux settings Calculates the quality of newly-acquired events. –Quality can be adjusted well after the acquisition as a result of further event processing. Feeds low-quality TDS event buffers back to the TDS acquisition hardware for recycling. When sufficient downlink allocation has been accumulated, telemeters highest-quality TDS event buffer. Telemetry rate commandable in bits per second. 12

HinzeSPP/FIELDS iCDR – TDS FSW Design: Interrupt and Task Management Actions requiring hard real time response are done in hardware and set up / post-processed in software, e.g.: –timestamping –sending time sync to MAGi, SWEAP Prefer to use interrupts as notifications of software work to be done, rather than replacements for hardware. –ISR’s preferred job is to post a task and possibly configure hardware for the next action. –ISR should be quick enough to not starve other ISRs or tasks unnecessarily: –Typical duration: 10µs-100µs. Most software work will be done in tasks. –Task means “a single task” not “thread of execution”. –Tasks are posted on and dispatched from a priority queue. –Tasks should be quick enough to not starve other tasks unnecessarily. –Typical duration: 100µs-1000µs. 13

HinzeSPP/FIELDS iCDR – TDS FSW Timing: Spacecraft Major Cycle (1 sec) 14

HinzeSPP/FIELDS iCDR – TDS FSW Timing: FIELDS Major Cycle (~0.874 sec), DCB-TDS 15

HinzeSPP/FIELDS iCDR – TDS FSW Timing: FIELDS Major Cycle (~0.874 sec), TDS-MAG 16

HinzeSPP/FIELDS iCDR – TDS FSW Resource Margins 17 ResourceAvailableCurrent Estimate Current % Margin Estimate at PDR % Margin at PDR Boot PROM 32kB19.9kB38%27.5kB14% EEPROM256kB (x2)84kB66%115kB55% RAM1024kB494kB52%527kB48% CPU100%37%63%10%90%

HinzeSPP/FIELDS iCDR – TDS FSW Software Verification and Testing Method: –Test environment will be determined based on test type. –Our GSE developer will implement scripted test suites. –Our Software QA lead will run test suites and document results. –Scripted test suites will test versus level 5 verification matrix requirements. Tests: –Unit Tests: (ongoing) Environment: GSEOS + FIG + FIELDS2 EM hardware Performed in-situ, with other modules quiesced as much as is feasible. –Integration Testing: (after major features complete) Environment: GSEOS + FIELDS1 EM + FIELDS2 EM Exercises as much of the system as possible, maximizing interaction effects. –Long-Duration Stress Testing: (after all requirements satisfied) Environment: GSEOS + FIELDS1 EM/FM + FIELDS2 EM/FM Day-in-the-life scenarios; double nominal TC/TM load –Acceptance Testing: (after Gold Master Candidate identified) Environment: GSEOS + FIELDS1 FM + FIELDS2 FM Comprehensive performance test of all requirements on the level 5 verification matrix. 18

HinzeSPP/FIELDS iCDR – TDS FSW Status of Engineering Model Software Substantially Completed: (currently running 24x7, stress-test load) –System Manager (interrupts, “tasks”, software timers, etc) –Spacecraft Interface –DCB Interface –Real-Time Clock Manager –Telemetry Manager –Command Manager –TDS Acquisition –MAGi Interface –SWEAP Interface –Housekeeping ADC Controller –Instrument Status Reporting Ongoing Development: –AEB driver (adapted from DCB’s FSW) –LNPS driver (adapted from DCB’s FSW) –MAG power cycle choreography (adapted from DCB’s FSW) –Coordinated Burst Signal –TDS Event quality calculation –TDS Event telemetry bit rate control –FIELDS2/TDS consolidated system-level housekeeping packet –Performance counters (fine-grained CPU utilization, ISR duration,...) 19

HinzeSPP/FIELDS iCDR – TDS FSW Development Environment Tools and Techniques –Highly-orthogonal C code modules –GCC cross-compiler suite –Heritage code from STEREO/WAVES FSW –Shared code with FIELDS DCB FSW –Mac OS X (unix) laptops & workstations GSE –PC laptop, running GSEOS –Spacecraft Emulator –DCB, MAG, SWEAP Emulator (FIG) Support for I&T and Flight Operations –We currently have the capability for rapid development, building FSW images on development laptops and uploading them to EM EEPROM in a couple of minutes. –We have plans for the deployment of frozen stable development environments at both UCB and UMN. This will ensure the long-term continuance of our capabilities to develop and test new flight software after launch, performing the bulk of development and testing UMN, while performing final acceptance testing at UCB. 20

HinzeSPP/FIELDS iCDR – TDS FSW Conclusion We have no outstanding issues. Design of TDS FSW meets all requirements. TDS FSW implementation hosted on ETU currently successfully performs most major functions 24x7. –TDS events captured from analog stimuli; TM delivered live via either Spacecraft or DCB interface (DCB by default) –MAGi survey data gathered from MAGi; TM delivered live via either Spacecraft or DCB interface (Spacecraft by default) –TMMGR concurrently routing TM to both Spacecraft and DCB interfaces –Commands received via either Spacecraft or DCB interface routed to appropriate destinations –Longest test run to date: 20 days. TDS FSW is ready to move into FM development. 21

HinzeSPP/FIELDS iCDR – TDS FSW Backup Slides 22

HinzeSPP/FIELDS iCDR – TDS FSW Peer Review Recommendations 23 ActionNameDescriptionResponseClosed? FSW-01Software Timing Errors Consider adding error flags to violations of timing constraints for interrupts and tasks (as well as metrics about typical/max values) We will add performance monitoring functionality to our system code after all major operational modules are fleshed out. y FSW-02Stay in boot Verify with APL the 'stay in boot' command sequence timing is consistent with what the spacecraft can do (can it send a command withing some time window)? We will resolve this boot-time operational protocol in the near term. y FSW-03PROM Size Margin Improve margin numbers for boot code. Either need 'actual' size or more margin per Gold Rules at CDR (20% for PROM). Boot code is currently 18kB and performs most functions. y FSW-04FIFO interrupts “Low-water” and “high-water” interrupts : priorities should be specified and command input queue priority should be fixed. This is already the case.y FSW-05AHB mastersDoes the AHB have a single or dual masters (if DMA controller is included) ? Current indications are that DMA is not required; as such, the only AHB bus master is the CPU. y FSW-06Cache Is cache enabled ? If so, which algorithm is selected (e.g. LRU) ? Are cache flushes allowed ? Both instruction and data caches are enabled, using the random replacement algorithm. Cache flushes are performed through the use of a privleged instruction. y FSW-07Register File Error Detection Error detection in register file for LEON3FT may be dependent on task switching. If so, what frequencies are tasks run ? Is scheduling of tasks programmable ? We will use hardened FPGA-fabric TMR registers for the CPU register file after migration from LEON3 to LEON3FT. Furthermore, as a result of normal operations, we will wrap through at least the full eight windows of the register file at least once per second. (Note that we do not use an FPU, so we have no FP registers.) y

HinzeSPP/FIELDS iCDR – TDS FSW FIELDS Flight Software Level 4 Requirements, Part 1 24

HinzeSPP/FIELDS iCDR – TDS FSW FIELDS Flight Software Level 4 Requirements, Part 2 25

HinzeSPP/FIELDS iCDR – TDS FSW TDS Flight Software Level 4 Requirements 26

HinzeSPP/FIELDS iCDR – TDS FSW System Manager Subsystem Level 5 Requirements 27

HinzeSPP/FIELDS iCDR – TDS FSW Spacecraft Interface Subsystem Level 5 Requirements 28

HinzeSPP/FIELDS iCDR – TDS FSW DCB Interface Subsystem Level 5 Requirements 29

HinzeSPP/FIELDS iCDR – TDS FSW MAGi Interface Subsystem Level 5 Requirements 30

HinzeSPP/FIELDS iCDR – TDS FSW SWEAP Interface Subsystem Level 5 Requirements 31

HinzeSPP/FIELDS iCDR – TDS FSW AEB2 Interface Subsystem Level 5 Requirements 32

HinzeSPP/FIELDS iCDR – TDS FSW LNPS2 Interface Subsystem Level 5 Requirements 33

HinzeSPP/FIELDS iCDR – TDS FSW TDS Acquisition Subsystem Level 5 Requirements 34

HinzeSPP/FIELDS iCDR – TDS FSW Housekeeping Subsystem Level 5 Requirements 35

HinzeSPP/FIELDS iCDR – TDS FSW Instrument Status Reporting Subsystem Level 5 Requirements 36

HinzeSPP/FIELDS iCDR – TDS FSW Telemetry Manager Subsystem Level 5 Requirements 37

HinzeSPP/FIELDS iCDR – TDS FSW Command Manager Subsystem Level 5 Requirements 38

HinzeSPP/FIELDS iCDR – TDS FSW Real-Time Clock Subsystem Level 5 Requirements 39