Problem with SMAC 4.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with SMAC 4.1

1,827 Views
martyseb63
Contributor I
Hello I currently work on a MC9S08GT60 and with SMAC 4.1 to communicate with zigbee. To develop, I use codewarrior Special Edition. I have a problem when I want to send a packet. In MCPSDataRequest(), gu8RTxMode is set to TX_MODE. After there is a loop : while (gu8RTxMode != IDLE_MODE) In my program, the loop don't stop. I want to know how gu8RTxMode can be set to IDLE_MODE alone. The problem may comes from the librairie : I'm using SMAC_13192evb_4_1a.lib which correspond to my zigbee's module (mc13192). Can you help me if you have an idea. Thank
Labels (1)
0 Kudos
1 Reply

347 Views
alex_spotw
Contributor III
Hi:

Is your external interrupt set up correctly, both in HW and SW? The Mc13192 uses the external interrupt pin to indicate the GT60 to change modes. If the interrupt is not recognized, or clear, or never arrives, then the SMAC won't change mode.

There are also some issues with reentrancy of the interrupt code in the SMAC, and you might need to check the actual SMAC code and see if your code is not breaking something in the SMAC (variables, etc)

Regards,

Alex
0 Kudos