Microchip Technology Incorporated · NASDAQ:MCHP
Microchip Technology — Technical Presentation (March 2024)
47 slides from Microchip Technology's technical presentation, March 2024
Slide 1: First Thursdays
First Thursdays May 2 - Webinar 1: Discover Renode for PolarFire® SoC Design and Debug June 6 - Webinar 2: How to Get Started with Renode for PolarFire SoC July 4 - Webinar 3: Learn to Debug a Bare-Metal PolarFire SoC Application with Renode Aug. 1 - Webinar 4: Tips and Tricks for Even Easier PolarF
Slide 2: Second Thursdays
Second Thursdays Jan. 9 - Webinar 9: Run Linux on Renode (PolarFire SoC Model as a Quad-core SMP) – this is not a Linux / Buildroot tutorial Feb. 13 - Webinar 10: Build applications for Linux on PolarFire SoC Mar. 12 - Webinar 11: Introduction to PolarFire SoC MSS Configuration and Software Flow Apr
Slide 3: Supporting Content
Supporting Content www.microsemi.com/Mi-V “Renode Webinar Series” 3
Slide 4: Introduction
Introduction • Where are models in Renode • Ways to add models • How to add a Just In Time (JIT) compiled model • Debugging a model using MonoDevelop • Debugging a model using logs 4
Slide 5: But first!
But first! • Have you watched our supporting video? • A supporting video is available in the “Renode Webinar Series” page of the Mi-V ecosystem that outlines the set up steps required to use the tools shown in the webinar 5
Slide 6: But first!
AN MICROCHIP But first! x R=ENOD= =
Slide 7: Where are models in Renode
S MICROCHIP Where are models in Renode
Slide 8: Where are models in Renode
Where are models in Renode ⚫ Models can be added to Renode before the software is compiled ⚫ They are then built with the software ⚫ The software source code is available on GitHub ⚫ https://github.com/renode 8
Slide 9: Where are models in Renode
Where are models in Renode Renode Extensions Peripherals Peripherals 9
Slide 10: Where are models in Renode
> san Where are models in Renode @ Peripherals Peripherals/CAN/PSE_CAN.cs MonoDevelop Ble Edt View Search Project Build Bun Toole Window Help > node v Debug v Defautt o/ MonoDevelop (Solution < > PSE_CAN.cs > [Bl nerode A] Ns select > Cores 2 Extensions 4 * b (9) Extensions , 1 rth Db © LIVMDisassem
Slide 11: Where are models in Renode
Where are models in Renode ADD UART to the system Connecting a peripheral: It depends on the model! [name]: [namespace].[name] @ sysbus [address] [parameters0] [constructors0] etc. Parameters affect the peripherals operation Some are optional, depending on default values Constructors connect parts o
Slide 12: Where are models in Renode
S MICROCHIP Where are models in Renode @ Peripherals Peripherals/UART/NS16550.cs MonoDevelop File Edt View Search Project Build Run Fook Window Help mmuart@: UART.NS1655@ @ sysbus 0x20000000 wideRegisters: true IRQ -> plic@90 IDoublewordPeripheral, IUART, IknownSize public NSL6S50( Machine machine,
Slide 13: Where are models in Renode
Where are models in Renode Default value No default value – must be provided Overwritten Constructor 13
Slide 14: Ways To Add models
S MICROCHIP Ways To Add models
Slide 15: Ways To Add models
Ways To Add models Pre-compiled JiT (Just in Time compiled) Built in with Renode Standalone file separate to Renode Run faster Can be modified without having to re- build Can’t be edited without rebuilding Run slower than pre-compiled Renode Models included with Renode are Develop models using JiT a
Slide 16: Ways To Add models
Ways To Add models Pre-compiled JiT 16
Slide 17: How to add a Just In Time (JIT) compiled model
How to add a Just In Time (JIT) compiled model
Slide 18: How to add a Just In Time (JIT) compiled model
How to add a Just In Time (JIT) compiled model ⚫ When to use @ in Renode: ⚫ If using a relative or full path: ⚫ E.g “include @../../../scripts/single…….” ⚫ E.g “include @C:/Microsemi/SoftConsole_v6.0/….” ⚫ Not needed if using CWD: ⚫ E.g “include $CWD/../scripts/single….” 18
Slide 19: How to add a Just In Time (JIT) compiled model
How to add a Just In Time (JIT) compiled model • Include the C# file for the model • include @[path_to_file] • Add the model to the system • machine LoadPlatformDescriptionFromString “[sysbus_name]: [class].[name] @ sysbus [address]” [sysbus_name]: [namespace].[name] @ sysbus [address] 19
Slide 20: How to add a Just In Time (JIT) compiled model
How to add a Just In Time (JIT) compiled model ⚫ Commands used: 1. include $CWD/../My_models/HUGH_CoreTimer.cs 2. machine LoadPlatformDescriptionFromString “Hugh_timer: Timers.Hugh_CoreTimer @sysbus 0x70000000” 20
Slide 21: How to add a Just In Time (JIT) compiled model
How to add a Just In Time (JIT) compiled model Alternatively add commands to the launch script 21
Slide 22: How to add a Just In Time (JIT) compiled model
How to add a Just In Time (JIT) compiled model Alternatively add commands to the launch script 22
Slide 23: MonoDevelop
Debugging a model using MonoDevelop
Slide 24: MonoDevelop
Debugging a model using MonoDevelop ⚫ Two options for debugging a model: 1. Build Renode from source ⚫ Full visibility of variables ⚫ Can suspend execution and debug 2. Use logs ⚫ Can set log levels for peripherals and use the logs to debug 24
Slide 25: MonoDevelop
Debugging a model using MonoDevelop 1. Follow the steps in the supporting video to build Renode from source (build v1.7.1 to match SC 6.0) 2. Launch Renode from your C# IDE (e.g monodevelop) and load the platform 3. Start the GDB server for debugging 4. Run the “attach to renode” debug session in So
Slide 26: MonoDevelop
Debugging a model using MonoDevelop Click here to build and run 26
Slide 27: MonoDevelop
Debugging a model using MonoDevelop Paths to launch scripts: Mi-V system: $CWD/../../../scripts/single-node/miv.resc PolarFire system: $CWD/../../../scripts/single-node/polarfire.resc 27
Slide 28: MonoDevelop
Debugging a model using MonoDevelop Start the GDB server for the machine 28
Slide 29: MonoDevelop
Debugging a model using MonoDevelop Use the “Attach- to-Renode” debug session to connect to Renode Do not use the launch group – Renode is already running! 29
Slide 30: MonoDevelop
Debugging a model using MonoDevelop Click on the left of a line to set a breakpoint 30
Slide 31: MonoDevelop
Debugging a model using MonoDevelop Run software that uses the model so it reaches the breakpoint 31
Slide 32: MonoDevelop
Debugging a model using MonoDevelop Resume Step Step Step over into up 32
Slide 33: MonoDevelop
Debugging a model using MonoDevelop Custom breakpoints can be created to only halt during certain conditions Right click on the left and select “New Breakpoint…” 33
Slide 34: MonoDevelop
Debugging a model using MonoDevelop Check variable values etc at the bottom 34
Slide 35: MonoDevelop
Debugging a model using MonoDevelop Check variable values etc at the bottom 35
Slide 36: logs
S MICROCHIP Debugging a model using logs
Slide 37: logs
Debugging a model using logs • There are several logging levels available: • -1 Noisy • 0 Debug • 1 Info • 2 Warning • 3 Error • Each can capture different levels of data • Peripherals will produce a different level of log data depending on what has caused the log (e.g. uart print vs fatal error) 37
Slide 38: logs
Debugging a model using logs • Logging (and other commands) can be set up automatically by passing the commands during start up or including them in the launch script • E.G (pse-blinky debug configuration): • monitor sysbus LogPeripheralAccess sysbus.gpio1 • monitor logLevel -1 sysbus.gpio1 • E.G (p
Slide 39: logs
Debugging a model using logs Log Level Log Peripheral Access Produces different levels of content Creates a log entry every time the CPU depending on log level selected tries to access a peripheral Logging commands included in the Can be set individually per peripheral peripheral model Variable valu
Slide 40: logs
Debugging a model using logs Log level 3 (error) Log level 2 (warning) Log level 1 (info) Log level 0 (Debug) 40
Slide 41: logs
Debugging a model using logs E.G you could add the model as JIT and add more logging as needed to the file and re-launch Renode to add the increased logging 41
Slide 42: logs
Debugging a model using logs Log level 0 (Debug) + LogPeripheralAccess 42
Slide 43: Summary
Summary • Where are models in Renode • Ways to add models • How to add a Just In Time (JIT) compiled model • Debugging a model 43
Slide 44: First Thursdays
First Thursdays May 2 - Webinar 1: Discover Renode for PolarFire® SoC Design and Debug June 6 - Webinar 2: How to Get Started with Renode for PolarFire SoC July 4 - Webinar 3: Learn to Debug a Bare-Metal PolarFire SoC Application with Renode Aug. 1 - Webinar 4: Tips and Tricks for Even Easier PolarF
Slide 45: Second Thursdays
Second Thursdays Jan. 9 - Webinar 9: Run Linux on Renode (PolarFire SoC Model as a Quad-core SMP) – this is not a Linux / Buildroot tutorial Feb. 13 - Webinar 10: Build applications for Linux on PolarFire SoC Mar. 12 - Webinar 11: Introduction to PolarFire SoC MSS Configuration and Software Flow Apr
Slide 46: Supporting Content
Supporting Content www.microsemi.com/Mi-V “Renode Webinar Series” 46
Slide 47: Thank You
S MICROCHIP Thank You
Microchip Technology — Technical Presentation (March 2024) on 6ix