Search found 473 matches
- Tue Jan 07, 2020 9:05 am
- Forum: General Discussion and Questions
- Topic: Build Secrets
- Replies: 14
- Views: 7864
Re: Build Secrets - NRF Programming
NRF FLASHING OK, here's some information that will save some time for others trying to program the NRF with Chinese STLINK and The Black Magic Probe: I have tested with openocd, pyocd and gdb, all are latest versions. The latest firmware of STLINK does not apear to allow mass erase, so this would f...
- Mon Jan 06, 2020 10:20 am
- Forum: Other Boards
- Topic: NRF USB CDC Configurations
- Replies: 3
- Views: 2581
NRF USB CDC Configurations
Does anyone know, for the NRF devices, other than connecting D+, D-, VBUS and Ground from USB cable and making the following changes in the mpcconfigboard.h, are there any other settings / connections to make CDC work on the NRF ?? is there any additional USB firmware that needs to be flashed to the...
- Mon Jan 06, 2020 12:57 am
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
- Sun Jan 05, 2020 11:00 pm
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
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: // ## ...
- Sun Jan 05, 2020 1:33 pm
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
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_...
- Sun Jan 05, 2020 12:28 pm
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
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...
- Sun Jan 05, 2020 5:33 am
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
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...
- Sat Jan 04, 2020 12:24 pm
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
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 ...
- Sat Jan 04, 2020 7:51 am
- Forum: Other Boards
- Topic: Flashing NRF using pyOCD
- Replies: 13
- Views: 9931
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 ...
- Wed Jan 01, 2020 11:19 am
- Forum: MicroPython pyboard
- Topic: pyb.ADCAll() side effect
- Replies: 13
- Views: 10283
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 !
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 !