2.4.7 Configure at91bootstrap for Specific Needs
at91bootstrap is highly flexible and can be tailored to meet the unique requirements of different projects and hardware setups. Whether you need to adjust the boot process, configure custom hardware peripherals, or modify the memory initialization sequence, at91bootstrap allows for easy customization. From changing default boot configurations to enabling or disabling certain features, these modifications ensure that at91bootstrap performs optimally for your particular use case, such as loading a bare-metal application, configuring specific memory regions or enabling additional hardware support.
To customize an existing at91bootstrap configuration to meet the needs of a specific application, proceed as follows:
- Go to Project→Properties→Kconfig.
- Open the page with all the supported configs, as demonstrated in the two scenarios detailed above.
- Select and load the default board configuration that is most relevant to your needs, taking into consideration the media from which the next stage is to be loaded, the clocking scheme and the peripheral set.
- By expanding different groups and selecting/deselecting different options, the at91bootstrap can be customized for your specific requirements.
- Click Apply, then OK.
- Clean and rebuild at91bootstrap with the new configuration.
- Write this new at91bootstrap image into the boot NVM configured for your custom board.
An example customization using the SAM9X60-Curiosity board is shown below.
