MPLAB® AI Coding Assistant Using Agent Mode - Part 1 | Videos
MPLAB® AI Coding Assistant Using Agent Mode - Part 1
In this video, we introduce the MPLAB AI Coding Assistant's Agent Mode, which includes the ability to use tools, e.g., to be able to edit- or create-files. To find an example context, we ask the agent to “Find example projects for the PIC32CM MC family of microcontrollers, which use the ADC.” The MPLAB AI Coding Assistant then uses the Mchp-docs get_example_projects tool to search MPLAB Discover, directly from the chat window.
We then import a project, which includes both ADC and I2C peripheral functionality. Next, we use the AI Agent to modify the project from using a printf, to instead use the Data Streamer Protocol, for MPLAB Data Visualizer, so that we can graphically plot both the I2C temperature sensor and the analog light sensor.
Further development on this use case continues in Part 2:
https://youtu.be/9GG_3QdLJxk
🔗 Resources:
MPLAB® DISCOVER
MPLAB® Tools for VS Code® | Microchip Technology
MPLAB® Data Visualizer | Microchip Technology
📌 Key Timestamps:
00:00 - Introduction to MPLAB AI Coding Assistant and Agent Mode
00:21 - Agent Mode: Tools for editing/creating files vs. Chat Mode
00:43 - Exploring documentation tools and finding a PIC32CM ADC/I2C project
01:18 - Using AI to narrow down example projects with ADC and I2C
01:30 - Importing project from Microchip Discover into VS Code
02:25 - Setting up workspace and importing MPLAB X project
02:56 - AI query: Summarizing main.c functionality (I2C, ADC, UART)
03:24 - Identifying UART (SERCOM0) baud rate (9600)
03:59 - Building and running the project with MPLAB debugger
04:29 - Verifying output with MPLAB Data Visualizer
04:56 - AI task: Replacing printf with Data Streamer protocol (0x03, 0xFC)
05:43 - Applying AI-generated changes for Data Streamer
06:12 - Creating a program-only launch configuration
06:50 - AI query: Explaining launch vs. attach debug options
07:44 - Running Data Streamer and plotting temperature/light data
08:38 - Analyzing performance: Excessive frame rate in ADC polling
09:11 - Planning SysTick timer to reduce streaming sensitivity
#Microchip #MCC #Harmony #VSCode #AICoding #EmbeddedProgramming
To view this video, please click manage cookies below and accept functional cookies.
{"SalesForceSecurePath":"https://microchip.my.salesforce-scrt.com","EmbeddedServiceName":"Messaging_For_Microchip","SalesForcePath":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924","AgentAvailableHeader":"No problem. Chat with our engineering experts or schedule a call that's convenient for you.","ScheduleCallUrl":"https://microchip.my.site.com/schedulemeetingportal/s/","SalesforceOrgId":"00Do0000000KAkK","JsUrl":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924/assets/js/bootstrap.min.js"}