Search found 440 matches

by devnull
Sun Jan 05, 2020 11:00 pm
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

How careless of me, the holyroot pdf and diagrams just show this as a digital IO, just checked a schematic of the NRF8240 and you are correct, will try that. But is my last mod to the main.c file correct ? - if you do this does a LED come on and stay on during bootup ? I have set it to p0.22: // ## ...
by devnull
Sun Jan 05, 2020 1:33 pm
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

I also tried adding the port enable code here, and did a fresh clone of the entire build and re-built again, but still nothing at all: // Main script is finished, so now go into REPL mode. // The REPL mode can change, or it can request a soft reset. int ret_code = 0; //PAC P0.10 LED On nrf_gpio_cfg_...
by devnull
Sun Jan 05, 2020 12:28 pm
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

Sorry @Jimmo, did not see your post. This is my gdb-nrf52.sh file: #!/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/micropyth...
by devnull
Sun Jan 05, 2020 5:33 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

Hi again; Is this where it should be added: soft_reset: led_init(); led_state(1, 1); // MICROPY_HW_LED_1 aka MICROPY_HW_LED_RED mp_stack_set_top(&_ram_end); // Stack limit should be less than real stack size, so we have a chance // to recover from limit hit. (Limit is measured in bytes.) mp_stack_se...
by devnull
Sat Jan 04, 2020 12:24 pm
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

Thanks so much for spending the time to do that. I bought this black magic probe a few months ago and never used it, so this seemed a good opportunity, before that I was using a cheap chines STLink V2. I will try the led enable tomorrow and let you know what happens. On a similar subject, I use the ...
by devnull
Sat Jan 04, 2020 7:51 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

@c45713 i am now programming using gdb and black magic probe. ./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 ...
by devnull
Wed Jan 01, 2020 11:19 am
Forum: MicroPython pyboard
Topic: pyb.ADCAll() side effect
Replies: 13
Views: 2119

Re: pyb.ADCAll() side effect

I recently bought some of these: https://www.aliexpress.com/item/3284470 ... 4c4dx6H2Od

I think the problem is shipping, lots of batteries seem unavailable now, they wrap them in resistors to avoid them being detected as batteries during shipment !
by devnull
Tue Dec 31, 2019 11:20 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

Spent 2 days on this, and nothing at all from the UART. I have triple-checked the connections and never get any errors, but not a whisper from the UART :-( BTFW61="micropython/ports/nrf/drivers/bluetooth/s140_nrf52_6.1.1/s140_nrf52_6.1.1_softdevice.hex"; HOLYHEX="micropython/ports/nrf/build-holyiot_...
by devnull
Tue Dec 31, 2019 12:38 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Re: Flashing NRF using pyOCD

Thanks; I tried that, but still nothing out of the uart. I also tried changing the target to nrf52840 and nrf52 and using a .hex file for the firmware file, but nothing at all from the uart. This is a device that I successfully flashed about a year ago using openocd, however that will no longer run ...
by devnull
Mon Dec 30, 2019 2:24 pm
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 395

Flashing NRF using pyOCD

Hi; I have built the firmware for the NRF52 and also dowloaded the bluetooth stack for the device. Using STLink V2, I have flashed both files: BTFILE="s140_nrf52_6.1.1_softdevice.hex" FWFILE="pca10056-191230-42e45bd.bin" pyOCD flash $BTFILE --target nrf52 [====================] 100% 0009050:INFO:loa...