Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
That fixed it. I can now effectively download. I tried 38400 baud because that is a reasonably fast speed that should work, even at single speed. I used a version of zboot that was set for 38400 baud. I presume it is running with the double speed bit set, but I am not sure.
I also downloaded the newest installer, inorder to update the entire ZBASIC toolchain. But I got back end build errors, so I reverted back to my older version and for the same code the back end build errors went away. I will create a new thread about this when I have time. tomorrow.
spamiam wrote:Maybe you could add a line to the bootloader code to use double speed (if it is not already there).
I modified the code base for the bootloader so that you can specify if you want to use 2X mode or not for tiny/mega devices in the makeboot.bat file. By default, 2X mode is used (as before).
The section of makeboot.bat for tiny/mega now looks like this:
Also, I wanted to point out that when you run makeboot.bat, after it finishes building the bootloader it runs a special script (checkboot.awk) to confirm that the code size of the bootloader isn't larger than the assumed boot section size. As part of this check, it outputs the bootloader code size. This reminder may be helpful for setting the boot section size.
Edit: I forgot to add the attachment containing the new boot code. It is there now. If you want to use it, extract the contents to your zboot build directory.