External memory

nobody wrote on Wednesday, August 10, 2005:

These are really questions for the compiler and linker, rather than FreeRTOS.

You don’t say which compiler you are using.  If you want to use the external memory you will have to enable the memory bus in the startup code, set the wait states (if any) and set the linker script so that it knows about the memory and what to put there (eg read only for program code, read/write for RAM etc.).  How all this is done depends on the compiler.  If you are using GCC then take a look at the linker script and boot code to see what it is doing now.

It looks like the PINB7 definition is intended for use with the PORTx definition.  As in PORTx &= ~PINB7 to clear the bit, and PORTX |= PINB7 to set the bit.  I don’t know enough about the AVR to know if there instructions to set and clear specific bits, rather than using byte access in this way.  I suspect there will be.