<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Expanding DFU Trigger Library with custom opcode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64855/expanding-dfu-trigger-library-with-custom-opcode</link><description>Hello, 
 We are in the final stages of our product development and we would like to add a feature used during assembly to give some sort of confirmation that everything is working OK on the board. Via USB we would like to report a single number value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2020 11:48:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64855/expanding-dfu-trigger-library-with-custom-opcode" /><item><title>RE: Expanding DFU Trigger Library with custom opcode.</title><link>https://devzone.nordicsemi.com/thread/264704?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 11:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a5a0cc-8731-4f37-8ee5-330e6bac1918</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I took a brief look at this, I have not tested it, but I believe you would start by expanding app_usbd_nrf_dfu_trigger_req_t in app_usbd_nrf_dfu_trigger_types.h with the new opcode, e.g. APP_USBD_NRF_DFU_TRIGGER_REQ_STATUS_REPORT&lt;br /&gt;Then in app_usbd_nrf_dfu_trigger_inst_t in app_usbd_nrf_dfu_trigger_internal.h, add a pointer, similar to p_sem_ver, for the status report.&lt;br /&gt;The in setup_req_class_in, you would need to add APP_USBD_NRF_DFU_TRIGGER_REQ_STATUS_REPORT in the switch case, and respond with app_usbd_core_setup_rsp() with the status report.&lt;/p&gt;
&lt;p&gt;As you mentioned, there might be alternative approaches as well, depending on your assembly line and the product itself, e.g. indicate that everything is OK with a LED on the product.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>