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

AHB Matrix priority setting on LPC1788 lead to IAP (flash) failure

Hi,

I observed that the matrix configuration changed in Segger emWin in configuration file “LCDVonf.c” to following settings can cause the IAP to fail and generate the hard fault.

Matrix_Arb = 0 // Set AHB Matrix priorities [0..3] with 3 being highest priority | (1 << 0) // PRI_ICODE : I-Code bus priority. Should be lower than PRI_DCODE for proper operation. | (2 << 2) // PRI_DCODE : D-Code bus priority. | (0 << 4) // PRI_SYS : System bus priority. | (0 << 6) // PRI_GPDMA : General Purpose DMA controller priority. | (0 << 8) // PRI_ETH : Ethernet: DMA priority. | (3 << 10) // PRI_LCD : LCD DMA priority. | (0 << 12) // PRI_USB : USB DMA priority.;

But if AHB matrix priorities are left at default all is working well. It is completely repeatable - with the matrix change it always fails. With the matrix configuration not written to (in emWin ccde), all works fine.

Can you explain how the priorities change can cause the IAP to fail?? And what should be the proper MATRIX_ARB value?

With Regards, Shweta