Hi,
I started using LogicPDs BSL to write a small test application for accessing GPIOs und SPI directly via their registers on the AM3517 Experimenter Kit. I went this way to load the application into DDR and execute it:
Steps to setup CodeSourcery G++ for ARM EABI
- Verify that CodeSourcery G++ for ARM EABI is in your path (part of the CodeSourcery install process)
- Example: "C:/Program Files/CodeSourcery/Sourcery G++/bin"
Steps to build and execute CodeSourcery RAW binary in DDR
- Rebuild the BSL library if changes have been made.
- Navigate to the bsl/cs directory.
- cs-make clean
- cs-make
- Navigate to the bsl/cs directory.
- Build the test that you want to run.
- Navigate to the test-specific cs directory (example: tests/experimenter/nand/cs).
- cs-make clean
- cs-make
- Navigate to the test-specific cs directory (example: tests/experimenter/nand/cs).
- Connect the debug serial port to your PC and open using TeraTerm.
- NOTE: Use the latest TeraTerm available from http://ttssh2.sourceforge.jp/. Older versions may not transfer files properly.
- Boot into U-Boot and stop the autoboot process by pressing any key when directed.
- Use the following U-Boot command to load the RAW file
- loadb
- Use TeraTerm to send the RAW file
- File >> Transfer >> Kermit >> Send...
- Select the .raw file in the same cs directory as the test makefile.
- Use the following U-Boot command to jump to the previously loaded binary.
- go 0x82000000
This works quite well except the register accessing time is quite long and the application has to be uploaded after every reboot. I have to program a control loop for a fast industrial control, so I don't really need an OS.
I wonder how to start the standalone app directly from flash. I think the way to go should be to modify some environment variables and overwrite sectors in nand. I would prefer to start the app instead of booting the linux kernel and still have the possibility to update the app using an u-boot upload.
I'd be grateful for a description of the procedure or may a different way to reach my aim!
Regards,
Oli