GTBecker wrote:The following simple code allows ATNChar downloads on a ZX-24n, but fails on a -24x or -24u.
The cause of this issue has been corrected. The problem only affects xmega-based ZX devices.
An update to the ZBasic Library has been posted. You can download the .zip file and extract the contents to the zlib subdirectory of the ZBasic installation directory.
I installed the current v4.2.4 complete package zip and find that the "4-2-4_partial.zip" zlib fixes (over 4.2.3 at the time) needed to be installed to get ATNChar to work again. Were they not included in the new full zip?
It appears that ATNChar downloads from the IDE always need a currently-open serial port.
IDE Serial Port Option Open for download, close afterward often fails as does Open on activation, close on deactivation. Only option Leave open unless manually closed appears to work reliably - as does a manually-opened port if it is closed at download time.