• I'm trying to add espruino to my new 9Axial nrf52832 board but failed.
    It has one Switch,one BTN,9Axial(3Acceleration,3Gyroscope,3Mag­netometer),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):

    import pinutils;
    info = {
     'name' : "new board",
     'link' :  [ "http://www.espruino.com/PuckJS"; ],
     'default_console' : "EV_SERIAL1",
     'default_console_tx' : "D25",
     'default_console_rx' : "D26",
     'default_console_baudrate' : "9600",
     'variables' : 2250, 
     'bootloader' : 1,
     'binary_name' : 'espruino_%v_new_SDK12_SD30_SPIFLASH.hex­',
     'build' : {
       'optimizeflags' : '-Os',
       'libraries' : [
         'BLUETOOTH',
       ],
       'makefile' : [
         'DEFINES+=-DHAL_NFC_ENGINEERING_BC_FTPAN­_WORKAROUND=1', # Looks like proper production nRF52s had this issue
         'DEFINES+=-DBLUETOOTH_NAME_PREFIX=\'"Bet­ter"\'',
         'DFU_PRIVATE_KEY=targets/nrf5x_dfu/dfu_p­rivate_key.pem',
         'DFU_SETTINGS=--application-version 0xff --hw-version 52 --sd-req 0x8C,0x91',
         'NRF_SDK12=1'
       ]
     }
    };
    
    chip = {
      'part' : "NRF52832",
      'family' : "NRF52",
      'package' : "QFN48",
      'ram' : 64,
      'flash' : 512,
      'speed' : 64,
      'usart' : 1,
      'spi' : 1,
      'i2c' : 1,
      'adc' : 1,
      'dac' : 0,
      'saved_code' : {
        'address' : ((118 - 10) * 4096), 
        'page_size' : 4096,
        'pages' : 10,
        'flash_available' : 512 - ((31 + 8 + 2 + 10)*4) 
      },
    };
    
    devices = {
      'LED1' : { 'pin' : 'D19' }, # LED red
      'LED2' : { 'pin' : 'D20' }, # LED green
      'LED3' : { 'pin' : 'D21' }, [#LED](http://forum.espruino.com/search/­?q=%23LED) blue
      'SPEAKER' : { 'pin' : 'D4' },
      'BTN1' : { 'pin' : 'D9' }
    }
    
    def get_pins():
      pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins.
      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
      pinutils.findpin(pins, "PD25", True)["functions"]["USART1_TX"]=0;
      pinutils.findpin(pins, "PD26", True)["functions"]["USART1_RX"]=0;
    
      # everything is non-5v tolerant
      for pin in pins:
        pin["functions"]["3.3"]=0;
    
      return pins
    

    1 Attachment

    • IMG_20210811_093722.jpg
About

Avatar for tyronehell @tyronehell started