This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Stellaris LM3S9B96 FLASH reading and programming over SWD

We are using LM3S9B96-IQC80-A2
We are shipping hardware in a series application.
hardware with LM3S9B96 is used on various pcb's.
All pcb versions have JTAG/SWD connector.
Production flash loading is not an issue.
We want to do flash verification and, if necessary, flash
re-programming under supversion of an additional CPU,
hooked to SWD on the debug connector.
We know and comprehend ARM's "ARM Debug Interface Architecture Specification".
We know and comprehend TI's "LM3S9D96 Microcontroller DATA SHEET"
We know how to handle on chip Flash of Stellaris LM3S (we've written our own boot loader).
Currently, we are implementing SWD access to Stellaris's SWD-AP.
Once we inside SWD-AP, we want to use MEM-AP to access all
memory mapped ressourecs to do the job.

Q1: where do we find a reference of SWD-AP and MEM-AP registers?
Q2: is the result of a MEM-AP driven access EXCACLTY the same
    as a memory access done by the running Stellaris CPU?
Q3: With reference to Q2, do I have to consider any specialities
    when reading and programming flash memory through SWD-AP / MEM-AP?
Q4: Can you direct me to any TI appnote doing the above job?
    (similar to SILICON LABS's AN0062)
    Maybe you have a similar solition in one of the vintage
    Stellaris EVA boards?

Please, do NOT advice to use 3rd party programming/debug tools.
Our solution has to run on a small embedded CPU (Cortex-M3)
doing SWD by directly manipulating port pins.
Please, do NOT advice to migrate to the next evolution of CPUs (TM4C).
We are already in the process of doint it. But for the time being,
we MUST keep on producing our current hardware. And we MUST increase
the reliability level of onboard flash.

Thanks

  • Hello Bert,

    To answer the specific questions

    #1: ARM Debug Interface V5 Architecture Specification is the document which contains the details on the registers
    #2: No, it is not the same. The MEM AP has a different mechanism to access the memory
    #3: Yes, there are JTAG serial sequences that are required to read and program flash
    #4: We do not have a working APP Note, but the FTDI board that used to come with LM3S eval boards can be used to run the sequences. A windows program may be needed to be created to run the sequences.

    Regards
    Amit