BenjaminSoelberg / openchronos-ng-elf

Fully modular opensource firmware for the eZ430 chronos using TI's new msp430-elf-gcc
GNU General Public License v3.0
59 stars 22 forks source link

CMakeLists.txt: fixed order of targets to enable radio-install #35

Closed pretyman closed 7 years ago

pretyman commented 7 years ago

CMake target radio-install works with this change, but contrib/ChronosTool.py is failing for me.

But see if it works for you :-)

BenjaminSoelberg commented 7 years ago

it could be that you need to use sudo depending on distribution. Which error do you get ?

pretyman commented 7 years ago

This is log of execution with the error, if you have any idea let me know, I guess would be best to open an issue for this if it is not a simple fix:

[  5%] Linking C executable openchronos.elf
[ 97%] Built target openchronos.elf
[100%] Generating openchronos.txt
ELF section __interrupt_vector_47 at 0xffdc 2 bytes
ELF section __interrupt_vector_49 at 0xffe0 2 bytes
ELF section __interrupt_vector_54 at 0xffea 2 bytes
ELF section __interrupt_vector_55 at 0xffec 2 bytes
ELF section __interrupt_vector_56 at 0xffee 2 bytes
ELF section __interrupt_vector_57 at 0xfff0 2 bytes
ELF section __interrupt_vector_60 at 0xfff6 2 bytes
ELF section __reset_vector at 0xfffe 2 bytes
ELF section .rodata at 0x8000 330 bytes
ELF section .rodata2 at 0x814c 80 bytes
ELF section .text at 0x819c 13916 bytes
ELF section .data at 0xb7f8 304 bytes
convert to TI Hex
Traceback (most recent call last):
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 713, in <module>
    bm = CBM( opt.device )
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 230, in __init__
    self.allstatus()
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 389, in allstatus
    return [self.getstatus(), self.wbsl_getstatus(), self.wbsl_getpacketstatus()]
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 380, in getstatus
    return self._getstatus().payload
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 267, in _getstatus
    return self.sendcmd( 0x00, [0x00] ) #BM_GetStatus
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 261, in sendcmd
    return self.send( cmd )
  File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 252, in send
    if response[2] > 3:
IndexError: bytearray index out of range
CMakeFiles/radio-install.dir/build.make:57: recipe for target 'CMakeFiles/radio-install' failed
make[3]: *** [CMakeFiles/radio-install] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/radio-install.dir/all' failed
make[2]: *** [CMakeFiles/radio-install.dir/all] Error 2
CMakeFiles/Makefile2:138: recipe for target 'CMakeFiles/radio-install.dir/rule' failed
make[1]: *** [CMakeFiles/radio-install.dir/rule] Error 2
Makefile:144: recipe for target 'radio-install' failed
make: *** [radio-install] Error 2
BenjaminSoelberg commented 7 years ago

Hi

First try chmod +x contrib/ChronosTool.py

Then make clean && make

Then sudo make install

When ever you get an error on “sudo make install” unplug and insert RF dongle and try again.

The RF dongle isn’t very stabil. We all have lots of errors with it :-(

Are you running linux or windows and are you running in a vm and if so which vm product are you using ?

Regards Benjamin

ps. you are welcome to create an issue, because it really is an issue!

On 30 Jan 2017, at 03.26, Alexandre Pretyman notifications@github.com wrote:

This is log of execution with the error, if you have any idea let me know, I guess would be best to open an issue for this if it is not a simple fix:

[ 5%] Linking C executable openchronos.elf [ 97%] Built target openchronos.elf [100%] Generating openchronos.txt ELF section interrupt_vector_47 at 0xffdc 2 bytes ELF section interrupt_vector_49 at 0xffe0 2 bytes ELF section interrupt_vector_54 at 0xffea 2 bytes ELF section interrupt_vector_55 at 0xffec 2 bytes ELF section interrupt_vector_56 at 0xffee 2 bytes ELF section interrupt_vector_57 at 0xfff0 2 bytes ELF section interrupt_vector_60 at 0xfff6 2 bytes ELF section reset_vector at 0xfffe 2 bytes ELF section .rodata at 0x8000 330 bytes ELF section .rodata2 at 0x814c 80 bytes ELF section .text at 0x819c 13916 bytes ELF section .data at 0xb7f8 304 bytes convert to TI Hex Traceback (most recent call last): File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 713, in bm = CBM( opt.device ) File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 230, in init self.allstatus() File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 389, in allstatus return [self.getstatus(), self.wbsl_getstatus(), self.wbsl_getpacketstatus()] File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 380, in getstatus return self._getstatus().payload File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 267, in _getstatus return self.sendcmd( 0x00, [0x00] ) #BM_GetStatus File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 261, in sendcmd return self.send( cmd ) File "/home/discipline/EZ430-Chronos/openchronos-ng-elf/contrib/ChronosTool.py", line 252, in send if response[2] > 3: IndexError: bytearray index out of range CMakeFiles/radio-install.dir/build.make:57: recipe for target 'CMakeFiles/radio-install' failed make[3]: [CMakeFiles/radio-install] Error 1 CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/radio-install.dir/all' failed make[2]: [CMakeFiles/radio-install.dir/all] Error 2 CMakeFiles/Makefile2:138: recipe for target 'CMakeFiles/radio-install.dir/rule' failed make[1]: [CMakeFiles/radio-install.dir/rule] Error 2 Makefile:144: recipe for target 'radio-install' failed make: [radio-install] Error 2 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/BenjaminSoelberg/openchronos-ng-elf/pull/35#issuecomment-275967970, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-4rzYkvb9Lpg1i-4p2iXLD9kIcLAI_ks5rXUpFgaJpZM4LlJQ_.