Page 1 of 1

256 byte OS for SPI

Posted: Sat Jun 18, 2011 8:59 pm
by opensesame11
I need to know if it's possible is somebody could write an OS for PICAXE that would read application data off of an SD card through SPI. The OS needs to be 256 bytes or shorter, and doesn't have to decode a file system. If it is possible, would anybody do this for free?

Re: 256 byte OS for SPI

Posted: Sat Jun 18, 2011 9:08 pm
by NickJohnson
opensesame11 wrote:I need to know if it's possible is somebody could write an OS for PICAXE that would read application data off of an SD card through SPI. The OS needs to be 256 bytes or shorter, and doesn't have to decode a file system.
I know almost nothing about SPI or PICAXE, but considering what some people have done with 512-byte boot sectors, reading data like that seems within the realm of possibility. If all you need is for the loaded program to run (i.e. the "OS" is more like a first-stage bootloader) the rest should be simple. At the very least, if you need something more complex, you can then load it from the SD card, so space is then a non-issue.
opensesame11 wrote:would anybody do this for free?
You, perhaps?

Re: 256 byte OS for SPI

Posted: Sat Jun 18, 2011 9:11 pm
by opensesame11
Thankyou for the help. I guess I could write it. I should read up more on bootsectors.

Re: 256 byte OS for SPI

Posted: Tue Jul 12, 2011 11:16 am
by Ready4Dis
It should be possible, what exactly are you trying to do and I may be able to help. Also, are you using the C compiler, or ASM? What kind of data, what are you doing with the data (putting it into a buffer, sending it out to something else, using it to process, etc), and why are you limited to 256 bytes?

--- edit ---
Just realized the PICAXE uses a BASIC like language. I am not positive, I have only worked with PIC's straight up, never used an interpreted (is it interpreted, or compiled) version based on BASIC. Typically if they supply a new langauge set, it has functions that make serial interfacing really simplistic though.

Re: 256 byte OS for SPI

Posted: Wed Jul 13, 2011 4:19 am
by opensesame11
What I am trying to do is read an SD card and load another BASIC program off of it. I presume this requires some complex BASIC code to retrive data byte by byte and decode it and run it. Thanks for trying to help.