This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ant_io_tx_pca10040_s212_uart ?

Dear Members,

I opened this project ant_io_tx_pca10040_s212_uart.uvprojx in Keil,

How can I test it ?

NRF_LOG_INFO("ANT IO TX example started."); where can I see that message ?

I'm using nrf52840 board.

I have Garmin Edge to talk with,

Thanks for reading

Parents
  • I opened this project ant_io_tx_pca10040_s212_uart.uvprojx in Keil,

    How can I test it ?

    See documentation:
    https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ant_examples_io.html 

    NRF_LOG_INFO("ANT IO TX example started."); where can I see that message ?

    It depend on whether you have enabled UART or RTT as backend for logging, but you can typically see here:
    https://infocenter.nordicsemi.com/topic/ug_gsg_keil/UG/gsg/communicate.html

    Kenneth 

  • Hi Kenneth, thanks for the reply,

    Do I need to define UART, alike in uart_pca10400.uvprojx ?

    I want to :

                           printf("\r\Output of my GSC10 Garmin sensor......\r\n");                          

  • I've found it :

    PS C:\Users\rixtronixlab> nrfjprog -v
    nrfjprog version: 10.11.1
    JLinkARM.dll version: 6.88a
    PS C:\Users\rixtronixlab> nrfjprog --eraseall --snr 123456 -f nrf52
    Erasing user available code and UICR flash areas.
    Applying system reset.
    PS C:\Users\rixtronixlab> nrfjprog --program ANT_s340_nrf52_7.0.1.hex --sectorerase -f nrf52 --snr 123456
    Parsing hex file.
    ERROR: The file specified could not be found.
    PS C:\Users\rixtronixlab> cd "G:\ANT PLUS LIBRARY\ANT_s340_nrf52_7.0.1"
    PS G:\ANT PLUS LIBRARY\ANT_s340_nrf52_7.0.1> nrfjprog --program ANT_s340_nrf52_7.0.1.hex --sectorerase -f nrf52 --snr 123456
    Parsing hex file.
    Erasing page at address 0x0.
    Erasing page at address 0x1000.
    Erasing page at address 0x2000.
    Erasing page at address 0x3000.
    Erasing page at address 0x4000.
    Erasing page at address 0x5000.
    Erasing page at address 0x6000.
    Erasing page at address 0x7000.
    Erasing page at address 0x8000.
    Erasing page at address 0x9000.
    Erasing page at address 0xA000.
    Erasing page at address 0xB000.
    Erasing page at address 0xC000.
    Erasing page at address 0xD000.
    Erasing page at address 0xE000.
    Erasing page at address 0xF000.
    Erasing page at address 0x10000.
    Erasing page at address 0x11000.
    Erasing page at address 0x12000.
    Erasing page at address 0x13000.
    Erasing page at address 0x14000.
    Erasing page at address 0x15000.
    Erasing page at address 0x16000.
    Erasing page at address 0x17000.
    Erasing page at address 0x18000.
    Erasing page at address 0x19000.
    Erasing page at address 0x1A000.
    Erasing page at address 0x1B000.
    Erasing page at address 0x1C000.
    Erasing page at address 0x1D000.
    Erasing page at address 0x1E000.
    Erasing page at address 0x1F000.
    Erasing page at address 0x20000.
    Erasing page at address 0x21000.
    Erasing page at address 0x22000.
    Erasing page at address 0x23000.
    Erasing page at address 0x24000.
    Erasing page at address 0x25000.
    Erasing page at address 0x26000.
    Erasing page at address 0x27000.
    Erasing page at address 0x28000.
    Erasing page at address 0x29000.
    Erasing page at address 0x2A000.
    Erasing page at address 0x2B000.
    Erasing page at address 0x2C000.
    Erasing page at address 0x2D000.
    Erasing page at address 0x2E000.
    Erasing page at address 0x2F000.
    Erasing page at address 0x30000.
    Applying system reset.
    Checking that the area to write is not protected.
    Programming device.
    PS G:\ANT PLUS LIBRARY\ANT_s340_nrf52_7.0.1>

    Thanks :)

  • Hi Kenneth,

    then I upload the code I compile from Keil above that  ANT_s340_nrf52_7.0.1.hex, "sector erase" only and "include" is compiled....

    Correct step ?

    I can not upload hex file from Keil,

    Here's the message :

    Load "G:\\nRF5_SDK_17.0.2_d674dde\\examples\\ant\\ant_plus\\ant_bsc\\bsc_rx\\d52\\s212\\arm5_no_packs\\_build\\nrf52832_xxaa.axf"
    Set JLink Project File to "G:\nRF5_SDK_17.0.2_d674dde\examples\ant\ant_plus\ant_bsc\bsc_rx\d52\s212\arm5_no_packs\JLinkSettings.ini"
    * JLink Info: Device "NRF52832_XXAA" selected.
     
    JLink info:
    ------------
    DLL: V6.30h, compiled Mar 16 2018 18:02:51
    Firmware: J-Link ARM V8 compiled Jan 31 2018 18:34:52
    Hardware: V8.00
    S/N : 20080643
    Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull
     
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
    * JLink Info: AP[1]: JTAG-AP (IDR: 0x02880000)
    * 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: 0x410FC241. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M4 r0p1, Little endian.
    * JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
    * JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
    * JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    * JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
    * JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
    * JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
    ROMTableAddr = 0xE00FF000
     
    Target info:
    ------------
    Device: nRF52832_xxAA
    VTarget = 3.073V
    State of Pins:
    TCK: 0, TDI: 0, TDO: 0, TMS: 0, TRES: 1, TRST: 0
    Hardware-Breakpoints: 6
    Software-Breakpoints: 8192
    Watchpoints:          4
    JTAG speed: 4000 kHz
     
    Erase Failed!
    Error: Flash Download failed  -  "Cortex-M4"
    Flash Load finished at 00:00:12
    Load "G:\\nRF5_SDK_17.0.2_d674dde\\examples\\ant\\ant_plus\\ant_bsc\\bsc_rx\\d52\\s212\\arm5_no_packs\\_build\\nrf52832_xxaa.axf"
    Set JLink Project File to "G:\nRF5_SDK_17.0.2_d674dde\examples\ant\ant_plus\ant_bsc\bsc_rx\d52\s212\arm5_no_packs\JLinkSettings.ini"
    * JLink Info: Device "NRF52832_XXAA" selected.
     
    JLink info:
    ------------
    DLL: V6.30h, compiled Mar 16 2018 18:02:51
    Firmware: J-Link ARM V8 compiled Jan 31 2018 18:34:52
    Hardware: V8.00
    S/N : 20080643
    Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull
     
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Found SW-DP with ID 0x2BA01477
    * JLink Info: Scanning AP map to find all available APs
    * JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
    * JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
    * JLink Info: AP[1]: JTAG-AP (IDR: 0x02880000)
    * 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: 0x410FC241. Implementer code: 0x41 (ARM)
    * JLink Info: Found Cortex-M4 r0p1, Little endian.
    * JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
    * JLink Info: CoreSight components:
    * JLink Info: ROMTbl[0] @ E00FF000
    * JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
    * JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
    * JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
    * JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
    * JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
    * JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
    ROMTableAddr = 0xE00FF000
     
    Target info:
    ------------
    Device: nRF52832_xxAA
    VTarget = 3.073V
    State of Pins:
    TCK: 0, TDI: 0, TDO: 0, TMS: 0, TRES: 1, TRST: 0
    Hardware-Breakpoints: 6
    Software-Breakpoints: 8192
    Watchpoints:          4
    JTAG speed: 4000 kHz
     
    Erase Failed!
    Error: Flash Download failed  -  "Cortex-M4"
    Flash Load finished at 00:00:32

  • That should be correct, now make sure you are using a project named *pca10056*s340*.uvprojx 

    Best regards,
    Kenneth

  • ............pca10056 project. Where can I find pca10056 project ? I can not see it at ant_plus directory ?

    G:\nRF5_SDK_17.0.2_d674dde\examples\ant\ant_plus\ant_bsc\bsc_rx

  • project named *pca10056*s340*.uvprojx , where is that project ?

    I tried to find, nothing?

Reply Children
No Data
Related