Idf-Monitor issue - codec error

JoaoLopesF
Posts: 59
Joined: Thu Aug 17, 2017 5:40 pm

Idf-Monitor issue - codec error

Postby JoaoLopesF » Fri Oct 26, 2018 3:34 pm

Hi,

When I use the monitor, in MacOSX, occurs this error:

Code: Select all

MONITOR
--- WARNING: Serial ports accessed as /dev/tty.* will hang gdb if launched.
--- Using /dev/cu.SLAB_USBtoUART instead...
--- idf_monitor on /dev/cu.SLAB_USBtoUART 230400 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
I (11) boot: ESP-IDF v3.2-dev-1425-gbd90f534f 2nd stage bootloader
I (12) boot: compile time 12:19:26
I (12) boot: Enabling RNG early entropy source...
I (14) boot: SPI Speed      : 40MHz
I (16) boot: SPI Mode       : DIO
I (18) boot: SPI Flash Size : 4MB
I (20) boot: Partition Table:
I (22) boot: ## Label            Usage          Type ST Offset   Length
I (26) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (29) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (33) boot:  2 factory          factory app      00 00 00010000 00100000
I (37) boot: End of partition table
I (39) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x17bb8 ( 97208) map
I (77) esp_image: segment 1: paddr=0x00027be0 vaddr=0x3ffbdb60 size=0x031b4 ( 12724) load
I (83) esp_image: segment 2: paddr=0x0002ad9c vaddr=0x3ffc0d14 size=0x00000 (     0) load
I (83) esp_image: segment 3: paddr=0x0002ada4 vaddr=0x40080000 size=0x00400 (  1024) load

Traceback (most recent call last):
  File "/Desenv/Espressif/esp-idf/tools/idf_monitor.py", line 778, in <module>
    main()
  File "/Desenv/Espressif/esp-idf/tools/idf_monitor.py", line 691, in main
    monitor.main_loop()
  File "/Desenv/Espressif/esp-idf/tools/idf_monitor.py", line 361, in main_loop
    self.handle_serial_input(data)
  File "/Desenv/Espressif/esp-idf/tools/idf_monitor.py", line 421, in handle_serial_input
    self.handle_possible_pc_address_in_line(line)
  File "/Desenv/Espressif/esp-idf/tools/idf_monitor.py", line 452, in handle_possible_pc_address_in_line
    self.lookup_pc_address(m.group())
  File "/Desenv/Espressif/esp-idf/tools/idf_monitor.py", line 561, in lookup_pc_address
    cwd=".")
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)
make: *** [monitor] Error 1

JoaoLopesF
Posts: 59
Joined: Thu Aug 17, 2017 5:40 pm

Re: Idf-Monitor issue - codec error

Postby JoaoLopesF » Mon Oct 29, 2018 3:58 pm

Workaround: I just replace new idfmonitor with an old version.

But, this encode error is anything in installation/configuration on MacOSX ?

Who is online

Users browsing this forum: Jorgen, snutw_ and 110 guests