930电子网

 找回密码
 立即注册
艾克姆科技推出最新产品STC32G12K128开发板
查看: 23604|回复: 6

Problem of nRF52840

[复制链接]

1

主题

4

帖子

45

积分

新手上路

Rank: 1

积分
45
发表于 2019-9-8 20:51:12 | 显示全部楼层 |阅读模式
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'H:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'IK-52840DK'
compiling main.c...
..\..\app\main.c(4): error:  #5: cannot open source input file "board.h": No such file or directory
  #include "board.h"
..\..\app\main.c: 0 warnings, 1 error
compiling app_error.c...
compiling boards.c...
compiling nrf_assert.c...
compiling app_util_platform.c...
compiling app_error_handler_keil.c...
assembling arm_startup_nrf52840.s...
compiling app_error_weak.c...
compiling nrf_strerror.c...
compiling system_nrf52840.c...
RTE\Device\nRF52840_xxAA\system_nrf52840.c(118): error:  #136: struct "<unnamed>"  has no field "MAXPACKETSIZE"
         
RF_CCM->MAXPACKETSIZE = 0xFBul;
RTE\Device\nRF52840_xxAA\system_nrf52840.c: 0 warnings, 1 error
".\Objects\ble_qrc.axf" - 2 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:05

I have followed your guidebook but it generate these errors.
回复

使用道具 举报

52

主题

354

帖子

6545

积分

版主

Rank: 7Rank: 7Rank: 7

积分
6545
发表于 2019-9-9 09:06:46 | 显示全部楼层
检查C/C++选项中的全局宏定义。可以从SDK中52840的例子里面拷贝过来替换自己工程中的定义,然后再编译。
回复 支持 反对

使用道具 举报

1

主题

4

帖子

45

积分

新手上路

Rank: 1

积分
45
 楼主| 发表于 2019-9-9 09:32:11 | 显示全部楼层
强光手电 发表于 2019-9-9 09:06
检查C/C++选项中的全局宏定义。可以从SDK中52840的例子里面拷贝过来替换自己工程中的定义,然后再编译。

But I didn't modify the document by your SDK components
https://pan.baidu.com/s/1MXCb4ng-2ybDZf6YNqlLAw
回复 支持 反对

使用道具 举报

52

主题

354

帖子

6545

积分

版主

Rank: 7Rank: 7Rank: 7

积分
6545
发表于 2019-9-9 15:13:37 | 显示全部楼层
DevelopBLE 发表于 2019-9-9 09:32
But I didn't modify the document by your SDK components
https://pan.baidu.com/s/1MXCb4ng-2ybDZf6Y ...

这个工程里面有2个错误:
1:全局宏定义错误,全局宏定义应设置为:BOARD_PCA10056 CONFIG_GPIO_AS_PINRESET FLOAT_ABI_HARD NRF52840_XXAA SWI_DISABLE0 __HEAP_SIZE=8192 __STACK_SIZE=8192

2:main.c文件中引用的头文件名字写错了,应将#include "board.h"改为#include "boards.h"
回复 支持 反对

使用道具 举报

1

主题

4

帖子

45

积分

新手上路

Rank: 1

积分
45
 楼主| 发表于 2019-9-9 17:56:32 | 显示全部楼层
I have tried the another example but it generate these errors:
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'H:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'nrf52840_xxaa_s140'
compiling main.c...
compiling cli_m.c...
compiling ble_m.c...
compiling nfc_m.c...
compiling nfc_central_m.c...
compiling nfc_pair_lib_m.c...
compiling boards.c...
compiling pm_m.c...
compiling bsp.c...
compiling bsp_nfc.c...
compiling bsp_btn_ble.c...
compiling auth_status_tracker.c...
compiling ble_advdata.c...
compiling adafruit_pn532.c...
compiling ble_advertising.c...
compiling ble_conn_params.c...
compiling ble_conn_state.c...
compiling ble_srv_common.c...
compiling gatts_cache_manager.c...
compiling gatt_cache_manager.c...
compiling id_manager.c...
compiling nrf_ble_gatt.c...
compiling nrf_ble_scan.c...
compiling nrf_ble_lesc.c...
compiling peer_database.c...
compiling peer_data_storage.c...
compiling peer_id.c...
compiling peer_manager_handler.c...
compiling pm_buffer.c...
compiling peer_manager.c...
compiling security_dispatcher.c...
compiling ble_bas.c...
compiling security_manager.c...
compiling nrf_mpu.c...
compiling nrf_stack_guard.c...
compiling nrf_crypto_aead.c...
compiling nrf_crypto_aes.c...
compiling nrf_crypto_aes_shared.c...
compiling nrf_crypto_ecc.c...
compiling nrf_crypto_ecdsa.c...
compiling nrf_crypto_ecdh.c...
compiling nrf_crypto_eddsa.c...
compiling nrf_crypto_error.c...
compiling nrf_crypto_hash.c...
compiling nrf_crypto_hkdf.c...
compiling nrf_crypto_hmac.c...
compiling nrf_crypto_init.c...
compiling nrf_crypto_rng.c...
compiling nrf_crypto_shared.c...
compiling cc310_backend_aes.c...
compiling cc310_backend_aes_aead.c...
compiling cc310_backend_chacha_poly_aead.c...
compiling cc310_backend_ecc.c...
compiling cc310_backend_ecdsa.c...
compiling cc310_backend_ecdh.c...
compiling cc310_backend_eddsa.c...
compiling cc310_backend_hmac.c...
compiling cc310_backend_hash.c...
compiling cc310_backend_init.c...
compiling cc310_backend_mutex.c...
compiling cc310_backend_rng.c...
compiling oberon_backend_ecc.c...
compiling cc310_backend_shared.c...
compiling oberon_backend_ecdsa.c...
compiling oberon_backend_ecdh.c...
compiling oberon_backend_eddsa.c...
compiling oberon_backend_chacha_poly_aead.c...
compiling oberon_backend_hmac.c...
compiling nrf_hw_backend_init.c...
compiling oberon_backend_hash.c...
compiling micro_ecc_backend_ecc.c...
compiling nrf_hw_backend_rng.c...
compiling nrf_hw_backend_rng_mbedtls.c...
compiling micro_ecc_backend_ecdh.c...
compiling micro_ecc_backend_ecdsa.c...
compiling nrf_drv_twi.c...
compiling nrf_drv_rng.c...
compiling nrf_drv_clock.c...
compiling nrf_drv_uart.c...
compiling nrfx_clock.c...
compiling nrfx_gpiote.c...
compiling nrfx_prs.c...
compiling nrfx_power_clock.c...
compiling nrfx_rng.c...
compiling nrfx_twim.c...
compiling nrfx_twi.c...
compiling nrfx_uart.c...
compiling app_button.c...
compiling nrfx_uarte.c...
compiling app_error.c...
compiling app_error_handler_keil.c...
compiling app_error_weak.c...
compiling app_util_platform.c...
compiling app_scheduler.c...
compiling app_timer.c...
compiling fnmatch.c...
compiling crc16.c...
compiling fds.c...
compiling hardfault_handler_keil.c...
..\..\components\libraries\hardfault\nrf52\handler\hardfault_handler_keil.c(55): error: A1944E: Literal pool entries cannot be generated in execute-only sections
..\..\components\libraries\hardfault\nrf52\handler\hardfault_handler_keil.c(67): error: A1944E: Literal pool entries cannot be generated in execute-only sections
..\..\components\libraries\hardfault\nrf52\handler\hardfault_handler_keil.c(68): error: A1944E: Literal pool entries cannot be generated in execute-only sections
compiling hardfault_implementation.c...
compiling mem_manager.c...
compiling nrf_assert.c...
compiling nrf_atflags.c...
compiling nrf_atfifo.c...
compiling nrf_atomic.c...
compiling nrf_balloc.c...
compiling nrf_cli_rtt.c...
compiling nrf_cli.c...
compiling nrf_fprintf.c...
compiling nrf_cli_uart.c...
compiling nrf_fprintf_format.c...
compiling nrf_fstorage.c...
compiling nrf_fstorage_sd.c...
compiling nrf_memobj.c...
compiling nrf_pwr_mgmt.c...
compiling nrf_queue.c...
compiling nrf_ringbuf.c...
compiling nrf_section_iter.c...
compiling nrf_strerror.c...
compiling nrf_log_backend_rtt.c...
compiling nrf_log_default_backends.c...
compiling nrf_log_backend_serial.c...
compiling nrf_log_backend_uart.c...
compiling nrf_log_str_formatter.c...
compiling nrf_log_frontend.c...
compiling hal_nfc_t2t.c...
compiling nfc_ac_rec.c...
compiling nfc_ble_oob_advdata.c...
compiling nfc_ble_oob_advdata_parser.c...
compiling nfc_ble_pair_common.c...
compiling nfc_ble_pair_msg.c...
compiling nfc_ep_oob_rec.c...
compiling nfc_hs_rec.c...
compiling nfc_le_oob_rec.c...
compiling nfc_le_oob_rec_parser.c...
compiling nfc_ndef_msg.c...
compiling nfc_ndef_msg_parser_local.c...
compiling nfc_ndef_msg_parser.c...
compiling nfc_ndef_record.c...
compiling nfc_ndef_record_parser.c...
compiling nfc_t2t_parser.c...
compiling SEGGER_RTT.c...
compiling SEGGER_RTT_printf.c...
compiling SEGGER_RTT_Syscalls_KEIL.c...
compiling nrf_sdh.c...
compiling aes.c...
compiling ctr_drbg.c...
assembling arm_startup_nrf52840.s...
compiling nrf_sdh_soc.c...
compiling nrf_sdh_ble.c...
compiling system_nrf52840.c...
".\_build\nrf52840_xxaa_s140.axf" - 3 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:01:32

https://pan.baidu.com/s/1Zd1E80uhj5pRsb0usWaWMQ
回复 支持 反对

使用道具 举报

52

主题

354

帖子

6545

积分

版主

Rank: 7Rank: 7Rank: 7

积分
6545
发表于 2019-9-9 20:22:51 | 显示全部楼层
DevelopBLE 发表于 2019-9-9 17:56
I have tried the another example but it generate these errors:

https://pan.baidu.com/s/1Zd1E80uhj ...

网盘没有给提取码!
回复 支持 反对

使用道具 举报

1

主题

4

帖子

45

积分

新手上路

Rank: 1

积分
45
 楼主| 发表于 2019-9-9 21:09:17 | 显示全部楼层
本帖最后由 DevelopBLE 于 2019-9-10 21:24 编辑
强光手电 发表于 2019-9-9 20:22
网盘没有给提取码!

https://pan.baidu.com/s/1EwNYlM0b-dEX68J88FqESA
The redeem code has been cancelled
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|官方淘宝店|930电子网 ( 皖ICP备16000695号-2 )

GMT+8, 2024-11-23 19:16 , Processed in 0.072415 second(s), 22 queries .

快速回复 返回顶部 返回列表