I'm looking for an example of a simple program to run "bare board" (no OS, bare metal, bare bones) on the LS1021A. I'm using the GCC toolchain, and Eclipse. Ideally, I'd like to properly set the memory spaces, upload it to a TWR-LS1021A board, and debug with a Segger J-Link. I can't seem to get all the pieces working together properly. Thank you.
Sorry, we do not have any experience with using pure Eclipse and Segger J-link here, in NXP online technical support team. We support only our CodeWarrior software (also Eclipse-based) and CodeWarrior TAP debug probe.
Note you can download full-featured 30-days trial version of CodeWarrior and use to create bareboard LS1021A project with all necessary initialization steps.
For LS1021A please use "ARMv7" version of CodeWarrior:
CodeWarrior Development Suite for Networked Applications|NXP
Segger J-link is usually used for microcontrollers, but not supported by CodeWarrior ARMv7. Here is a direct link to CodeWarrior TAP debug probe and Coretex 10-pin debug probe tip.
QorIQ LS Processor Probe Tips|NXP
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------