TorryLong

博客园 首页 新随笔 联系 订阅 管理

2022年4月11日 #

摘要: (1)nRF5x command line tools包括Jlink驱动以及Nordic自己开发的一些命令行工具,具体包括Jlink驱动,nrfjprog,nrfutil以及mergehex等。 下载链接为:nRF Command Line Tools - Downloads - nordicsem 阅读全文
posted @ 2022-04-11 10:53 TorryLong 阅读(159) 评论(0) 推荐(0) 编辑

2022年4月9日 #

摘要: 私钥生成命令:nrfutil keys generate priv.pem (priv.pem就是私钥)公钥生成命令:nrfutil keys display --key pk --format code priv.pem --out_file dfu_public_key.c (dfu_publi 阅读全文
posted @ 2022-04-09 09:33 TorryLong 阅读(318) 评论(0) 推荐(0) 编辑

2022年4月7日 #

摘要: 使用python制作nRF52832升级包和合成烧录文件,青风开发板的作者已经说得很明白,不过作者使用的python是2.7的,已经很落后了。目前python已经更新到3.10.4了。所以我换了台电脑之后,安装最新的python,然后就一系列错误。错误主要如下: ERROR: Exception:T 阅读全文
posted @ 2022-04-07 10:10 TorryLong 阅读(654) 评论(0) 推荐(0) 编辑

2020年10月14日 #

摘要: void fu_state_machine_init(void) { /* NRF_POWER_RESETREAS_SREQ_MASK JLINK DOWNLOAD / POWER ON can cause this reason */ if(nrf_power_resetreas_get() & 阅读全文
posted @ 2020-10-14 09:16 TorryLong 阅读(1047) 评论(0) 推荐(0) 编辑

2020年9月9日 #

摘要: /* Dummy configuration data. */ static configuration_t m_dummy_cfg = { .config1_on = false, .config2_on = true, .boot_count = 0x0, .device_name = "dum 阅读全文
posted @ 2020-09-09 17:34 TorryLong 阅读(377) 评论(0) 推荐(0) 编辑

2020年9月8日 #

摘要: 在调试nRF52832的uart的过程中,发现调试信息会时不时打印“APP_UART_COMMUNICATION_ERROR”这个错误,看上去似乎毫无规律。查看SDK的相关说明,可以大致知道打印这个的提示的原因是uart硬件接收到了一些错误数据。但是为什么会收到错误数据呢? 经过反复试验,发现只要用 阅读全文
posted @ 2020-09-08 11:33 TorryLong 阅读(1287) 评论(0) 推荐(0) 编辑

2020年6月8日 #

摘要: uint8_t user_heating_algorithmPID(void) { uint32_t temp_1; uint16_t Adcn; nrfx_err_t err_code; HEATING_ENABLE(); nrf_delay_us(1000);//ÑÓʱ1000us=1ms e 阅读全文
posted @ 2020-06-08 19:23 TorryLong 阅读(894) 评论(0) 推荐(0) 编辑

2020年6月5日 #

摘要: 阅读全文
posted @ 2020-06-05 09:34 TorryLong 阅读(688) 评论(0) 推荐(0) 编辑

2020年5月28日 #

摘要: //****读取中间值****// short GetMedianNum(short * bArray, short iFilterLen) { short i,j,bTemp;// 排序循环 for (j = 0; j < iFilterLen - 1; j ++) { for (i = 0; i 阅读全文
posted @ 2020-05-28 14:14 TorryLong 阅读(397) 评论(0) 推荐(0) 编辑

摘要: uint16_t uGetPCB_Temperature(void) { uint16_t x; float Adcn; float k; Adcn = userADC_var.ADCMeasureVals[num_PCB_ADC]; for(x=0;x<sizeof(NTC_PCB_D);x++) 阅读全文
posted @ 2020-05-28 11:59 TorryLong 阅读(685) 评论(0) 推荐(0) 编辑