Avatar for user158106

user158106

Member since May 2024 • Last active May 2024
  • 1 conversations
  • 5 comments

Most recent activity

    • 9 comments
    • 476 views
  • in Other Boards
    Avatar for user158106

    After your point of me missing to flash the softdevice i tried the below steps and now the device is being detected over bluetooth. I was able to connect to the device over bluetooth, from mobile using the webide on chrome.

    > halt                                                              
    > nrf5 mass_erase                                                   
    Mass erase completed.
    > program s132_nrf52_3.1.0_softdevice.hex verify                    
    [nrf52.cpu] halted due to debug-request, current mode: Thread 
    xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
    ** Programming Started **
    Padding image section 0 at 0x00000964 with 1692 bytes
    Adding extra erase range, 0x0001ebf0 .. 0x0001efff
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    > program espruino_bt_nbl.hex verify                                
    [nrf52.cpu] halted due to debug-request, current mode: Thread 
    xPSR: 0x01000000 pc: 0x000008e4 msp: 0x20000400
    ** Programming Started **
    Adding extra erase range, 0x00062d60 .. 0x00062fff
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    > reset run
    jtag status contains invalid mode value - communication failure
    Polling target nrf52.cpu failed, trying to reexamine
    Examination failed, GDB will be halted. Polling again in 100ms
    Previous state query failed, trying to reconnect
    Polling target nrf52.cpu failed, trying to reexamine
    [nrf52.cpu] Cortex-M4 r0p1 processor detected
    [nrf52.cpu] target has 6 breakpoints, 4 watchpoints
    > 
    

    The message after "reset run" being the device power cycle.
    Thanks for the help.

  • in Other Boards
    Avatar for user158106

    There are 3 files created, a .hex file , a .elf file, and a .zip file.
    Any particular order these files have to be flashed?
    Any specific options to be passed for flashing?

  • in Other Boards
    Avatar for user158106

    the following is the console output

    $ telnet localhost 4444
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Open On-Chip Debugger
    > nrf5 mass_erase 
    nRF52832-CIAA(build code: E0) 512kB Flash, 64kB RAM
    Target not halted
    
    > halt
    [nrf52.cpu] halted due to debug-request, current mode: Handler HardFault
    xPSR: 0x01000003 pc: 0xfffffffe msp: 0xffffffd8
    > cd nrf
    > program espruino_bt_nbl.hex verify
    [nrf52.cpu] halted due to debug-request, current mode: Thread 
    xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
    ** Programming Started **
    Adding extra erase range, 0x00062d60 .. 0x00062fff
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    > reset run
    > 
    
  • in Other Boards
    Avatar for user158106

    I am using the below method in openocd

    nrf5 mass_erase
    program custom_firmware.hex verify
    reset run
    
  • in Other Boards
    Avatar for user158106

    Hi,

    I have couple of Holyiot YJ-17095 modules based on nRF52832 for which i want to flash espruino.

    I have the espruino files on a Debian 10 VM and have copied the MDBT42Q.py file to MDBT42Q_CUSTOM.py and changed the console to EV_BLUETOOTH. The pin numbers are changed as per the module.

    The compile is successful. I copy the firmware to another linux laptop and flash the firmware using a ST-LINK V2 and openocd. i am able to flash the firmware.

    After the firmware flash and power reset of the module, the module is not discovered by bluetooth.
    Any pointers to where i may be wrong or missing some requied steps?

    Thanks in advance.

Actions