Shop OBEX P1 Docs P2 Docs Learn Events
Spin PUB routine order — Parallax Forums

Spin PUB routine order

James EdgarJames Edgar Posts: 2
edited 2010-08-13 17:13 in Propeller 1
I have been having issues with PUB routines not working depending on what order the routines are in. I have not seen any documentation indicating that the position in the file should matter. There have been times when one PUB routine fails, but the one below it works. If I switch the order of the routines, the one that was not working now works and the one that was working fails. Also, when I delete PUB routines that are not being used, the program will stop working.

Has anyone else seen this behavior? Are there reasons to put PUB routines in a particular order?

Thanks,

James

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-08-13 16:39
    No, the order does not matter. What I suspect is that your program is overwriting the code in hub RAM somehow. Can you post your program?

    -Phil
  • James EdgarJames Edgar Posts: 2
    edited 2010-08-13 17:13
    Thanks Phil. I wasn't thinking in terms of the spin code operating from HUB memory. I am doing a lot of array processing, and I probably need to be more careful about not exceeding the array bounds.
Sign In or Register to comment.