Archive for the “programming tools” Category

If your using a different linker file than what comes with the compiler you will need to set the /p option for the linker to specify your processor manually. For some reason v3.38 doesn’t pick this up automatically. If this is not done, the following error message will probably be recieved:

Error – Device not specified. Use /p option to specify a device.

Setting the /p option is simple, click ‘Project – Build Options – Project’, go to the MPLINK Linker tab. Then check the ‘Use Alternate Settings’ check box.

The default string will look like:

/m”$(BINDIR_)$(TARGETBASE).map” /w /o”$(BINDIR_)$(TARGETBASE).cof”

Change this to:

/m”$(BINDIR_)$(TARGETBASE).map” /w /p18F2450  /o”$(BINDIR_)$(TARGETBASE).cof”

using your processor instead of the /p18F2450 in the above example. Note, there is no space between the p and the 1. It’s just the font makes it look like there is.

Comments No Comments »

Had the need to create some strings in the form of an array of hex codes for the charachters the other day which was a little cumbersom, so put together some quick php code to do it for me. So thought I’d share it with you. You can access it at http://electronics.trev.id.au/str2hex.php. Just enter your string and click convert.

Comments No Comments »