<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis Software Development KitのトピックInstalling a SVC handler</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Installing-a-SVC-handler/m-p/327377#M52</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using KSDK 1.1.0 and I'm trying to use my custom defined SVC handler.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the start up file the SVC_Handler is defined as weak and defining a C function with the same name should overwrite it. This seems not to be the case as I'm ending in the defaultISR handler when invoking a svc instruction.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to install a SVC handler ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 12:38:57 GMT</pubDate>
    <dc:creator>MarkoPanger</dc:creator>
    <dc:date>2015-01-28T12:38:57Z</dc:date>
    <item>
      <title>Installing a SVC handler</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Installing-a-SVC-handler/m-p/327377#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using KSDK 1.1.0 and I'm trying to use my custom defined SVC handler.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the start up file the SVC_Handler is defined as weak and defining a C function with the same name should overwrite it. This seems not to be the case as I'm ending in the defaultISR handler when invoking a svc instruction.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to install a SVC handler ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 12:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Installing-a-SVC-handler/m-p/327377#M52</guid>
      <dc:creator>MarkoPanger</dc:creator>
      <dc:date>2015-01-28T12:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Installing a SVC handler</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Installing-a-SVC-handler/m-p/327378#M53</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Marko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can define the SVC_Handle() api function directly in the file with main() function, after you define the SVC_Handle() api function, the weak default ISR def_irq_handler will be replaced automatically.&lt;/P&gt;&lt;P&gt;I tried to call the SVC, I can enter the SVC_Handle() ISR.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;#define SVC&lt;/P&gt;&lt;P&gt;int main (void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // RX buffers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! @param receiveBuff Buffer used to hold received data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t receiveBuff;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Initialize standard SDK demo application pins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hardware_init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Call this function to initialize the console UART. This function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // enables the use of STDIO functions (printf, scanf, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbg_uart_init();&lt;/P&gt;&lt;P&gt;#ifdef SVC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SVC_Handler();&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Print the initial banner&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF("\r\nHello World!\n\n\r");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifdef SVC&lt;/P&gt;&lt;P&gt;//Rong write&lt;/P&gt;&lt;P&gt;void SVCCall(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm("SVC #2");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//Rong write&lt;/P&gt;&lt;P&gt;void&amp;nbsp; SVC_Handler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm("nop");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 02:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Installing-a-SVC-handler/m-p/327378#M53</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2015-01-29T02:41:48Z</dc:date>
    </item>
  </channel>
</rss>

