This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error when compiling ZNP Hex files in ZStack 2.4.0: Windows cannot find 'znp.js'

I'm using IAR 7.60 to compile ZNP on ZStack 2.4.0 and I get an error when attempting to build the TestHex or ProdHex configurations. (Debug worked fine)

Windows cannot find 'znp.js'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.

I have not changed any of these files.

In the directory ZStack-CC2530-2_4_0\Projects\zstack\ZNP\CC253x\tools there exists znp.js and znp.bat. The post-build compile option in IAR is:

"$PROJ_DIR$\tools\znp.bat" "$PROJ_DIR$\tools" "CC2530-TestHex"

 

What do I do? Also, how do I know if the batch file (and js file) ran correctly?

 

Thanks,

Derek

 

  • You wouldn't by chance be using Windows 7 would you? Someone else reported having problems building under Windows 7.

    I haven't had any problems building it under XP. If it builds correctly, you'll get a dialog box that says something like "ZNP-TestHex is in the Dev! ...."

  • Hi,

    I am also experiencing the same problem under Windows XP sp 3,  and IAR 8.11.1. I am trying to compile ZStack-CC2530-2.5.0\Projects\zstack\ZNP\CC253x into a hex format. Using the debug version hex file results in a FLASH programmer error of being too large.

    I tried editing the znp.bat to give an absolute path and it found the znp.js file. However - the znp.js file fails on line 121 where it tries to open znp.js. I also put an absolute path in here - but it still fails.

    Help would be appreciated

    Ian