Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RM48 with IAR

$
0
0

I am trying to get a basic HalcoGen App to run using IAR IDE.  The code seems to get stuck in mapClocks().  The same setting for HaloGen worked fine in CCS.

    /* Work Around for Errata SYS#46:
     *
     * Errata Description:           
     *            Clock Source Switching Not Qualified with Clock Source Enable And Clock Source Valid
     * Workaround:
     *            Always check the CSDIS register to make sure the clock source is turned on and check
     * the CSVSTAT register to make sure the clock source is valid. Then write to GHVSRC to switch the clock.
     */
 /** - Wait for until clocks are locked */
    while ((systemREG1->CSVSTAT & ((systemREG1->CSDIS ^ 0xFFU) & 0xFFU)) != ((systemREG1->CSDIS ^ 0xFFU) & 0xFFU))
    {
 } /* Wait */

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>