新手入门
- 积分
- 12
- 金钱
- 12
- 注册时间
- 2019-5-8
- 在线时间
- 4 小时
|
1金钱
minifly买来吃灰一段时间后 开机 显示NRF24L01 CHECK FAIL! 仿真发现 程序 死在
radiolinkInit(); /*无线通信初始化*/
-->
/*无线配置初始化(地址、通道、速率)*/
static void radioInit(void)
{
uint64_t addr = (uint64_t)configParam.radio.addressHigh<<32 | configParam.radio.addressLow;
if(nrf_check() == SUCCESS)
{
nrfInit(PTX_MODE);
nrf_setIterruptCallback(nrf_interruptCallback);
}
else
{
oledInit();
oled_showString(0,0,(u8*)"NRF24L01 CHECK FAIL !",6,12);
oled_refreshGram();
while(1);
}
nrf_setAddress(addr);
nrf_setChannel(configParam.radio.channel);
nrf_setDataRate(configParam.radio.dataRate);
}
尝试过重新刷 程序 不行 。 换 NRF24L01 不行(原芯片是NRF24L01 + 不知道两个有啥区别)
求大神 给出 解决 方法
|
|