Hi,
My emails doesnt seem to end up on the mailing list. Grrr... So I possibly repost this now. There are two messages from me below. You will have to read it "backwards".
My misstake!
You cant use .elf for dfu-programmer, must use .hex. So I changed the file:
$ wget
http://emcode.hopto.org/files/elua_lua_at32uc3a0256.hex.bz2Also if things doesnt seem to run do:
$ dfu-programmer at32uc3a0256 reset
$ dfu-programmer at32uc3a0256 start
Regards,
Marcus
On Thu, Dec 20, 2012 at 2:33 PM, Marcus wrote:
Hello again Carlos,
I've been thinking some more. You probably want to recompile the elua
and flash it to your Mizar32 using the dfu-programmer software. If
you have the original eLua still flashed, serial terminal might not be
working, due to USB etc. I'm uncertain what was shipped to you.
So you will want to clone the git repo and recompile. Something
similar to this on a GNU/Linux system:
$ git clone -b Mizar32
https://github.com/elua/elua
$ cd elua
$ scons board=mizar32
Hold down the SW2 switch on Mizar32, quickly press SW1, then let go of SW2.
$ dfu-programmer at32uc3a0256 erase
$ dfu-programmer at32uc3a0256 flash elua_lua_at32uc3a0256_
terminal_test.elf.bz2
or whatever you do to flash stuff onto Mizar32.
You can fetch a minimal unofficial copy that I just made. This one I
know works with the DB9 serial module, and should work just as fine
with your FTDI board:
$ wget http://emcode.hopto.org/files/elua_lua_at32uc3a0256.hex.bz2
$ bunzip2 elua_lua_at32uc3a0256_terminal_test.elf.bz2
Hold down the SW2 switch on Mizar32, quickly press SW1, then let go of SW2.
$ dfu-programmer at32uc3a0256 erase
$ dfu-programmer at32uc3a0256 flash elua_lua_at32uc3a0256_terminal_test.elf.bz2
Then run a terminal program at 115200 baud, 8N1 and set the correct
serial port for the FTDI chip. Reset Mizar32 and hit enter to get the
eLua prompt. Insert a SD-card with some files, enter the ls command
and you see the SD-card directory.
Does this work ok for you?
Too bad about the USB<->Serial cables. Does disconnecting/Reconnecting
help at all? Does connecting to a USB-hub help? Does lowering
communication speed help, e.g. 9600 baud?
Regards,
Marcus
On 12/20/12, Marcus wrote:
> Hello Carlos,
>
> Oh, I think you should not connect the FTDI board to the DB9 serial module!
> When using the FTDI module you should remove the DB9 serial module.
> You should connect the FTDI module directly to Mizar32 pin BUS4.2 and
> BUS4.3, as well as to +5V and GND.
>
> From the looks of it I would GUESS that a crossed-over connection
> would be correct.
>
> FTDI Mizar32
> RXI --- TX (BUS4.3)
> TXO --- RX (BUS4.2)
> 5V ---- VCC5 (BUS5.1)
> GND --- GND (BUS4.1)
>
> Check the schematics.
>
> Did you see any output from eLua on the DB9/FTDI port?
> Is it just input that is not working?
> Is your baudrate set correctly?
> Which model of Mizar32 are you using A, B or C?
>
> Hope this gives you a hint. Please tell if it works better or not.
> Regards,
> Marcus