ZBoot onto an Arduino Nano V3.0?

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.
spamiam
Posts: 739
Joined: 13 November 2005, 6:39 AM

Post by spamiam »

dkinzer wrote:
dkinzer wrote:While researching this issue, I discovered that the IDE doesn't properly save the download speed.
I uploaded a new version of the IDE that corrects this issue.
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.
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

spamiam wrote:I presume it is running with the double speed bit set, but I am not sure.
Unless you commented out the line referred to previously before building the bootloader, it is running in 2X mode.
spamiam wrote: I will create a new thread about [back-end errors] when I have time tomorrow.
Thanks.
- Don Kinzer
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

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:

Code: Select all

set F_CPU=16000000
set BAUD=115200
set UART2X=1
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.
Attachments
zboot_1-0-1.zip
Updated bootloader build script.
(132.61 KiB) Downloaded 198 times
- Don Kinzer
spamiam
Posts: 739
Joined: 13 November 2005, 6:39 AM

Post by spamiam »

This is great! Thanks!
Post Reply