Don_Kirby wrote:It would probably be a good idea to do a test compile (in native mode) for all of the sample code provided on the website before the public release of the 'n device line. I'm guessing that there won't be any major issues, but it may unearth some more items for Don's 'to do' list.
I have rebuilt all of my application notes and found the following additional problems. I have yet to test everything.
AN204: After changing the target device and rebuilding the code, the compiler gives me the following message:
Code: Select all
>"D:\Program Files\ZBasic\zbasic.exe" --target-device=ZX40n --directory="E:\AN-204/" --project="AN-204.pjt"
No errors. Target device: ZX40n, Code: 0 bytes, RAM: 0 bytes, Persistent memory: 0 bytes
AN208: This project does not build correctly unless the --verbose option is added either to the project file or the command line. This is a strange one.
AN210: In all cases the stack size should be increased to 70 bytes. The compiler suggest 60 but that is too little and causes an error for example when Atomic.bas is executed. Perhaps the compiler message should be changed and could mention System.TaskHeadroom as well. There is some hard-coding of task identifiers in the example code that could be made more generalized but that is a different problem.
AN212: Displays the same problem as AN208.