-
• #2
I don't see button BTN1 defined, you mentioned the board has one. As you build with bootloader the button is (or recently was) needed to build it properly as it is the way to enter bootloader.
Also if you made several different builds for different boards try to run with added 'clean' make target first to start from clean state.
-
• #3
Thax @fanoush, I have tried
'BTN1' : { 'pin' : 'D9' }
and built along with 'make clean' always, but nothing changed, it stucked on LED1 (red led).
I also tried the minimal board file(without BTN1) as you mentioned before to delete the cmd as follow:#'default_console' : "EV_SERIAL1", # 'default_console_tx' : "D25", #'default_console_rx' : "D26", # 'default_console_baudrate' : "9600", 'bootloader' : 0,
But stucked on LED1 (red led) too except the green and blue led
-
• #4
Do you mass erase the flash memory before flashing the hex? otherwise you may still have old bootloader there if you disabled it only with later builds
D9 is NFC pin, for that you need -DCONFIG_NFCT_PINS_AS_GPIOS so the button would work correctly, otherwise it may be stuck in one state when reading.
as for
pinutils.findpin(pins, "PD19", True)["functions"]["ADC1_IN1"]=0; # LED red pinutils.findpin(pins, "PD20", True)["functions"]["ADC1_IN2"]=0; # LED green pinutils.findpin(pins, "PD21", True)["functions"]["ADC1_IN3"]=0; # LED blue
that makes no sense, nrf5x can do analog only on first (D2-D5) and last (D28-D31) four pins,
for LEDs you would want to do pwm to dim them anyway? -
• #5
On,no! It seems like the BTN1 Pin is D9, Right or no?I found it from the PCB image
DCONFIG_NFCT_PINS_AS_GPIOS
Adding
'DEFINES+=-DCONFIG_NFCT_PINS_AS_GPIOS',
now...
But,had the same problem, stucked on LED1 (red led) ...Do you mass erase the flash memory before flashing the hex?
Yes, with
nrf5 mass_erase
for LEDs you would want to do pwm to dim them anyway?
Sorry I don't know, i am a freshman :-)
1 Attachment
-
• #6
Guess the problem is crystal(32M/32.768khz) or P.021 reset pin maby ...
I'm trying to add espruino to my new 9Axial nrf52832 board but failed.
It has one Switch,one BTN,9Axial(3Acceleration,3Gyroscope,3Magnetometer),8M spi flash,Battery...as the attachments photo
Perfect for playing with ;-)
The same product on Aliexpress, for someone who is interested in it.
Nine Axis Motion Sensor
https://a.aliexpress.com/_mP4vpLz
Built cmd: make -j BOARD=NewBoard_SDK12 RELEASE=1 USE_BOOTLOADER=1
I flashed the hex file via SWD tools, and the led progress as follow, when power on:
blue led (about 4s)... // LED3
green led (about 1s)... // LED2
red led (Always on)... // LED1
stucked??
And i can't find the bluetooth advertising frome the new device, it stucked :(, please could give me some hints how to do next.
Thank you in advance for your helpfulness
here is the board file(most frome puck.js):
1 Attachment