Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
I have no experience using the ZX24N so here goes:
I've written a simple "hello world" program which compiles, loads and runs fine. However, when I power off and then power on the 24N, the program will not run until I press the reset key on the breakout board. I know this must be something obvious but it's got me stumped.
pdubinsky wrote:[W]hen I power off and then power on the 24N, the program will not run until I press the reset key on the breakout board.
I've never seen similar behavior. Does the same issue occur with a ZX-24a or ZX-24p?
I suppose that it could be an issue with slowly rising power. Is the ZX-24n being powered with 5 volts directly or using the on-board regulator? Whichever it is, you might try the other method of powering it.
Also, you might try adding a capacitor to the reset line, perhaps 47uF or 100uF. This capacitor will be charged via the on-board 10K pullup resistor, keeping the device in reset a while longer after power up.
pdubinsky wrote:I tried the same code on 2 other 24N's and they execute properly.
If the one behaves differently under identical circumstances it is likely that there is something wrong with it. If that is the case we'll replace it, of course.