What is save binary for?
Kye
Posts: 2,200
Anyone know?
And, yes using the propeller tool.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
And, yes using the propeller tool.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Comments
<SMIRK>
Honestly, that is my one use for the function, but I'm sure there are more.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
One of uses is if You run .. Gear .. Prop simulator.
It only accept bin files else You wil update program to customer but not give him Program code
And many more
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Like use the binary with other objects? And compile them to an eeprom file to load on the propeller chip?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
I work on it .. But only PASM. To have standart Drivers that communicate between COG and HUB Ram with no spin involved
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Maybe a workaround would be to have a dummy function, which simply calls each pub function of the object.
Or maybe I missunderstood this. But I think there might be an issue with adressing. You would have to use relative adressing to find your variables. But I think things are a bit more static in the propeller.
Post Edited (MagIO2) : 3/25/2009 10:05:46 PM GMT
It is not posible with Propeler Tool but very isy with BSTC compiler to compile PASM and edit binary file to only have PASM code with placeholders of variable adresses in HUB
It is only structure of that Placeholder I kurently thinking on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Sorry for litle of topic info on Yours thread
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
You can use @ to find any adress of a label inside of your code. So, with a little program that moves the code from it's original place to another would proove if it is possible to start this code then. Maybe you can output content of a variable. But you should change the value of the original variable to see if the variable access is done relative or with an absolute adress. If access is absolute the copied code would output the changed value.
I have not watched the webinars and I can't participate as there is no linux client (and my mac is too old and slow)... but... this is not correct. The Parallax compiler compiles the entire object whether all methods are used or not. There is no optimisation of the compiled objects down to this level. At least one of the other spin compilers can do this however.
Relocating entire objects or even entire binary images is not particularly difficult, but breaking things up to the method or section is considerably harder.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.
why would you need external tools to store such PASM binaries? I'd wrap the PASM library in a Spin-Program that stores the PASM on a SD-card. For HUB RAM access you can tell the COG with the PAR where to find the variables. It should be possible to do this with a very little footprint.
E.G.:
ir_sense mov ir_com1, par ' copy parameter which holds the adress of communication buffer
ir_0_max add ir_com2, par
ir_1_max add ir_com3, par
ir_0_min add ir_com4, par
ir_1_min add ir_com5, par
ir_bit_cnt add ir_com6, par
....
some code
....
wrlong ir_1_max, ir_com2 ' done, so write result to HUB RAM
wrlong ir_1_min, ir_com3
wrlong ir_0_max, ir_com4
wrlong ir_0_min, ir_com5
wrlong ir_bit_cnt, ir_com6
....
some code
....
ir_com1 long 0
ir_com2 long 4
ir_com3 long 8
ir_com4 long 12
ir_com5 long 16
ir_com6 long 20
You did not waste space with that. The ir_comX store the adress of HUB RAM. This can be used anywhere in the COG. And the original "add"s are afterwards used by the code as COG variables that hold the data to be stored in HUB RAM when needed.
Are you interested in the webinar? Should be possible to convert it to MP3. The video-part of the 1 hour I watched so far is not to interesting. Could do that tomorrow if you'd like to have it (Now it's to late and I have to sleep - in 5 hours night is over for me ;o)
Oh, I should be able to watch them in either the wmv or mp4 format, it's just that I can't participate in the webinar as the software required is either for Windows or Macs but my mac is too old and slow to run it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
-Phil
I didn't want to hi-jack your thread and I thought you might be interested in this ...
http://forums.parallax.com/showthread.php?p=794696
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
-Phil