Modulo 2 and SAM D21 Blink Example - Not Functional


#1

Has anyone attempted to get the afBlink2 example with the Modulo 2 and SAM D21 up and running?

When I try the application I get the following data sent out over the UART:

Hello World!
before setup
Hello World
Using D21 - Resetting Modulo
before loop
mcuISR
STATE_STATUS_SYNC
STATE_STATUS_SYNC
mcuISR
STATE_STATUS_ACK
mcuISR
STATE_RECV_BYTES
mcuISR
mcuISR
STATE_CMD_COMPLETE
mcuISR
STATE_IDLE

This leads me to believe that the communication between the Modulo 2 board and the SAM D21 was initialized properly. However, when I try to turn Blink or LED on within the mobile app I get no response. The button on the app briefly lights up, but the status doesn’t change from ‘On’ to ‘Off’ for either property.


#2

Hi Patrick!

Sorry for the delay in replying, we’re just getting back from MASTERs in Phoenix ourselves.

Can you verify which profile you OTAed to your Modulo-2? In the profile folder in the example project, there’s an afBlink profile and an afBlink2 - the first one is for the Modulo-1 developer board (an older model) and the afBlink2 profile is the one for the Modulo-2 board you have. Unfortunately, profiles between the two device types are similar, but incompatible.

It does look like the board is communicating properly, the mcuISR debug statements are printed when the MCU receives an interrupt from the Modulo-2 board (indicating the Modulo-2 has data to present to the MCU).

Can you verify that the Modulo and it’s Xplained adapter board are plugged into the EXT1 connector on the D21 board? I don’t think it should make a difference but experimenting with it a few times it actually seems to make a difference to me.

Cheers,

Joe