Hi Carl.
Are you saying you develop your forth on windows in a notepad type environment and copy to the raspi, or you vnc to the raspi and develop on a notepad environment there?
Also, are you uploading your forth, compiled into avr .hex using avr icsp?
Cheers,
Stuart
--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Carl.
Are you saying you develop your forth on windows in a notepad type environment and copy to the raspi, or you vnc to the raspi and develop on a notepad environment there?
Also, are you uploading your forth, compiled into avr .hex using avr icsp?
Cheers,
Stuart
Ah OK I got you. Your using the 512b method.
It would be fairly trivial to have that raspi interface do a bit more of the heavy lifting. I may investigate that further.
To easily copy the files, take a look at winscp. It uses the same connection details as SSH (putty), and will allow you to copy files from windows to raspi in a fashion akin to ftp.
Stuart
So I covnvert .fth to .hex on my PC, transfer the hex files to the raspi my means of a memory stick. Then avr dude the .hex files from raspi to fignition with avr dude, controlled by the PC. ( kindle or nintendo wii, they have a vnc client on them too!) But that is over complicating things :-)
Ah OK I got you. Your using the 512b method.
It would be fairly trivial to have that raspi interface do a bit more of the heavy lifting. I may investigate that further.
To easily copy the files, take a look at winscp. It uses the same connection details as SSH (putty), and will allow you to copy files from windows to raspi in a fashion akin to ftp.
I was thinking along the lines of the raspi doing the conversion from forth to hex, enabling the bootloader on the fignition, sending the chunks and sending the edit list and load commands.
Stuart
I have also transferred data via serial usb to arduino that is linked to FIGnition, I looked into shift/enter commands to be sent that would jump the FIGnition out of editor and save the block and then put itself back into editor for the next block. You would only need paste one long script via Putty, with all the commands in the right place it could have been a tape load equivalent. But I could not find the right jump out ascii chars. One way could be for a physical connection to be made by the arduino or Pi. Perhaps.
Hi Stuart, yes I was going to say, GCC on raspi to compile t2e2. It will also be worthwhile getting the open version of java to run on your pi as some tools (namely the graphics conversion program) are written in java. Cheers julz
That's the idea yes.
So you send forth files to the raspi, via smb cifs or web. Then the raspi will "compile" the forth, and upload the hex in chunks to the fignition using the bootloader (enabled by closing SW1).
There are some things to consider. On raspi cache, and some sort of hash schema for that. A job queue, watchdog and post upload test.
A web interface to manage it all would be a nice to have. However, I want to make connecting the raspi as easy as possible, so that its not about the raspi, its about the fignition. I don't want people to have to assemble YARPI (yet another raspi pie interface), so I need to have a look at the cheap ($1 + free p&p) eBay modules, and their reliability, vs building a fignition board.
I had a good rummage through the source last night (early this morning). And I understand the machine much better for that.
I'll write up a blog post at some point, i've kept notes.
Stuart
So you might be ale to use the pi to close and open sw1 then automatically load hex blocks, would you then be able to get the raspi to send typed commands to the fignition like the auduino can do at present on a serial connection?
I see the task in four main operations
Serial transfer to figkeys for -n edit & cmd+w typed commands
Script and gpio connections to hold sw1 and undo that command.
The same as above to interupt the red wire in the usb lead to FIGnition,thus powering it on/of so it can resume bootloader or come out of bootloader.
Finally to put all this in operation that includes a script to run avrdude and move the selected hex files.
There must be a way to de-raspi this operation, as the task is not excusive to raspi. I think with >port> on another fignition harnessed to the target fig you could do the sw1 and a klunky data entry. But the drawback there is that I am looking to close/open connections, not sending 5v, whoops, forget that!
Regards
Carl
Well if we use a cheap USB serial interface we can use the DTR or CTS line to reset the AT168/AT328, so the same is achievable with the raspi, we don't need to mess about with the power of the USB or cut into lines etc. Just pull the reset line.
The scripting side is very straight forward. Little more than a few batch commands in bash.
You could take the raspi out of the mix, and use another avr to provide serial, and poke various lines on the fignition. Hmm, it would be trivial to make an SD card loader for the .hex files. Another "shield" for the fignition?
I'm off for a ponder...
Stuart
Hi Stuart, also it should be fairly easy to convert the flash disk and vdisk code so that you can write .fth files directly to its external flash chip using spi. No t2e2 needed then, super fast copying!
-cheers julz
Ha ha, yes. I spotted the spi earlier and thought the same thing. I have an SD card on the breadboard ready.
The SD card slot has a micro switch for card insertion/removal.....
Stuart
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "FIGnition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fignition+...@googlegroups.com.
Hmmmmm. Well PB is available on a header, so it might be possible, but my experience is that the pull ups on the board may cause an issue with an extternal programmer. I'll have a play.
Stuart.
SD card shield:
So tonight I've realised that to work with fat16 sd cards I can get away with an at168 but for working with fat32 I'm going to need an at328 (for the ROM).
So an SD card shield would need an at328, SD card socket, a 16MHz xtal (because i'm running at 3.3v) and some header pins.
I've got all of that, so next step will be to veroboard a POC. Still not sure about fignitions on board resistors in the spi lines.
Raspi:
Loaded kernel driver for broadcom spi, and got flashrom installed (flashrom.org), and running, I think it will support the chips used in the fignition. It supports the 4Mb version of the same family. Will wire it up and try dumping the flash.
Avrdude
I'm going to try and access the amic using a usbasp. Seems to be a popular choice in the RC community.
Stuart.