RedBearLab / nRF51822-Arduino

Moved to https://github.com/redbear/nRF5x
252 stars 109 forks source link

Program received signal SIGTRAP, Trace/breakpoint trap. #75

Open shirish47 opened 8 years ago

shirish47 commented 8 years ago

We have made a custom hardware based on MDBT40 which is used in redbearlab kit.

when I try to program it I get this no console. I am using black magic probe.

Target voltage: Not Implemented!
Remote debugging using /dev/cu.usbmodemDDE7BCE1
Attaching to Remote target
0xfffffffe in ?? ()
Available Targets:
No. Att Driver
 1      Nordic nRF51 0x0084 
Reading symbols from /private/var/folders/w2/jb9h2v3j5s5bs70q009xq2x00000gn/T/build7e336e622707faccf7506299ccb94f07.tmp/sketch_sep09a.ino.elf...done.
Loading section .text, size 0x153c lma 0x1c000
Loading section .ARM.exidx, size 0x8 lma 0x1d53c
Loading section .data, size 0x6c lma 0x1d544
Start address 0x1c19c, load size 5552
Transfer rate: 20 KB/sec, 694 bytes/write.
Temporary breakpoint 1 at 0x1c79a: file C:\Users\rclark\Documents\Arduino\hardware\RBL\RBL_nRF51822\cores\RBL_nRF51822/main.cpp, line 8.
Starting program: /private/var/folders/w2/jb9h2v3j5s5bs70q009xq2x00000gn/T/build7e336e622707faccf7506299ccb94f07.tmp/sketch_sep09a.ino.elf 
Note: automatically using hardware breakpoints for read-only addresses.

Program received signal SIGTRAP, Trace/breakpoint trap.
0xfffffffe in ?? ()

what does this mean is it something to do with hardware?

shirish47 commented 7 years ago

this was happening because the chip had no soft device flashed. this problem is solved. but I sometimes get this similar problem with new modules I make. I flash the s130 hex file and when I try to upload blink program uploading stops for a while and then shows uploaded bt nothing works.

Target voltage: Not Implemented! Available Targets: No. Att Driver 1 Nordic nRF51 0x0084 Remote debugging using /dev/cu.usbmodemDDE7BCE1 Attaching to Remote target 0xfffffffe in ?? () Reading symbols from /private/var/folders/w2/jb9h2v3j5s5bs70q009xq2x00000gn/T/build7c69508ed588db4010ac567a76b2c86a.tmp/Blink.ino.elf...done. Loading section .text, size 0x16e4 lma 0x1c000 Loading section .ARM.exidx, size 0x8 lma 0x1d6e4 Loading section .data, size 0x6c lma 0x1d6ec Start address 0x1c1ec, load size 5976 Transfer rate: 21 KB/sec, 747 bytes/write. Temporary breakpoint 1 at 0x1c8a2: file C:\Users\rclark\Documents\Arduino\hardware\RBL\RBL_nRF51822\cores\RBL_nRF51822/main.cpp, line 8. Starting program: /private/var/folders/w2/jb9h2v3j5s5bs70q009xq2x00000gn/T/build7c69508ed588db4010ac567a76b2c86a.tmp/Blink.ino.elf Note: automatically using hardware breakpoints for read-only addresses. I stops at this point and arduino shows uploading ..for few mins. what is wrong?