This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Optimization Error

Good Moorning,

I open this post, because i am working in a proyect with Ethernet, but i have a strange issue that i cant find the source of problem.
I hope you can help me, Thanks.

The problem, is that in optimization O0 the proyect not work propertly, it occurs a hardfault handler in parte of code that dont have sense.
While if i use the optimization Oz, work propertly.

With other levels of optimization, appear same error that O0.

I indicate aditional information of the proyect:

MCU: STM32F779NI
ETH_Controller: KSZ9031MNX
Library_Ethernet: LWIP
ARM Compiler: 6.11

Also, comment that i was modify the Scatter file. I modify it because of i need have reserved RAM (MPU) for the DMA Ethernet.

Thanks for your help.

Kinds Regards.

Parents
  • What I'd do is try and narrow it down. Most importantly, to the module level. Optimise separate modules at different levels. Then look into ways of narrowing it down to a function within the (hopefully) single module. Then look at the (hopefully) single function and consider looking at the assembler that the compiler produced.

Reply
  • What I'd do is try and narrow it down. Most importantly, to the module level. Optimise separate modules at different levels. Then look into ways of narrowing it down to a function within the (hopefully) single module. Then look at the (hopefully) single function and consider looking at the assembler that the compiler produced.

Children