Connecting ATREB215 Xpro to SAM4S Xpro EXT2 port

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I have the Chat example application working on a SAM4S Xpro with an ATREB215 Xpro connected to the SAM4S's EXT1 header.  I'd like to connect the ATERB215 to the SAM4S's EXT2 header.  It seems like it should be a pretty simple task.  I made changes to the pal_config.h file, changing the PIOs (for Reset, IRQ, SPI and LED pins) to those found on the EXT2 port, but I can't get it to work.  It appears to not be able to read/write the transceiver, so trx_reset() fails when it tries to read the transceiver state because it reads it as something other than RF_TRXOFF.  Here are the PIO pins I am using:

 

PC19 --> RSTN

PC26 <-- IRQ

PA12 <-- MISO

PA13 --> MOSI

PA9  --> SELN

PA14 --> SCLK

PC24 <-- LED_Power

PC25 <-- LED_TXRX

 

and I #define TRX_IRQ_USES_PIOC and set TRX_SPI_NPCS to 1.  Everything else is pretty straight forward.

 

Anybody ever try connecting the ATREB215 Xpro to the EXT2 header?  Any ideas on what can be wrong?  I can post code if needed, but it is pretty simple.

 

Thanks!