[J-core] MimasV2Config.py issues

Christopher Friedt chrisfriedt at gmail.com
Fri Apr 15 21:27:09 EDT 2016


I'm getting a slightly odd looking error [1].

Tried this using two setups
1) Ubuntu 15.10 in VMWare Fusion on a Mac
2) Natively on Mac

Same error in both cases. Am I missing some other python module?

[1]
# python3 MimasV2Config.py /dev/ttyACM0 numato.bin
****************************************
* Numato Lab Mimas V2 Configuration Tool *
****************************************
Micron M25P16 SPI Flash detected
Loading file numato.bin...
Erasing flash sectors...
Traceback (most recent call last):
  File "MimasV2Config.py", line 533, in <module>
    main()
  File "MimasV2Config.py", line 529, in main
    MimasV2configObj.ConfigureMimasV2(sys.argv[2])
  File "MimasV2Config.py", line 471, in ConfigureMimasV2
    if self.M25P16sectorErase(fileSize):
  File "MimasV2Config.py", line 329, in M25P16sectorErase
    while self.M25P16ReadStatus() & 0x01:
TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'


More information about the J-core mailing list