How to handle RAM Parity Error with E2 studio.

I am using S7G2 SSP for my development. When I using sprintf function that time e2studio throwing RAM Parity Error.

  • Hi May.savaj-
    You shouldn't be getting a RAM parity error unless you have a bad MCU (unlikely) or perhaps the program is jumping to a wrong location in memory (stack corruption). Anyway, more information would be useful to help identify the issue...

    Warren
  • Hi WarrenM,

    Can you help me to find out why i am getting RAM Parity error and MPU stack error in e2studio?

    Now, this error are common in my development cycle.


    Thanks,
    Mayur Savaj

  • In reply to May.savaj:

    Hello Mayur,

    How big is the stack of the thread calling sprintf? What is the original SSP version of the project you're working on?

    Regards
  • Hi,

    I have allocated stack of thread is 2048. I am using SSP V1.2.0.

    Thanks,
    Mayur
  • In reply to May.savaj:

    Hello Mayur,

    If your project is for SSP 1.2.0 then it uses standard newlib C runtime library (not newlib-nano). The stack usage for printf variants with this version of the library is quite extensive so depending on other actions you're performing you may have to increase thread stack size even further. Please try setting this to 4096 to see if your issue is resolved.

    Regards