Jump to content

alpinistbg

Members
  • Content Count

    2
  • Joined

  • Last visited


Reputation Activity

  1. Thanks
    alpinistbg reacted to StefanSch in Blink example too slow   
    this issue got already fixed a while ago - unfortunately the fix did not get merged into the master branch.
    Just did the update there so it will go into the next release.
    Meanwhile you can fix this locally with patching the wiring.c file. In the function InitClock update the first lines to:
    void initClocks(void) { #ifdef __MSP430_HAS_BC2__ #if (defined(CAL_BC1_16MHZ) || defined(CALDCO_16MHZ_)) && F_CPU >= 16000000L BCSCTL1 = CALBC1_16MHZ; DCOCTL = CALDCO_16MHZ; #elif (defined(CAL_BC1_12MHZ) || defined(CALDCO_12MHZ_)) && (F_CPU >= 12000000L) BCSCTL1 = CALBC1_12MHZ; DCOCTL = CALDCO_12MHZ; #elif (defined(CAL_BC1_8MHZ) || defined(CALDCO_8MHZ_)) && (F_CPU >= 8000000L) BCSCTL1 = CALBC1_8MHZ; DCOCTL = CALDCO_8MHZ; #elif (defined(CAL_BC1_1MHZ) || defined(CALDCO_1MHZ_)) && (F_CPU >= 1000000L) BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; #else #warning No Suitable Frequency found! #endif #endif  
×
×
  • Create New...