Skip to content

Commit

Permalink
[BACKPORT] imxrt - interrupt serial storm, add DTCM and set up I and …
Browse files Browse the repository at this point in the history
…D cache (#175)

* Serial Fixed interrupt storm

  The target would randomly hang in the serial isr.
  The priv->ie and the hardware were inconsistent.
  The isr used the priv->ie to gate offloading
  the RX data. Bang! Hung.

                  imxrt_disableuartint(priv, &ie);
                  ret = imxrt_setup(dev);

                  /* Restore the interrupt state */

                  imxrt_restoreuartint(priv, ie);
       interrupt->  Of no return
                  priv->ie = ie;

   On a fast cpu with FIFO, this will not work
   with out proper protections.

* Serial: Conditionally enable 9 bit mode

* armv7-mi/mpu.hi: Restructure API

   Preserve the existing API and enabled better granualriy on
   setting.

* Enable MPU for non protected builds to set cache

* mpuinit use symbolic values for addresses

* Allow DTCM on HEAP

* allocateheap Fix Coding style
  • Loading branch information
davids5 authored and dagar committed Jan 29, 2020
1 parent 0ab8700 commit 7b36108
Show file tree
Hide file tree
Showing 7 changed files with 491 additions and 447 deletions.
Loading

0 comments on commit 7b36108

Please sign in to comment.