nrf51822 transmitter -> nrf52832 receiver But only the first few bytes can be received!

Hello
Trouble you again
I can receive the data in the test now!
But only the first few bytes can be received!

#define PACKET_BASE_ADDRESS_LENGTH (4UL) //!< Packet base address length field size in bytes
#define PACKET_STATIC_LENGTH (10UL) //!< Packet static length in bytes
//#define PACKET_STATIC_LENGTH (200UL) // TEST Can only receive 50 bytes
#define PACKET_PAYLOAD_MAXSIZE (PACKET_STATIC_LENGTH) //!< Packet payload maximum size in bytes


//====================transmitter=======================//
uint32_t packet[PACKET_PAYLOAD_MAXSIZE]={0};

use nrf51822 transmitter

{
uint32_t Count=0;
for(Count=0;Count < 10 ; Count++)
{
packet[Count] = Count+1;
}

}
packet
[ 0 ] | 1
[ 1 ] | 2
[ 2 ] | 3
[ 3 ] | 4
[ 4 ] | 5
[ 5 ] | 6
[ 6 ] | 7
[ 7 ] | 8
[ 8 ] | 9
[ 9 ] | 10

//====================receiver=======================//
uint32_t packet[Count]={0};
but
nrf52832 receiver
{
packet
[ 0 ] 1
[ 1 ] 2
[ 2 ] 3
[ 3 ] 0
[ 4 ] 0
[ 5 ] 0
[ 6 ] 0
[ 7 ] 0
[ 8 ] 0
[ 9 ] 0

}

Parents Reply Children
No Data
Related