1 2 Previous Next 19 Replies Latest reply on Nov 20, 2017 12:35 PM by mmalagon Branched from an earlier discussion.

    BCM43907 Flashing through Uart and JTag (con't)

    mmalagon

      I have the CYW943907EVAL1F tool that a cypres representative gave me on a visit where he showcased the new device. I have to start creating some projects and getting familiar with the device since we are planning to use it on a production board.

       

      I need to know how can I debug this device on this particular tool using a SEGGER JLink probe. I have tried compiling the following options:

       

      kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug JTAG=jlink download

       

      But I get the error:

       

      make[1]: *** [download_dct] Error 1

      make: *** [main_app] Error 2

       

      Which is not very descriptive. So I would like to know how to do this.

       

      Thanks!

        • 1. Re: BCM43907 Flashing through Uart and JTag (con't)
          axel.lin_1746341

          Try add VERBOSE=1 in your build command.

          • 2. Re: BCM43907 Flashing through Uart and JTag (con't)
            mmalagon

            axel.lin_1746341 wrote:

             

            Try add VERBOSE=1 in your build command.

            That didn't really help me. It showed more information but I don't really understand why it is not working. Here is what I'm getting that I think is related to the "donwload_dct" error:

             

             

            "./tools/common/Linux64/cp" -f build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/binary/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug.elf build/eclipse_debug/last_built.elf

            echo Creating Filesystem BCM94390x_targets.mk ...

            echo Downloading DCT ... build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/DCT.bin @ SFLASH_DCT_LOC=0x00008000

            Creating Filesystem BCM94390x_targets.mk ...

            "./tools/common/Linux64/rm" -f build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/resources/Staging/app.elf

            Downloading DCT ... build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/DCT.bin @ SFLASH_DCT_LOC=0x00008000

            "./tools/OpenOCD/Linux64/openocd-all-brcm-libftdi" -s "./tools/OpenOCD/scripts" -f ./tools/OpenOCD/jlink.cfg -f ./tools/OpenOCD/BCM4390x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_write_file build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/DCT.bin 0x00008000 CYW943907AEVAL1F-P103-SoC.43909 0 43909" -c shutdown >> build/openocd_log.txt 2>&1

            echo ./tools/common/Linux64/mk_wicedfs32 build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/filesystem.bin build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/resources/Staging/

            ./tools/common/Linux64/mk_wicedfs32 build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/filesystem.bin build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/resources/Staging/

            ./tools/common/Linux64/mk_wicedfs32 build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/filesystem.bin build/kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug/resources/Staging/

            echo Creating Filesystem Done

             

            And here are the contents of the openocd_log.txt file:

             

            Open On-Chip Debugger 0.10.0-dev-00226-g5c6b00b-dirty (2017-08-28-11:10)

            Licensed under GNU GPL v2

            For bug reports, read

            http://openocd.org/doc/doxygen/bugs.html

            none separate

            adapter speed: 100 kHz

            adapter_nsrst_delay: 100

            Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

            jtag_ntrst_delay: 100

            post_init_43909_setup

            Info : No device selected, using first device.

            Info : J-Link V10 compiled Sep  8 2017 17:24:33

            Info : Hardware version: 10.10

            Info : VTarget = 0.000 V

            Info : clock speed 100 kHz

            Error: JTAG scan chain interrogation failed: all ones

            Error: Check JTAG interface, timings, target power, etc.

            Error: Trying to use configured scan chain anyway...

            Error: BCM43909.cpu: IR capture error; saw 0x0f not 0x01

            Warn : Bypassing JTAG setup events due to errors

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Warn : Invalid ACK 0x7 in JTAG-DP transaction

            Error: Could not initialize the debug port

            force hard breakpoints

            Error: BUG: can't assert SRST

            error: -4

            in procedure 'sflash_write_file'

            in procedure 'sflash_init' called at file "apps/waf/sflash_write/sflash_write.tcl", line 258

            in procedure 'post_init_43909_setup' called at file "apps/waf/sflash_write/sflash_write.tcl", line 160

            in procedure 'reset' called at file "apps/waf/sflash_write/sflash_write.tcl", line 564

            in procedure 'ocd_bouncer'

             

            I don't really know how to interpret this information and more importantly, there is nowhere in the documentation where I can find how to debug with a JLink probe, meaning how to avoid these errors.

             

            Please help me understand what is going on.

             

            Thanks!

            • 3. Re: BCM43907 Flashing through Uart and JTag (con't)
              axel.lin_1746341

              mmalagon wrote:

               

              axel.lin_1746341 wrote:

               

              Try add VERBOSE=1 in your build command.

              That didn't really help me. It showed more information but I don't really understand why it is not working. Here is what I'm getting that I think is related to the "donwload_dct" error:

               

              Actually, it did help you.

              Send the log to the one give you the developboad.

               

              Note, I don't work for cypress and I have no experience with BCM43907.

              That's all I can help. Good luck.

              • 4. Re: BCM43907 Flashing through Uart and JTag (con't)
                mmalagon

                axel.lin_1746341

                Send the log to the one give you the developboad.

                 

                What do you mean by that?

                 

                I appreciate the help, by the way, thanks!

                • 5. Re: BCM43907 Flashing through Uart and JTag (con't)
                  jone_yi_1844281

                  According the schematic of EVB  you used, There are already have one FTDI chip as JTAG, Does it work ?

                  How you wiring the JLINK to the EVB ?

                  Do you study how to wiring JLINK to to any board ?

                  The forum already have some one ask same question ?  Which should give you a hint!?

                   

                  If most of answer of above are  NO!

                  You should follow the suggestion of axel.lin_1746341 ! or ask to  the one who sold you JLINK !

                  1 of 1 people found this helpful
                  • 6. Re: BCM43907 Flashing through Uart and JTag (con't)
                    mmalagon

                    jone_yi_1844281

                     

                    Yes, I'm aware that the board already has an FTDI chip as JTAG, nevertheless, I need to make the SEGGER JLink work because eventually I'll be creating a custom board for the module and I won't have an FTDI chip for JTAG so I would like to work with this from the beginning.

                     

                    I wired the board using the two options below:

                     

                    JlinkWiring.png

                     

                    I tried connecting both nTRST and RESET separately on the JLink side to the FTDI_JTAG_TRSR on the dev board side and neither of those worked.

                    • 7. Re: BCM43907 Flashing through Uart and JTag (con't)
                      rroy

                      Please check this blog post on using Segger J-link with 43907 OpenOCD -WICED.

                      • 8. Re: BCM43907 Flashing through Uart and JTag (con't)
                        mmalagon

                        rroy wrote:

                         

                        Please check this blog post on using Segger J-link with 43907 OpenOCD -WICED.

                        rroy I have tried that as well, connecting the nTRST from JLink to the FTDI_JTAG_TRSR on the board and getting the MCU reset from J9, and connecting it to the RESET on the JLink but it also doesn't work.

                         

                        It seems to me that it is more like a configuration issue. Has anyone tried this successfully?

                        1 of 1 people found this helpful
                        • 9. Re: BCM43907 Flashing through Uart and JTag (con't)
                          hari.kapparapu_2866351

                          I am also on the same boat.

                           

                          Here are my connections with CYW943907AEVAL1F kit.

                          Segger JLINK 20Pin Header

                          CYW943907AEVAL1F 10PIN Header

                          Pin 3 (nTRST)

                          Pin 1 (nTRST)

                          Pin 5 (TDI)

                          Pin 3 (TDI)

                          Pin 13 (TDO)

                          Pin 5 (TDO)

                          Pin 7 (TMS)

                          Pin 7 (TMS)

                          Pin 9 (TCK)

                          Pin 9 (TCK)

                          Pin 4,6,8,10,12,14,16,18,20 (GND)

                          Pin 2,4,6,8,10 (GND)

                          Pin 1 (Vref)

                          J9-Pin 4 (3.3V)

                          Pin 15 (RESET)

                          J9-Pin 3 (Reset)

                          Pin 2, 11, 17, 19 (Not connected)

                           

                           

                          Powered the board with External 12V DC power supply through J8.

                           

                          My build command on WICED Studio is: snip.led_example-CYW943907AEVAL1F VERBOSE=1 JTAG=jlink download run

                           

                          I am also looking for a solution to solve this issue. Let me know if anyone is successful with this approach of programming the EVAL kit using J-Link Programmer.

                          • 10. Re: BCM43907 Flashing through Uart and JTag (con't)
                            jone_yi_1844281

                            post your openocd_log.txt

                            • 11. Re: BCM43907 Flashing through Uart and JTag (con't)
                              hari.kapparapu_2866351

                              Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                              Licensed under GNU GPL v2

                              For bug reports, read

                              http://openocd.org/doc/doxygen/bugs.html

                              none separate

                              adapter speed: 100 kHz

                              adapter_nsrst_delay: 100

                              Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                              jtag_ntrst_delay: 100

                              post_init_43909_setup

                              Info : No device selected, using first device.

                              Info : J-Link V10 compiled Oct  6 2017 16:37:55

                              Info : Hardware version: 10.10

                              Info : VTarget = 3.328 V

                              Info : clock speed 100 kHz

                              Error: JTAG scan chain interrogation failed: all ones

                              Error: Check JTAG interface, timings, target power, etc.

                              Error: Trying to use configured scan chain anyway...

                              Error: BCM43909.cpu: IR capture error; saw 0x0f not 0x01

                              Warn : Bypassing JTAG setup events due to errors

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Warn : Invalid ACK 0x7 in JTAG-DP transaction

                              Error: Could not initialize the debug port

                              force hard breakpoints

                              Error: BUG: can't assert SRST

                              error: -4

                              in procedure 'sflash_write_file'

                              in procedure 'sflash_init' called at file "apps/waf/sflash_write/sflash_write.tcl", line 258

                              in procedure 'post_init_43909_setup' called at file "apps/waf/sflash_write/sflash_write.tcl", line 160

                              in procedure 'reset' called at file "apps/waf/sflash_write/sflash_write.tcl", line 564

                              in procedure 'ocd_bouncer'

                              • 12. Re: BCM43907 Flashing through Uart and JTag (con't)
                                mmalagon

                                hari.kapparapu_2866351 wrote:

                                 

                                Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                Licensed under GNU GPL v2

                                For bug reports, read

                                http://openocd.org/doc/doxygen/bugs.html

                                none separate

                                adapter speed: 100 kHz

                                adapter_nsrst_delay: 100

                                Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                jtag_ntrst_delay: 100

                                post_init_43909_setup

                                Info : No device selected, using first device.

                                Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                Info : Hardware version: 10.10

                                Info : VTarget = 3.328 V

                                Info : clock speed 100 kHz

                                Error: JTAG scan chain interrogation failed: all ones

                                Error: Check JTAG interface, timings, target power, etc.

                                Error: Trying to use configured scan chain anyway...

                                Error: BCM43909.cpu: IR capture error; saw 0x0f not 0x01

                                Warn : Bypassing JTAG setup events due to errors

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Warn : Invalid ACK 0x7 in JTAG-DP transaction

                                Error: Could not initialize the debug port

                                force hard breakpoints

                                Error: BUG: can't assert SRST

                                error: -4

                                in procedure 'sflash_write_file'

                                in procedure 'sflash_init' called at file "apps/waf/sflash_write/sflash_write.tcl", line 258

                                in procedure 'post_init_43909_setup' called at file "apps/waf/sflash_write/sflash_write.tcl", line 160

                                in procedure 'reset' called at file "apps/waf/sflash_write/sflash_write.tcl", line 564

                                in procedure 'ocd_bouncer'

                                That is exactly like my openocd_log.txt

                                • 13. Re: BCM43907 Flashing through Uart and JTag (con't)
                                  jone_yi_1844281

                                  try add following line into jlink.cfg

                                   

                                  reset_config trst_and_srst srst_push_pull srst_nogate connect_assert_srst

                                  2 of 2 people found this helpful
                                  • 14. Re: BCM43907 Flashing through Uart and JTag (con't)
                                    hari.kapparapu_2866351

                                    Awesome! It worked! Thanks a lot for the quick turnaround.

                                     

                                    Here is my openocd_log.txt of successful download of all images:

                                     

                                    Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                    Licensed under GNU GPL v2

                                    For bug reports, read

                                    http://openocd.org/doc/doxygen/bugs.html

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    adapter speed: 100 kHz

                                    adapter_nsrst_delay: 100

                                    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                    jtag_ntrst_delay: 100

                                    post_init_43909_setup

                                    Info : No device selected, using first device.

                                    Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                    Info : Hardware version: 10.10

                                    Info : VTarget = 3.328 V

                                    Info : clock speed 100 kHz

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Warn : Invalid ACK 0 in JTAG-DP transaction

                                    Error: Could not initialize the debug port

                                    force hard breakpoints

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x000001f3 pc: 0x00000000

                                    D-Cache: disabled, I-Cache: disabled

                                    cortex_a interrupt mask on

                                    adapter speed: 10000 kHz

                                    cpsr (/32): 0x000000D3

                                    lr (/32): 0x00000000

                                    32796 bytes written at address 0x004a0000

                                    41556 bytes written at address 0x004a8040

                                    32 bytes written at address 0x004b2294

                                    2564 bytes written at address 0x004b22b8

                                    downloaded 76948 bytes in 0.471129s (159.499 KiB/s)

                                    entry_address= 4882496

                                    stack_address= 4936984

                                    buffer_size= 32768

                                    pc (/32): 0x004A8040

                                    Total write size is 8000.

                                    writing 8000 bytes at 32768

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 0 8000

                                    8000 bytes written at address 0x004a001c

                                    downloaded 8000 bytes in 0.052035s (150.139 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    shutdown command invoked

                                    Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                    Licensed under GNU GPL v2

                                    For bug reports, read

                                    http://openocd.org/doc/doxygen/bugs.html

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    adapter speed: 100 kHz

                                    adapter_nsrst_delay: 100

                                    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                    jtag_ntrst_delay: 100

                                    post_init_43909_setup

                                    Info : No device selected, using first device.

                                    Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                    Info : Hardware version: 10.10

                                    Info : VTarget = 3.328 V

                                    Info : clock speed 100 kHz

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

                                    force hard breakpoints

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x000001f3 pc: 0x00000000

                                    D-Cache: disabled, I-Cache: disabled

                                    cortex_a interrupt mask on

                                    adapter speed: 10000 kHz

                                    cpsr (/32): 0x000000D3

                                    lr (/32): 0x00000000

                                    32796 bytes written at address 0x004a0000

                                    41556 bytes written at address 0x004a8040

                                    32 bytes written at address 0x004b2294

                                    2564 bytes written at address 0x004b22b8

                                    downloaded 76948 bytes in 0.486851s (154.348 KiB/s)

                                    entry_address= 4882496

                                    stack_address= 4936984

                                    buffer_size= 32768

                                    pc (/32): 0x004A8040

                                    Total write size is 13840.

                                    writing 13840 bytes at 0

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 0 13840

                                    13840 bytes written at address 0x004a001c

                                    downloaded 13840 bytes in 0.103830s (130.171 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    shutdown command invoked

                                    Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                    Licensed under GNU GPL v2

                                    For bug reports, read

                                    http://openocd.org/doc/doxygen/bugs.html

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    adapter speed: 100 kHz

                                    adapter_nsrst_delay: 100

                                    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                    jtag_ntrst_delay: 100

                                    post_init_43909_setup

                                    Info : No device selected, using first device.

                                    Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                    Info : Hardware version: 10.10

                                    Info : VTarget = 3.328 V

                                    Info : clock speed 100 kHz

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

                                    force hard breakpoints

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x000001f3 pc: 0x00000000

                                    D-Cache: disabled, I-Cache: disabled

                                    cortex_a interrupt mask on

                                    adapter speed: 10000 kHz

                                    cpsr (/32): 0x000000D3

                                    lr (/32): 0x00000000

                                    32796 bytes written at address 0x004a0000

                                    41556 bytes written at address 0x004a8040

                                    32 bytes written at address 0x004b2294

                                    2564 bytes written at address 0x004b22b8

                                    downloaded 76948 bytes in 0.473514s (158.695 KiB/s)

                                    entry_address= 4882496

                                    stack_address= 4936984

                                    buffer_size= 32768

                                    pc (/32): 0x004A8040

                                    Total write size is 507931.

                                    writing 32768 bytes at 69632

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 0 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.201069s (159.149 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 102400

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 32768 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.206573s (154.909 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 135168

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 65536 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.215030s (148.816 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 167936

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 98304 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.229748s (139.283 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 200704

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 131072 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.221307s (144.596 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 233472

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 163840 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.234495s (136.463 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 266240

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 196608 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.227042s (140.943 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 299008

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 229376 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.212982s (150.247 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 331776

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 262144 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.240564s (133.021 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 364544

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 294912 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.217373s (147.212 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 397312

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 327680 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.226471s (141.298 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 430080

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 360448 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.202928s (157.691 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 462848

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 393216 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.202640s (157.916 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 495616

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 425984 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.200154s (159.877 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 528384

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 458752 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.210191s (152.242 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 16411 bytes at 561152

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 491520 16411

                                    16411 bytes written at address 0x004a001c

                                    downloaded 16411 bytes in 0.141613s (113.170 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    shutdown command invoked

                                    Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                    Licensed under GNU GPL v2

                                    For bug reports, read

                                    http://openocd.org/doc/doxygen/bugs.html

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    adapter speed: 100 kHz

                                    adapter_nsrst_delay: 100

                                    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                    jtag_ntrst_delay: 100

                                    post_init_43909_setup

                                    Info : No device selected, using first device.

                                    Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                    Info : Hardware version: 10.10

                                    Info : VTarget = 3.328 V

                                    Info : clock speed 100 kHz

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

                                    force hard breakpoints

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x000001f3 pc: 0x00000000

                                    D-Cache: disabled, I-Cache: disabled

                                    cortex_a interrupt mask on

                                    adapter speed: 10000 kHz

                                    cpsr (/32): 0x000000D3

                                    lr (/32): 0x00000000

                                    32796 bytes written at address 0x004a0000

                                    41556 bytes written at address 0x004a8040

                                    32 bytes written at address 0x004b2294

                                    2564 bytes written at address 0x004b22b8

                                    downloaded 76948 bytes in 0.478459s (157.055 KiB/s)

                                    entry_address= 4882496

                                    stack_address= 4936984

                                    buffer_size= 32768

                                    pc (/32): 0x004A8040

                                    Total write size is 108024.

                                    writing 32768 bytes at 581632

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 0 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.212835s (150.351 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 614400

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 32768 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.215325s (148.613 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 32768 bytes at 647168

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x00000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 65536 32768

                                    32768 bytes written at address 0x004a001c

                                    downloaded 32768 bytes in 0.211552s (151.263 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    writing 9720 bytes at 679936

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 98304 9720

                                    9720 bytes written at address 0x004a001c

                                    downloaded 9720 bytes in 0.062500s (151.875 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    shutdown command invoked

                                    Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                    Licensed under GNU GPL v2

                                    For bug reports, read

                                    http://openocd.org/doc/doxygen/bugs.html

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    adapter speed: 100 kHz

                                    adapter_nsrst_delay: 100

                                    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                    jtag_ntrst_delay: 100

                                    post_init_43909_setup

                                    Info : No device selected, using first device.

                                    Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                    Info : Hardware version: 10.10

                                    Info : VTarget = 3.328 V

                                    Info : clock speed 100 kHz

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

                                    force hard breakpoints

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x000001f3 pc: 0x00000000

                                    D-Cache: disabled, I-Cache: disabled

                                    cortex_a interrupt mask on

                                    adapter speed: 10000 kHz

                                    cpsr (/32): 0x000000D3

                                    lr (/32): 0x00000000

                                    32796 bytes written at address 0x004a0000

                                    41556 bytes written at address 0x004a8040

                                    32 bytes written at address 0x004b2294

                                    2564 bytes written at address 0x004b22b8

                                    downloaded 76948 bytes in 0.500483s (150.144 KiB/s)

                                    entry_address= 4882496

                                    stack_address= 4936984

                                    buffer_size= 32768

                                    pc (/32): 0x004A8040

                                    Total write size is 4096.

                                    writing 4096 bytes at 65536

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    loadimage address 4849692 foffset 0 4096

                                    4096 bytes written at address 0x004a001c

                                    downloaded 4096 bytes in 0.031249s (128.004 KiB/s)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x80000073 pc: 0x004a8f34

                                    D-Cache: enabled, I-Cache: enabled

                                    ****************** Result: OK

                                    shutdown command invoked

                                    Open On-Chip Debugger 0.10.0-dev-00226-gdda982d-dirty (2017-08-25-12:11)

                                    Licensed under GNU GPL v2

                                    For bug reports, read

                                    http://openocd.org/doc/doxygen/bugs.html

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    trst_and_srst separate srst_nogate trst_push_pull srst_push_pull connect_assert_srst

                                    adapter speed: 100 kHz

                                    adapter_nsrst_delay: 100

                                    Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

                                    jtag_ntrst_delay: 100

                                    Info : No device selected, using first device.

                                    Info : J-Link V10 compiled Oct  6 2017 16:37:55

                                    Info : Hardware version: 10.10

                                    Info : VTarget = 3.328 V

                                    Info : clock speed 100 kHz

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

                                    Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x5)

                                    BCM43909.cpu: target state: halted

                                    target halted in Thumb state due to debug-request, current mode: Supervisor

                                    cpsr: 0x000001f3 pc: 0x00000000

                                    D-Cache: disabled, I-Cache: disabled

                                    cortex_a interrupt mask on

                                    force hard breakpoints

                                    adapter speed: 10000 kHz

                                    lr (/32): 0x00000000

                                    shutdown command invoked

                                    1 2 Previous Next