dead pyboard

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
User avatar
kamikaze
Posts: 137
Joined: Tue Aug 16, 2016 10:10 am
Location: СССР
Contact:

Re: dead pyboard

Post by kamikaze » Thu Dec 07, 2017 2:51 am

Same with GCC 7.2

Code: Select all

Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/7.2.0/arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-none-eabi/7.2.0/lto-wrapper
Target: arm-none-eabi
Configured with: /var/tmp/portage/cross-arm-none-eabi/gcc-7.2.0/work/gcc-7.2.0/configure --host=x86_64-pc-linux-gnu --target=arm-none-eabi --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/7.2.0 --includedir=/usr/lib/gcc/arm-none-eabi/7.2.0/include --datadir=/usr/share/gcc-data/arm-none-eabi/7.2.0 --mandir=/usr/share/gcc-data/arm-none-eabi/7.2.0/man --infodir=/usr/share/gcc-data/arm-none-eabi/7.2.0/info --with-gxx-include-dir=/usr/lib/gcc/arm-none-eabi/7.2.0/include/g++-v7 --with-python-dir=/share/gcc-data/arm-none-eabi/7.2.0/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.2.0 p1.1' --disable-esp --enable-libstdcxx-time --enable-poison-system-directories --with-sysroot=/usr/arm-none-eabi --disable-bootstrap --with-newlib --enable-multilib --disable-altivec --disable-fixed-point --disable-libgcj --disable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --disable-vtable-verify --disable-libvtv --disable-libquadmath --enable-lto --without-isl --disable-libsanitizer --enable-default-pie --enable-default-ssp --disable-libstdc++-v3
Thread model: single
gcc version 7.2.0 (Gentoo 7.2.0 p1.1)
Help? :roll:

User avatar
pythoncoder
Posts: 2031
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: dead pyboard

Post by pythoncoder » Thu Dec 07, 2017 10:40 am

Perhaps this is an issue to raise on GitHub, with the compiler output.
Peter Hinch

SpotlightKid
Posts: 283
Joined: Wed Apr 08, 2015 5:19 am

Re: dead pyboard

Post by SpotlightKid » Thu Dec 07, 2017 5:42 pm

I have no issues compiling, deploying and running the latest version from Git for the Pyboard V1.1 with GCC 7.2.0:

Code: Select all

$ LC_ALL=C arm-none-eabi-gcc --version
arm-none-eabi-gcc (Arch Repository) 7.2.0
Copyright (C) 2017 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.
$ make BOARD=PYBV11 deploy
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
[... build output ommitted]
Writing build-PYBV11/firmware.dfu to the board
File: build-PYBV11/firmware.dfu
    b'DfuSe' v1, image size: 324285, targets: 1
    b'Target' 0, alt setting: 0, name: "ST...", size: 324000, elements: 2
      0, address: 0x08000000, size: 14880
      1, address: 0x08020000, size: 309104
    usb: 0483:df11, device: 0x0000, dfu: 0x011a, b'UFD', 16, 0xded42ca5
Writing memory...
0x08000000   14880 [=========================] 100% 
0x08020000  309104 [=========================] 100% 
Exiting DFU...
chris@denkbett:stm32$ rshell repl
Connecting to /dev/ttyACM0 ...
Entering REPL. Use Control-X to exit.
>
MicroPython v1.9.3-90-g88a8043a on 2017-12-07; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> 
>>> import pyb
>>> pyb.info()
ID=3f002b00:14513334:39333633
S=168000000
H=168000000
P1=42000000
P2=84000000
_etext=806b74c
_sidata=806b74c
_sdata=20000000
_edata=20000024
_sbss=20000024
_ebss=20002690
_estack=20020000
_ram_start=20000000
_heap_start=20002690
_heap_end=2001c000
_ram_end=20020000
qstr:
  n_pool=1
  n_qstr=3
  n_str_data_bytes=35
  n_total_bytes=1219
GC:
  102400 total
  2224 : 100176
  1=25 2=4 m=74
LFS free: 83456 bytes

User avatar
kamikaze
Posts: 137
Joined: Tue Aug 16, 2016 10:10 am
Location: СССР
Contact:

Re: dead pyboard

Post by kamikaze » Sat Dec 09, 2017 6:04 pm


User avatar
kamikaze
Posts: 137
Joined: Tue Aug 16, 2016 10:10 am
Location: СССР
Contact:

Re: dead pyboard

Post by kamikaze » Sat Dec 09, 2017 6:05 pm

SpotlightKid wrote:
Thu Dec 07, 2017 5:42 pm
I have no issues compiling, deploying and running the latest version from Git for the Pyboard V1.1 with GCC 7.2.0:
Could you please show

Code: Select all

LC_ALL=C arm-none-eabi-gcc -v
?

SpotlightKid
Posts: 283
Joined: Wed Apr 08, 2015 5:19 am

Re: dead pyboard

Post by SpotlightKid » Sat Dec 09, 2017 6:14 pm

Code: Select all

$ LC_ALL=C arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-none-eabi/7.2.0/lto-wrapper
Target: arm-none-eabi
Configured with: /build/arm-none-eabi-gcc/src/gcc-7-20170907/configure --target=arm-none-eabi --prefix=/usr --with-sysroot=/usr/arm-none-eabi --with-native-system-header-dir=/include --libexecdir=/usr/lib --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-system-zlib --with-newlib --with-headers=/usr/arm-none-eabi/include --with-python-dir=share/gcc-arm-none-eabi --with-gmp --with-mpfr --with-mpc --with-isl --with-libelf --enable-gnu-indirect-function --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='Arch Repository' --with-bugurl=https://bugs.archlinux.org/ --with-multilib-list=armv6-m,armv7-m,armv7e-m,armv7-r
Thread model: single
gcc version 7.2.0 (Arch Repository) 

User avatar
kamikaze
Posts: 137
Joined: Tue Aug 16, 2016 10:10 am
Location: СССР
Contact:

Re: dead pyboard

Post by kamikaze » Fri Dec 15, 2017 1:39 am

Issue resolved. Needed to add

Code: Select all

$ LC_ALL=C make BOARD=PYBV11 V=1 CFLAGS_EXTRA="-fno-pie"

Post Reply