Hello,
I am now using the rf4ce protocol based on jn5168,In order to enhance signal quality, I want to be able to use JN5168's Boost mode. Here I refer to Boosting Wireless range for JN5168 modules to set it up,
#define WRITE_REG32(A, B) *(volatile uint32 *)(A) = (B)
#define READ_REG32(A) *(volatile uint32 *)(A)
PRIVATE void vApplyBoostMode(void )
{
WRITE_REG32(0x2001e28,0x3);
WRITE_REG32(0x2001e68,0x280000);
WRITE_REG32(0x2001e70,0x46ca10);
uint32 u32Temp = READ_REG32(0x2001e54);
u32Temp = (u32Temp | 0x700);
WRITE_REG32(0x2001e54,u32Temp);
}
But I find that the function stays at the first command when it is executed and cannot be executed later.So I want to know if there's any other way to turn on JN5168's boost mode.
The sdk is JN-SW-4060
The work is JN-AN-1200-ZigBee-RF4CE-Application-Template