Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 20 03:23
    nrobinson2000 commented #44
  • Jan 05 04:37
    nrobinson2000 deleted #29
  • Jul 21 2018 18:34

    nrobinson2000 on get

    [skip ci] at 14:34 of 2018-07-21 (compare)

  • Jul 21 2018 18:33

    nrobinson2000 on get

    [skip ci] at 14:33 of 2018-07-21 (compare)

  • Jun 28 2018 22:48

    nrobinson2000 on gh-pages

    at 18:48 of 2018-28-06 (compare)

  • Jun 28 2018 22:46

    nrobinson2000 on master

    Update README.md (compare)

  • Jun 28 2018 22:34

    nrobinson2000 on master

    Update README.md (compare)

  • Jun 24 2018 22:46
    nrobinson2000 commented #37
  • Jun 21 2018 01:26
    nrobinson2000 commented #37
  • Jun 19 2018 13:25
    elec3647 commented #37
  • May 27 2018 22:23
    nrobinson2000 commented #45
  • May 26 2018 03:40

    nrobinson2000 on gh-pages

    at 23:40 of 2018-05-25 (compare)

  • May 26 2018 03:37

    nrobinson2000 on gh-pages

    at 23:37 of 2018-05-25 (compare)

  • May 16 2018 13:02

    nrobinson2000 on master

    at 09:02 of 2018-05-16 (compare)

  • May 16 2018 13:01

    nrobinson2000 on master

    at 09:01 of 2018-05-16 (compare)

  • May 12 2018 02:25
    robbielove closed #45
  • May 12 2018 02:25
    robbielove commented #45
  • Apr 24 2018 04:40
    nrobinson2000 commented #45
  • Apr 24 2018 03:06
    nrobinson2000 closed #43
  • Apr 24 2018 03:06
    nrobinson2000 commented #43
Jeremy Ellis
@hpssjellis
does po config mesh-develop have to be done before po setup-mesh?
Nathan Robinson
@nrobinson2000
Yes
Jeremy Ellis
@hpssjellis
Quick question for my own bash files. Does the install script "bash <(curl -sL get.po-util.com)" exit gracefully if the po-util is already installed with the latest version or does it install from scratch every time you run it? I know I could just try it, but mine is now working nicely on Ubuntu and I don't want to wreck it.
Nathan Robinson
@nrobinson2000
It overwrites the po files
Jeremy Ellis
@hpssjellis
Ok. Am I ever getting very fast at working with po-util. I work on the cloud, but download the generated firmware to my computer to install using dfu. Takes seconds to test new firmware, compared to OTA which at school took up to 14 minutes and would not tell me if it was successful. Very impressed.
Jeremy Ellis
@hpssjellis
Just installed version 0.6.7 and it works well.
Nathan Robinson
@nrobinson2000
I've released 0.6.8 which adds support for the official Particle project structure and building with the Particle Workbench makefile. https://github.com/nrobinson2000/po/releases/tag/0.6.8
Thorsten von Eicken
@tve
I'm having a minor issue compiling and flashing a xenon. po xenon run flash-user fails in the compilation, but po xenon run compile-user succeeds.
/home/tve/.po-util/bin/gcc-arm-embedded/gcc-arm-none-eabi-5_3-2016q1/bin/../lib/gcc/arm-none-eabi/5.
3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file module_user_memory.ld: No such
file or directory
Nathan Robinson
@nrobinson2000
What about po xenon flash-beta ?
Thorsten von Eicken
@tve
tve@soumak /h/s/g/p/gps-test> po xenon flash-beta

          ______    ______
         /      \  /      \    Building firmware...
        /██████  |/██████  |
        ██ |  ██ |██ |  ██ |   Build Parameters:
        ██ |__██ |██ \__██ |     xenon
        ██    ██/ ██    ██/      gps-test
        ███████/   ██████/
        ██ |
        ██ |
        ██/  po xenon build gps-test

/home/tve/.po-util/bin/gcc-arm-embedded/gcc-arm-none-eabi-5_3-2016q1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file module_user_memory.ld: No such
file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [../../../build/module.mk:235: /home/src/goobies/particle/gps-test/target/gps-test.elf] Error 1
make[1]: *** [../build/recurse.mk:12: modules/xenon/user-part] Error 2
make: *** [/home/tve/.po-util/src/particle.mk:46: flash-user] Error 2

Building firmware failed! DFU closed.


No Particle Devices in DFU mode found!
same linker error
Nathan Robinson
@nrobinson2000
Can you try cleaning? po xenon clean-beta
Thorsten von Eicken
@tve
same issue
tve@soumak /h/s/g/p/gps-test> po xenon clean-beta

Cleaning firmware...
Sucessfully cleaned.

tve@soumak /h/s/g/p/gps-test> po xenon flash-beta

          ______    ______
         /      \  /      \    Building firmware...
        /██████  |/██████  |
        ██ |  ██ |██ |  ██ |   Build Parameters:
        ██ |__██ |██ \__██ |     xenon
        ██    ██/ ██    ██/      gps-test
        ███████/   ██████/
        ██ |
        ██ |
        ██/  po xenon build gps-test

/home/tve/.po-util/bin/gcc-arm-embedded/gcc-arm-none-eabi-5_3-2016q1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file module_user_memory.ld: No such
file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [../../../build/module.mk:235: /home/src/goobies/particle/gps-test/target/gps-test.elf] Error 1
make[1]: *** [../build/recurse.mk:12: modules/xenon/user-part] Error 2
make: *** [/home/tve/.po-util/src/particle.mk:46: flash-user] Error 2

Building firmware failed! DFU closed.


No Particle Devices in DFU mode found!
Thorsten von Eicken
@tve
In po-common, line 1776, there is no "$1" unlike on line 1754 (store_build_parameters-beta "$1"), that doesn't solve it though
Thorsten von Eicken
@tve
It looks to me like adding a prebuild prereq to the program-dfu target in the particle build/module.mk solves the linking issue. Line 122 :
program-dfu: prebuild $(MAKE_DEPENDENCIES) $(TARGET_BASE).dfu
should probablyu also have a postbuild prereq...
the all target used by compile-beta says:
all: prebuild $(MAKE_DEPENDENCIES) $(TARGET) postbuild
and gittter.im is having a hiccup...
The reason UI have to explicitly run po dfu open -d /dev/ttyACM0 is:
tve@soumak ~> dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

tve@soumak ~>
Nathan Robinson
@nrobinson2000
Which version of gcc-arm are you using?
arm-none-eabi-gcc --version
Thorsten von Eicken
@tve
I removed all globally installed arm-none-eabi-gcc
tve@soumak ~> ~/.po-util/bin/gcc-arm-embedded/gcc-arm-none-eabi-5_3-2016q1/bin/arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589]
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(I'm not sure everything I typed into gitterm.im came across, the following line shows up in red for me, so I wonder whether it hit an error:
Yup, now I'm successful with po dfu open -d /dev/ttyACM0; po xenon flash-beta
)
Nathan Robinson
@nrobinson2000
dfu-util -l
This would only list the xenon when it's in dfu mode, which is expected.
po xenon flash-beta should automatically put the xenon into dfu for you as long as the xenon is the only /dev/ttyACM
Thorsten von Eicken
@tve
OK, but if I look in po-common, for dfu_open() the only condition that does anything without a -d is if the device is listed by dfu-util -l. I don't see how it can do anything useful unless the -d options is specified...
Where in the code does it look for /dev/ACM* ?
What do you think about the prebuild and postbuild prerequisites missing on program-dfu?
Nathan Robinson
@nrobinson2000
In po-linux line 432 it tries to find /dev/ACM*
Thorsten von Eicken
@tve
I see, I have a /dev/ttyACM1 that is something else and that messes it up.
Nathan Robinson
@nrobinson2000
Yeah
Thorsten von Eicken
@tve
Have you considered:
tve@soumak /h/s/g/p/gps-test> ls /dev/serial/by-id
usb-FTDI_FT232R_USB_UART_A1014JRC-if00-port0@
usb-Linux_4.4.13-ntc-mlc_with_musb-hdrc_CDC_Composite_Gadget-if02@
usb-Particle_Xenon_CDC_Mode_e00fce68a8f4dc1358b533f5-if00@
[tve@soumak ~]$ for modem in /dev/serial/by-id/usb-Particle*; do echo $modem; done
/dev/serial/by-id/usb-Particle_Xenon_CDC_Mode_e00fce68a8f4dc1358b533f5-if00
so you could do:
for modem in /dev/ttyACM* /dev/serial/by-id/usb-Particle*; do
I made that change locally and happiness ensues :-)
Uhh, not so fast, bash uglyness if that doesn't exist...
Nathan Robinson
@nrobinson2000
I did not know about /dev/serial/by-id/
Thorsten von Eicken
@tve

To catch ttyACM and by-id you need something along the lines of

[tve@soumak ~]$ for modem in /dev/ttyACM* /dev/serial/by-id/usb-Particle* foobar*; do [ -e $modem ]
&& echo modem is $modem; done
modem is /dev/ttyACM0
modem is /dev/ttyACM1
modem is /dev/serial/by-id/usb-Particle_Xenon_CDC_Mode_e00fce68a8f4dc1358b533f5-if00
[tve@soumak ~]$

(I added the foobar* to show that it works if there are no files matching the wildcard)

I now have:
for modem in /dev/ttyACM* /dev/serial/by-id/usb-Particle*; do
    if [ -e "$modem" ]; then
        MODEM="$modem"
        MODEM_DUO="$modem"
    fi
done
echo MODEM is set to $MODEM
dinner time here, thanks for your help!
Thorsten von Eicken
@tve
Kevin McQuown
@iitgrad
how do I get po-util to know about the mesh Gen 3 products. I'm getting ./build/platform-id.mk:72: *** "Unknown platform: xenon. Stop. when doing a build
Thorsten von Eicken
@tve
po boron flash-beta
Nathan Robinson
@nrobinson2000
Have you done the following?
po config v0.8.0-rc.27
po setup-mesh
Thorsten von Eicken
@tve
quick Q: are those two commands global or per application directory?
Nathan Robinson
@nrobinson2000
Global
I'd like to make a per application option in the future
Jeremy Ellis
@hpssjellis
Does po have knowledge of the latest releases? is the newest one called po config v1.1.0-rc.1
Nathan Robinson
@nrobinson2000
Yes. You may need to do po update first so it can grab the latest releases.