Sorry @Jimmo, did not see your post.
This is my gdb-nrf52.sh file:
Code: Select all
#!/bin/sh
GDB="/Users/pac/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gdb"
BTFW61="/Users/pac/uPython/build/micropython/ports/nrf/fw/s140_nrf52_6.1.1/s140_nrf52_6.1.1_softdevice.hex";
HOLYA="/Users/pac/uPython/build/micropython/ports/nrf/fw/holyiot_18010-191231-42e45bd.hex";
HOLYB="/Users/pac/uPython/build/micropython/ports/nrf/fw/holyiot_18010-200101-42e45bd.hex";
$GDB -ex "target extended-remote /dev/cu.usbmodem79AD7EA61" -ex "monitor tpwr enable" -ex "monitor swdp_scan" -ex "attach 1" -ex "set mem inaccessible-by-default off" -ex "load $BTFW61" -ex "load $HOLYB" -batch;
Output:
Code: Select all
./gdb-nrf52.sh
Target voltage: 3.3V
Available Targets:
No. Att Driver
1 ARM Cortex-M
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
warning: while parsing target memory map (at line 1): Required element <memory> is missing
0x0003a404 in ?? ()
Loading section .sec1, size 0xb00 lma 0x0
Loading section .sec2, size 0xf000 lma 0x1000
Loading section .sec3, size 0x10000 lma 0x10000
Loading section .sec4, size 0x5de8 lma 0x20000
Start address 0x0, load size 153832
Transfer rate: 51 KB/sec, 979 bytes/write.
Loading section .sec1, size 0xa000 lma 0x26000
Loading section .sec2, size 0x10000 lma 0x30000
Loading section .sec3, size 0xc9b4 lma 0x40000
Start address 0x26000, load size 158132
Transfer rate: 51 KB/sec, 982 bytes/write.
[Inferior 1 (Remote target) detached]
It all seems to complete successfully, but I have no output from the device whatsoever. How exactly can I enter debugging and see if anything is running, as I have zero experiebce with debuggers, never used one before !
I have connected a LED to P0.10 and ground and added the following into main.c in the nrf port:
Code: Select all
soft_reset:
...
//PAC P0.10 LED On
nrf_gpio_cfg_output(10);
nrf_gpio_pin_set(10);
pyb_set_repl_info(MP_OBJ_NEW_SMALL_INT(0));
readline_init0();
Afrer progrming, the LED does not power on, if I press the reset button p0.18 > GND to do a reset, nothing happens (does p0.18 need to be defined as the reset pin ?), I have put the LUD on each pin and can see nothing whatsoever on any pin, this is the 3rd device I have tried and this third one is brand new.
This is the device (
http://www.holyiot.com/tp/2019042516322180424.pdf ) , I succeeded with this about a year ago, but now cannot get anything at all !