Avatar for hilo90mhz

hilo90mhz

Member since Nov 2016 • Last active Nov 2016
  • 0 conversations
  • 2 comments

Most recent activity

  • in News
    Avatar for hilo90mhz

    Okay I figured out my own problem :)
    on line 2080 of makefile

    	@echo FIXME - had to set --overlap=replace
    	python scripts/hexmerge.py --overlap=replace $(SOFTDEVICE) $(NRF_BOOTLOADER) $(PROJ_NAME).hex -o tmp.hex
    

    and line 2086 of makefile

    	python scripts/hexmerge.py $(SOFTDEVICE) $(PROJ_NAME).hex -o tmp.hex
    

    I had to add the "python" preface which was missing before the call to hexmerge.py - this fixed the merging problem.

    Also to fix the vagrant setup problems I changed the provision.sh by adding the top three lines and commenting out the lower ones.

    sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
    sudo apt-get update
    sudo apt-get install gcc-arm-embedded
     
    # download known working version of arm-none-eabi-gcc
    [#sudo](https://forum.espruino.com/searc­h/?q=%23sudo) mkdir ~/gcc-temp
    [#cd](https://forum.espruino.com/search/­?q=%23cd) ~/gcc-temp
    [#sudo](https://forum.espruino.com/searc­h/?q=%23sudo) wget https://launchpad.net/gcc-arm-embedded/4­.8/4.8-2014-q3-update/+download/gcc-arm-­none-eabi-4_8-2014q3-20140805-linux.tar.­bz2
    [#cd](https://forum.espruino.com/search/­?q=%23cd) /usr/local
    [#sudo](https://forum.espruino.com/searc­h/?q=%23sudo) tar xjf ~/gcc-temp/gcc-arm-none-eabi-4_8-2014q3-­20140805-linux.tar.bz2
     
    # apply setup config to add compiler to PATH
    # from stackoverflow i.e http://stackoverflow.com/a/28279205
    

    I also edited the vagrant_setup.sh to include the correct path to new version of gcc-arm-embedded

    export PATH="$PATH:/usr/local/gcc-arm-embedded/­bin/"
    

    I am not sure this is all correct but when I upload hex files for the NRF52832DK they now show up as bluetooth devices and some basic commands work :)

    You can see the changes on my fork of Espruino here https://github.com/espruino/Espruino/com­pare/master...clowrey:master

  • in News
    Avatar for hilo90mhz

    Do you have any advice for building these on windows using Vagrant for the NRF52832DK? I have tried out the current vagrant setup but believe the version of arm-none-eabi-gcc it installs in the provision.sh script may not be compatible with the current master branch?

    https://github.com/espruino/Espruino/blo­b/master/scripts/provision.sh

    From what I can tell based on this link:
    https://travis-ci.org/espruino/Espruino/­jobs/175343830

    you are building with the current version:
    arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]

    Right now on gcc-arm-none-eabi-4_9-2015q1 it mostly works but fails at the end with this:

    GEN espruino_1v88.180_nrf52832.lst
    GEN espruino_1v88.180_nrf52832.hex
    Merging SoftDevice
    scripts/hexmerge.py /vagrant/targetlibs/nrf5x/components/sof­tdevice/s132/hex/s132_nrf52_3.0.0_softde­vice.hex espruino_1v88.180_nrf52832.hex -o tmp.hex
    make: scripts/hexmerge.py: Command not found
    make: *** [espruino_1v88.180_nrf52832.hex] Error 127
    
Actions