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.

RTOS/TMS570LS3137: How to remove EMIF reduandant writes

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI-RTOS

Greetings to advanced,

I use TMS570LS3137's EMIF to attach a Cypress S70GL02GS flash device.

When I write a single 16-bit data to a specific location with halfword or word alignment,

I saw redundant write EMIF_nWE pulses by oscilloscope.

I tried work around tips that set EMIF regions as 'device' or 'strongly ordered' MPU memory types,

fully compliant with SPNZ195G EMIF#4. But Extra write pulses still appear.

The following picture shows one of recommended MPU settings for EMIF async. regions.

How can I remove extra write pulse without additional logic combines the EMIF_nWE with

EMIF_nDQM1 and EMIF_nDQM0 ?

Thanks for any help

Best Regards,

Mason

  • Mason,

    Either device type or strongly-ordered type configuration for the external memory will work. Can you please make sure that the CPU's MPU is actually getting configured and enabled? There should be a call to the mpuInit() function.

    Regards,
    Sunil
  • Hi Sunil

    It's really the root cause that my code didn't call _mpuInit()_ to initialize MPU.
    The HALCoGen 4.7.0 don't call this function automatically during startup procedures.
    With the indication you pointed out, now EMIF works without extra write pulses :)

    Many thanks for help.


    Best Regards,
    Mason