1 Reply Latest reply on Jul 27, 2020 2:15 AM by HolgerW_56

    Bootloader and Firmware have different Frequency

    HaFi_1814386

      I  write a Bootloader for a FM4 CY9BF368 with the Standard Frequenz of 160 MHz.

      After I change the Program counter

      _asm("LDR PC, [R0, #4]");         //Load new program counter address

      the Firmware doesn't   start if it is compiled with the Frequenz of 8MHz.

      If the Frequenz of the Firmware are change to 160 MHz it works.

       

      Here are the different Settings at System_mb9b360r.h

      CLOCK_8MHZ

      APBC0_PSR_Val         ( 0x00000000ul)

      APBC2_PSR_Val          ( 0x00000080ul)

      SCM_CTL_Val              ( 0x0000002Aul)

       

       

      CLOCK_160MHZ

      APBC0_PSR_Val          ( 0x00000001ul)

      APBC2_PSR_Val          ( 0x00000081ul)

      SCM_CTL_Val               ( 0x00000052ul)

       

      What going wrong ?

       

      Can I change the Frequenz during the lifetime of the bootloader before I jump to the Firmware ?

       

      Thanks,

      Harald