how to configure proploader for different clkmode
RalfSt
Posts: 19
in Propeller 1
Hi,
I have to run my propeller at 5MHz instead of the usual 80MHz.
So I just set the _CLKMODE in the main spin file:
Now I have problems with proploader.
Instead of directly uploading the binary it ripples through different baudrates until it finally ended up at lowest(?) speed.
I tried different setting via -D they change nothing in the behavior of proploader.
Why does my program runtime setup influenced the upload process?
And why are the -D-variables ignored?
And how to fix these issues to not wait multiple seconds for the upload?
I have to run my propeller at 5MHz instead of the usual 80MHz.
So I just set the _CLKMODE in the main spin file:
_CLKMODE = xtal1 ' Only 5MHz to be measurable by an AVR running at 16MHz _XINFREQ = 5_000_000
Now I have problems with proploader.
Instead of directly uploading the binary it ripples through different baudrates until it finally ended up at lowest(?) speed.
proploader -D baudrate=115200 -p $DEVICE -r $BINARY Opening file 'sobel.bin' Downloading file to port /dev/ttyUSB0 Stepping down to 460800 baud Downloading file to port /dev/ttyUSB0 Stepping down to 230400 baud Downloading file to port /dev/ttyUSB0 Stepping down to 115200 baud Downloading file to port /dev/ttyUSB0 Using single-stage download Downloading file to port /dev/ttyUSB0 1456 bytes sent Verifying RAM Download successful!
I tried different setting via -D they change nothing in the behavior of proploader.
Why does my program runtime setup influenced the upload process?
And why are the -D-variables ignored?
And how to fix these issues to not wait multiple seconds for the upload?
Comments
I use it to compile .spin files and the only board available is "Generic" and I don't see a generic.cfg file.
I guess my question then is "How do I pick a different board when using .spin ?".
Or is there a way to tell SimpleIDE to not use the fast loader and just load the normal way ?
Thanks,
Bean
I get the exact same output
I still have the situation that the binary gets downloaded twice:
Is there a way to avoid this?
At least the process is fast again, thank you
I'll have to look but it might not really be downloading the file twice. It might just be that the message is displayed twice. That's a bug of course but not as serious a bug as if the download really is done twice. Thanks for reporting this.
I had some jitter issues with the UART so I had to increase the clock speed to 10MHz. (-D "fastloader-clkmode=xtal1+pll2x")
In this situation proploader directly comes with the "Using single-stage download" instead of first downloading the binary using another method.
Is there any documentation for proploader beside the --help option?
ps.: I use "" around the parameter to make it more obvious that this is an argument to a program and not an equation that gets evaluated by the shell (like $((1+1)) ). It's syntactic sugar to improve the readability of my script files