AnsweredAssumed Answered

Creating M4 Partition

Question asked by Anjalik Krishna on Apr 8, 2019
Latest reply on Apr 9, 2019 by Anjalik Krishna

Hi ,

    For creating the M4 partition , I added -p3 option in soc.mak file and when I enabled the ALT_DEBUG_UART macro in the board.c file , the partition and memory regions were listed out and the partition 3 is visible. When I disable the ALT_DEBUG_UART macro no prints are displayed in M4 side and A53 side. I tried moving the debug related pads and resource in the below function from SC partiiton to boot partition

void board_config_sc(sc_rm_pt_t pt_sc)

{

 

   #ifdef ALT_DEBUG_UART
        (void) rm_set_resource_movable(SC_PT, SC_R_M4_0_UART, SC_R_M4_0_UART,
            SC_FALSE);
        (void) rm_set_pad_movable(SC_PT, SC_P_ADC_IN3, SC_P_ADC_IN2,
            SC_FALSE);
    #endif

 

ifndef ALT_DEBUG_UART

   (void) rm_set_pad_movable(SC_PT, SC_P_ADC_IN3, SC_P_ADC_IN2,
            SC_TRUE);
       (void) rm_set_resource_movable(SC_PT, SC_R_M4_0_UART, SC_R_M4_0_UART,
            SC_TRUE);
        (void) rm_move_all(SC_PT,SC_PT, BOOT_PT, SC_TRUE,
            SC_TRUE);

#endif

 

    (void) rm_set_resource_movable(pt_sc, SC_R_SC_I2C, SC_R_SC_I2C,
        SC_FALSE);
    (void) rm_set_pad_movable(pt_sc, SC_P_PMIC_I2C_SCL, SC_P_PMIC_I2C_SDA,
        SC_FALSE);
    (void) rm_set_pad_movable(pt_sc, SC_P_SCU_GPIO0_00, SC_P_SCU_GPIO0_01,
        SC_FALSE);
}

 

and in the system_config functions , the moved the pads and resources from Boot partiion to M4 as below;

 

        BRD_ERR(rm_set_pad_movable(pt_boot,SC_P_ADC_IN3,SC_P_ADC_IN2,
            SC_TRUE));
        BRD_ERR(rm_set_resource_movable(pt_boot,SC_R_M4_0_UART,SC_R_M4_0_UART,
            SC_TRUE));

 

 and finally

 

       BRD_ERR(rm_move_all(pt_boot, pt_boot, pt_m4_0, SC_TRUE, SC_TRUE));

 

 

I tried to configure the uart in M4 Partition .But this does not seems  to be working and the prints are still not coming

 

 Any help ?

 

 

Outcomes