Tool/software: Code Composer Studio
Hi,
I would like to use LPM3 with port1/2 interrupts in MSP430F5529 LP together with 1120-1190 Booster pack using TI Sigfox Demo project for Boosterpack. I want MCU to go to lpm3 and only wake up with button Launchpad P1.1 and P2.1 interrupts and send Sigfox frames using library functions.
I have imported the project I received from Sigfox for the LP and tried the AT_command & button press polling demos, they are working properly. I can send and receive sigfox messages successfully.
#ifndef BSP_KEY_EXCLUDE /**************************************************************************//** * @addtogroup BSP * @{ ******************************************************************************/ //#define BSP_KEY_NO_ISR /****************************************************************************** * INCLUDES */ #include "bsp.h" #include "bsp_key.h" //#include "ti_sigfox_library\*" //#include "sigfox_api.h" #ifndef BSP_KEY_NO_ISR #include "io_pin_int.h" // Access to GPIO pin specific ISRs #endif // BSP_KEY_NO_ISR #include "driverlib.h" //#include "hal_digio2.h" /****************************************************************************** * DEFINES */
You also need to call bspKeyInit with BSP_KEY_MODE_ISR argument:
bspKeyInit(BSP_KEY_MODE_ISR);
When I did those changes project did not compile because io_pin_int.h was missing from project, as you can see above it is included if BSP_KEY_NO_ISR is not defined. It looks like the interrupt option is given in code but this project was not tested properly for interrupts.
<Linking>
error #10056: symbol "__TI_int47" redefined: first defined in "./bsp/io_pin_int.obj"; redefined in "../ti_sigfox_library/TI_SIGFOX_lib_FCC.lib<hal_digio2.obj>"
error #10056: symbol "__TI_int42" redefined: first defined in "./bsp/io_pin_int.obj"; redefined in "../ti_sigfox_library/TI_SIGFOX_lib_FCC.lib<hal_digio2.obj>"
error #10010: errors encountered during linking; "TI_SIGFOX_FCC_ccs_project.out" not built
Thanks a lot for help