Warning after new update ESP32 DevKitC


#1

After the last update at the end of the uplink i have this warning:

[warning] There are 4 missing symbols! This VM does not support the requested features! [‘adc2_config_channel_atten’, ‘adc2_config_channel_atten’, ‘adc2_get_raw’, ‘adc2_get_raw’]
Traceback (most recent call last):
File “C:\Users\My Name\zerynth2\dist\r2.1.1\ztc\ztc.py”, line 111, in
cli()
File “C:\Users\Name Surname\zerynth2\sys\python\lib\site-packages\click\core.py”, line 716, in call
return self.main(*args, **kwargs)
File “C:\Users\Name Surname\zerynth2\sys\python\lib\site-packages\click\core.py”, line 696, in main
rv = self.invoke(ctx)
File “C:\Users\Name Surname\zerynth2\sys\python\lib\site-packages\click\core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Users\Name Surname\zerynth2\sys\python\lib\site-packages\click\core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “C:\Users\Name Surname\zerynth2\sys\python\lib\site-packages\click\core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “C:\Users\Name Surname\zerynth2\dist\r2.1.1\ztc\uplinker\uplinker.py”, line 197, in uplink
_uplink_dev(dev,bytecode,loop)
File “C:\Users\Name Surname\zerynth2\dist\r2.1.1\ztc\uplinker\uplinker.py”, line 300, in _uplink_dev
thebin = relocator.relocate(symbols,_memstart,_romstart)
File “C:\Users\Name Surname\zerynth2\dist\r2.1.1\ztc\uplinker\relocator.py”, line 121, in relocate
new_text_pad = self.align_to(new_text_end,16)-new_text_end
File “C:\Users\Name Surname\zerynth2\dist\r2.1.1\ztc\uplinker\relocator.py”, line 73, in align_to
return x if x%n==0 else x+(n-(x%n))
TypeError: unsupported operand type(s) for %: ‘NoneType’ and ‘int’

and it can’t finish the uplink, but before the code work perfectly.


#2

Hi @CrysK,

last patch has introduced new adc channels for ESP32-based boards.
You should create a new VM a virtualize again your device.

Let me know if this solves your issue :slight_smile:


#3

Thank you now it works :heart_eyes: