DA14531- Power profile issue

Hi sir,

i am working on DA14531, after flashing the code into DA14531 then i started checking for power profile using smart snippets toolbar v5.0.24

it detects the device and J-tag, but it won't show the power profile.

what can be the issue behind this problem?

how can solve this issue??

Parents
  • Hi Stanly,

    Thanks for your inquiry. You will have to connect via UART to enable PowerProfiler functionalities. .

    BR,

    PM_Renesas

  • you can see that i have connect in the UART port

  • now I am just trying to work on the examples in the GitHub

    BLE_SDK6_examples/Readme.md at main · dialog-semiconductor/BLE_SDK6_examples · GitHub

    but in central and central security example pops this error

    Rebuild started: Project: central
    *** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
    Rebuild target 'DA14531'
    assembling startup_DA14531.s...
    compiling arch_console.c...
    compiling system_DA14531.c...
    compiling nmi_handler.c...
    compiling nvds.c...
    compiling hardfault_handler.c...
    compiling arch_main.c...
    compiling arch_sleep.c...
    compiling chacha20.c...
    compiling jump_table.c...
    compiling hash.c...
    compiling arch_rom.c...
    compiling arch_system.c...
    compiling otp_cs.c...
    compiling otp_hdr.c...
    compiling syscntl.c...
    compiling wkupct_quadec.c...
    compiling gpio.c...
    compiling battery.c...
    compiling adc_531.c...
    compiling trng.c...
    compiling spi_flash.c...
    compiling spi_531.c...
    compiling systick.c...
    compiling i2c_eeprom.c...
    compiling uart.c...
    compiling dma.c...
    compiling hw_otpc_531.c...
    compiling rf_585.c...
    compiling i2c.c...
    compiling attm_db_128.c...
    compiling rf_531.c...
    compiling rwip.c...
    compiling ble_arp.c...
    compiling rwble.c...
    compiling prf.c...
    compiling prf_utils.c...
    compiling app_security.c...
    compiling app_task.c...
    compiling app.c...
    compiling app_default_handlers.c...
    compiling app_security_task.c...
    compiling app_entry_point.c...
    compiling app_msg_utils.c...
    compiling app_easy_msg_utils.c...
    compiling app_easy_timer.c...
    compiling app_utils.c...
    compiling app_easy_security.c...
    compiling app_bond_db.c...
    compiling user_custs1_def.c...
    compiling user_custs_config.c...
    compiling user_ble_gatt.c...
    compiling user_ble_gap.c...
    compiling user_periph_setup.c...
    compiling user_central_app.c...
    linking...
    .\out_DA14531\Objects\central_531.axf: Error: L6218E: Undefined symbol my_custom_msg_handlers (referred from arch_rom.o).
    .\out_DA14531\Objects\central_531.axf: Error: L6218E: Undefined symbol patch_func (referred from user_periph_setup.o).
    .\out_DA14531\Objects\central_531.axf: Error: L6218E: Undefined symbol lld_force_timeout_refresh (referred from patch_1.o).
    Not enough information to produce a SYMDEFs file.
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.
    Finished: 3 information, 0 warning and 3 error messages.
    ".\out_DA14531\Objects\central_531.axf" - 3 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:04

    how can I resolve this error

  • Hi Stanly,

    Thank you for the reply.
    Which is the SDK version you are trying to use?
    If you are using SDK v6.0.20 or v6.0.22, please make sure you do the following to integrate Git Repo examples:
    1) Make sure you add the system_library_531.c on the sdk_arch folder:

    2) You can do that by right-clicking on the sdk_arch folder:

    3)Navigate on the SDK files on the following path 
    ...\6.0.20.1338\sdk\platform\system_library\src\DA14531

    PS: For different kind of issues, please create new threads. This way when a new user searches for an answer on the communities, they will find it easier.

    Best Regards,
    OV_Renesas

  • Rebuild started: Project: ble_central_with_security
    *** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
    Rebuild target 'DA14531'
    compiling system_DA14531.c...
    assembling startup_DA14531.s...
    compiling hardfault_handler.c...
    compiling nmi_handler.c...
    compiling arch_console.c...
    compiling nvds.c...
    compiling arch_main.c...
    compiling jump_table.c...
    compiling arch_sleep.c...
    compiling arch_system.c...
    compiling arch_rom.c...
    compiling chacha20.c...
    compiling hash.c...
    compiling otp_hdr.c...
    compiling otp_cs.c...
    compiling system_library_531.c...
    compiling syscntl.c...
    compiling gpio.c...
    compiling wkupct_quadec.c...
    compiling battery.c...
    compiling trng.c...
    compiling spi_flash.c...
    compiling i2c_eeprom.c...
    compiling systick.c...
    compiling adc_531.c...
    compiling spi_531.c...
    compiling uart.c...
    compiling hw_otpc_531.c...
    compiling i2c.c...
    compiling rf_585.c...
    compiling rwble.c...
    compiling rwip.c...
    compiling ble_arp.c...
    compiling rf_531.c...
    compiling attm_db_128.c...
    compiling custom_common.c...
    compiling custs1.c...
    compiling custs1_task.c...
    compiling custs2.c...
    compiling custs2_task.c...
    compiling prf.c...
    compiling prf_utils.c...
    compiling diss.c...
    compiling diss_task.c...
    compiling app_default_handlers.c...
    compiling app.c...
    compiling app_task.c...
    compiling app_security.c...
    compiling app_security_task.c...
    compiling app_diss.c...
    compiling app_diss_task.c...
    compiling app_entry_point.c...
    compiling app_msg_utils.c...
    compiling app_easy_msg_utils.c...
    compiling app_easy_security.c...
    compiling app_easy_timer.c...
    compiling app_customs.c...
    compiling app_customs_task.c...
    compiling app_customs_common.c...
    compiling app_bond_db.c...
    compiling app_utils.c...
    compiling user_custs_config.c...
    compiling user_custs1_def.c...
    compiling user_periph_setup.c...
    compiling user_central_scanner.c...
    compiling user_security.c...
    linking...
    .\out_531\ble_central_with_security_531.axf: Error: L6221E: Execution region ER_ZI with Execution range [0x07fc74e0,0x07fc85e0) overlaps with Execution region RET_DATA with Execution range [0x07fc83c0,0x07fc88c4).
    .\out_531\ble_central_with_security_531.axf: Error: L6221E: Execution region ER_NZI with Execution range [0x07fc85e0,0x07fc89ec) overlaps with Execution region RET_DATA with Execution range [0x07fc83c0,0x07fc88c4).
    .\out_531\ble_central_with_security_531.axf: Error: L6221E: Execution region ER_NZI with Execution range [0x07fc85e0,0x07fc89ec) overlaps with Execution region RET_HEAP_DB with Execution range [0x07fc88c4,0x07fc8cd0).
    Not enough information to produce a SYMDEFs file.
    Finished: 1 information, 0 warning and 3 error messages.
    ".\out_531\ble_central_with_security_531.axf" - 3 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:19

    this error pops in central security example coding

  • Hi Stanly,

    Thank you for the reply.
    On your Options for Target settings please check C/C++ tab and make sure that Link-Time Optimization is enabled:


    Best Regards,
    OV_Renesas

  • thanks, a lot all the errors are cleared

    but new error pops while debug

    Rebuild started: Project: ble_central_with_security
    *** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
    Rebuild target 'DA14531'
    assembling startup_DA14531.s...
    compiling system_DA14531.c...
    compiling nvds.c...
    compiling nmi_handler.c...
    compiling arch_console.c...
    compiling hardfault_handler.c...
    compiling arch_main.c...
    compiling jump_table.c...
    compiling arch_sleep.c...
    compiling chacha20.c...
    compiling hash.c...
    compiling arch_rom.c...
    compiling otp_hdr.c...
    compiling arch_system.c...
    compiling otp_cs.c...
    compiling syscntl.c...
    compiling wkupct_quadec.c...
    compiling system_library_531.c...
    compiling gpio.c...
    compiling battery.c...
    compiling trng.c...
    compiling spi_flash.c...
    compiling i2c_eeprom.c...
    compiling systick.c...
    compiling adc_531.c...
    compiling spi_531.c...
    compiling uart.c...
    compiling hw_otpc_531.c...
    compiling i2c.c...
    compiling rf_585.c...
    compiling attm_db_128.c...
    compiling rf_531.c...
    compiling rwip.c...
    compiling custom_common.c...
    compiling custs1.c...
    compiling ble_arp.c...
    compiling rwble.c...
    compiling custs1_task.c...
    compiling custs2.c...
    compiling prf.c...
    compiling custs2_task.c...
    compiling prf_utils.c...
    compiling diss.c...
    compiling diss_task.c...
    compiling app_default_handlers.c...
    compiling app.c...
    compiling app_security.c...
    compiling app_task.c...
    compiling app_diss_task.c...
    compiling app_diss.c...
    compiling app_security_task.c...
    compiling app_entry_point.c...
    compiling app_easy_msg_utils.c...
    compiling app_msg_utils.c...
    compiling app_customs_task.c...
    compiling app_easy_timer.c...
    compiling app_customs.c...
    compiling app_easy_security.c...
    compiling app_customs_common.c...
    compiling app_utils.c...
    compiling app_bond_db.c...
    compiling user_custs_config.c...
    compiling user_custs1_def.c...
    compiling user_periph_setup.c...
    compiling user_central_scanner.c...
    compiling user_security.c...
    linking...
    Program Size: Code=20828 RO-data=1868 RW-data=12 ZI-data=9888  
    FromELF: creating hex file...
    ".\out_531\ble_central_with_security_531.axf" - 0 Error(s), 0 Warning(s).
    Build Time Elapsed:  00:00:04
    Load "D:\\BLE_SDK6_examples-main\\connectivity\\central_Security_Demo\\project_environment\\out_531\\ble_central_with_security_531.axf" 
    Set JLink Project File to "D:\BLE_SDK6_examples-main\connectivity\central_Security_Demo\project_environment\JLinkSettings.ini"
    * JLink Info: Device "CORTEX-M0" selected.
     
    JLink info:
    ------------
    DLL: V7.92k, compiled Oct 18 2023 14:58:31
    Firmware: J-Link OB-SAM3U128 V3 compiled Apr 11 2024 17:43:56
    Hardware: V3.00
    S/N : 483052500 
     
    * JLink Info: Found SW-DP with ID 0x0BC11477
    * JLink Info: DPIDR: 0x0BC11477
    * JLink Info: CoreSight SoC-400 or earlier
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x04770031)
    * JLink Info: Iterating through AP map to find AHB-AP to use
    * JLink Info: AP[0]: Core found
    * JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
    * JLink Info: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M0 r0p1, Little endian.
    * JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: [0][0]: E000E000 CID B105E00D PID 000BB008 SCS
    * JLink Info: [0][1]: E0001000 CID B105E00D PID 000BB00A DWT
    * JLink Info: [0][2]: E0002000 CID B105E00D PID 000BB00B FPB
    ROMTableAddr = 0xE00FF000
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
     
    Target info:
    ------------
    Device: ARMCM0P
    VTarget = 3.300V
    State of Pins: 
    TCK: 0, TDI: 1, TDO: 1, TMS: 0, TRES: 1, TRST: 1
    Hardware-Breakpoints: 4
    Software-Breakpoints: 8192
    Watchpoints:          2
    JTAG speed: 2667 kHz
     
    No Algorithm found for: 07FC0000H - 07FC00A7H
    No Algorithm found for: 07FC0110H - 07FC591BH
    Erase skipped!
    Error: Flash Download failed  -  "Cortex-M0+"
    Flash Load finished at 15:56:27

  • Hi Stanly,

    Thank you for the reply.
    Go again on Options for Target, on Utilities tab and select the Use External Tool for Flash Programming option:

    The J-Link debugger should be able to connect now.

    Best Regards,
    OV_Renesas

  • Set JLink Project File to "D:\BLE_SDK6_examples-main\connectivity\central_Security_Demo\project_environment\JLinkSettings.ini"* JLink Info: Device "CORTEX-M0" selected.
     
    JLink info:
    ------------
    DLL: V7.92k, compiled Oct 18 2023 14:58:31
    Firmware: J-Link OB-SAM3U128 V3 compiled Apr 11 2024 17:43:56
    Hardware: V3.00
    S/N : 483052500 
     
    * JLink Info: Found SW-DP with ID 0x0BC11477
    * JLink Info: DPIDR: 0x0BC11477
    * JLink Info: CoreSight SoC-400 or earlier
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x04770031)
    * JLink Info: Iterating through AP map to find AHB-AP to use
    * JLink Info: AP[0]: Core found
    * JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
    * JLink Info: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M0 r0p1, Little endian.
    * JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: [0][0]: E000E000 CID B105E00D PID 000BB008 SCS
    * JLink Info: [0][1]: E0001000 CID B105E00D PID 000BB00A DWT
    * JLink Info: [0][2]: E0002000 CID B105E00D PID 000BB00B FPB
    ROMTableAddr = 0xE00FF000
    * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
    * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
     
    Target info:
    ------------
    Device: ARMCM0P
    VTarget = 3.300V
    State of Pins: TCK: 0, TDI: 1, TDO: 1, TMS: 0, TRES: 1, TRST: 1
    Hardware-Breakpoints: 4
    Software-Breakpoints: 8192
    Watchpoints:          2
    JTAG speed: 2667 kHz
     
    Include "D:\\BLE_SDK6_examples-main\\connectivity\\central_Security_Demo\\project_environment\\..\\..\\..\\..\\..\\sdk\\common_project_files\\misc\\jlink_DA14531.ini" 
    ________^
    *** error 56: cannot open file

    this error pops while debugging 

    the setting i have is

    these are my settings

  • Hi Stanly,

    Thank you for the reply.
    From the screenshots you have shared, is that you are trying to debug the project directly from the BLE-SDK examples folder of the GitRepo.
    You should copy/paste the example you are interested in inside your SDK with the rest of the SDK examples included.
    Then use the python script included to fix the paths to your SDK. 
    The rest of the settings seems OK to me. 
    Keil is trying to locate the jlink_DA14531.ini which is part of the SDK folders and not from the GitRepo folder. This is why you cannot debug.

    Best Regards,
    OV_Renesas

  • non connectable advertisement

    externed sleep mode

    code size

    battery - 35 MAH - 3v (CR1220)

    i will press the button at least 20 times a day

    NO SPI, I2C

    can i get the battery life estimation with this

  • Hi Stanly,

    Thank you for the reply.
    I tried to apply your configuration on the Battery Lifetime Estimator:


    You can test this on your side with SmartSnippets Toolbox as well. For the Battery Lifetime Estimator you will not need to use any of the Dev Kits.
    I only put 5% of Lifetime spent in Advertising since you are going to advertise for a few seconds 20 times a day.

    Best Regards,
    OV_Renesas

Reply
  • Hi Stanly,

    Thank you for the reply.
    I tried to apply your configuration on the Battery Lifetime Estimator:


    You can test this on your side with SmartSnippets Toolbox as well. For the Battery Lifetime Estimator you will not need to use any of the Dev Kits.
    I only put 5% of Lifetime spent in Advertising since you are going to advertise for a few seconds 20 times a day.

    Best Regards,
    OV_Renesas

Children
  • can i get the power profile

    ble_app_sleepmode_531.hex

    #if defined (__DA14531__)
    #define GPIO_BUTTON_PORT        GPIO_PORT_0
    #define GPIO_BUTTON_PIN           GPIO_PIN_7
    #define GPIO_BUTTON_PIN1         GPIO_PIN_8
    #else

    these are the gpio port that wake up the DA14531 and send the non-connectable advertisement

    i have attached the HEX file above

  • Hi Stanly,

    Thank you for the reply.
    Please refer on the mp4 video below:

    I used Development Kit Pro with the DA14531MOD Daughterboard and I used P0_7 to wake-up the device.
    The final current consumption will depend on how many times the DA14531 will wake-up to advertise.

    Best Regards,
    OV_Renesas