element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Internet of Things
  • Technologies
  • More
Internet of Things
Forum CC3200: Interrupt GPIO Pin in TI-RTOS HWI CONTEXT is not working.
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Internet of Things requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 447 subscribers
  • Views 505 views
  • Users 0 members are here
  • cc3200
  • hwi
  • ti-rtos
Related

CC3200: Interrupt GPIO Pin in TI-RTOS HWI CONTEXT is not working.

guntram
guntram over 7 years ago

I want to create Hwi, and toggle LED by button SW3 switch, in Hwi context. But the interrupt from SW3 is not responding, no blinking LED.

 

Know anyone where the error is and has someone an example that works?

 

Enable interrupt or interrupt “pin number” might be the problem.

If I use callbacks, everything works (for example I adapt gpiointerrupt_CC3200).

 

I use following code:
My function:
////////////////////////

void gpioHWIFxn3(void)

{

    GPIO_toggle(Board_LED1);                       // LED D6 yellow

}


Code should be executed in HWI CONTEXT

So I enabled Hwi MODULE in cfg file
instance -> add -> hwi0
that calls
gpioHWIFxn3() function, interrupt number 17 (SW3, GPIO PortA1? )

MaskingOption_?

//////////////////////////

image

 

My main(),

adapt gpiointerrupt_CC3200 from “Project examples – Wireless Connectivity MCU – Driver Examples – GPIO _ Interrupt”

When I use callbacks, everything works correctly, that means pinmux is ok.

 

int main(void)

{

    /* Call board init functions */

    Board_initGeneral();

    Board_initGPIO();

    Board_initUART();

 

    /* Turn on user LED */

    GPIO_write(Board_LED0, Board_LED_ON);

 

    System_printf("Starting the GPIO Interrupt example\nSystem provider is set"

                  " to SysMin. Halt the target to view any SysMin contents in"

                  " ROV.\n");

    /* SysMin will only print to the console when you call flush or exit */

    System_flush();

 

    /* install Button callback */

    GPIO_setCallback(Board_BUTTON2, gpioButtonFxn0);             //SW2, LED red

 

    /* Enable interrupts */

    GPIO_enableInt(Board_BUTTON2);

 

    /*

     *  If more than one input pin is available for your device, interrupts

     *  will be enabled on Board_BUTTON1.

     */

//    if (Board_BUTTON0 != Board_BUTTON1) {

        /* install Button callback */

// GPIO_setCallback(Board_BUTTON3, gpioButtonFxn1);

// GPIO_enableInt(Board_BUTTON3);

//    }

 

    /* Start BIOS */

    BIOS_start();

 

    return (0);

}

 

In other forums, I found the same problem but never a complete solution.

Anyone have a simple working example for me?


See my problem thank you for that.


  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube