Tool/software:
Hi TI,
I'm trying to initialize some board modules : the pinmux, ClockInitMcu, ClockInitMain() and the uartStdioInit ones on the C7x.
I need to do that because those steps are required inside the memcpy_main_baremetal.c TI file. Because there have always been an issue while trying to use directly the Board_init() function (code that runs in loop), I kinda bypassed this function, and implemented this code based of the Board_init() function in the board_init.c file
/*
* main.c
*
* Created on: 30 juil. 2025
*
*/
#include <ti/board/board.h> //contient le statut BOARD_SOK
#include <ti/drv/sciclient/sciclient.h> //pour utilisation type Sciclient_ConfigPrms_t
#include <stdlib.h>
/* --- BIBLIO UTILISEES DANS FICHIER BOARD_INIT.c --- */
//#include "board_internal.h"
#include <ti/board/src/j721e_evm/include/board_internal.h> //contient Board_moduleClockInitMcu et Board_moduleClockInitMain
//#include "board_ethernet_config.h"
#include <ti/board/src/j721e_evm/include/board_ethernet_config.h>
//#include "board_utils.h"
#include <ti/board/src/j721e_evm/include/board_utils.h>
//#include "board_serdes_cfg.h"
#include <ti/board/src/j721e_evm/include/board_serdes_cfg.h>
// Ajout cf Wissam pour l'UART
#include <ti/drv/uart/UART.h>
#include <ti/drv/uart/UART_stdio.h>
#include <ti/drv/uart/soc/UART_soc.h>
// Ajout cf Wissam pour CLOCK
#include <ti/board/src/j721e_evm/include/board_clock.h>
//#include <ti/board/src/j721e_evm/include/board_utils.h>
// Add pour clock
#include <ti/board/src/j721e_evm/include/board_cfg.h>
#include <ti/board/src/j721e_evm/include/board_pll.h>
int main(){
/* ETAT DE LA CARTE */
Board_STATUS ret = BOARD_SOK;
Board_initCfg cfg;
// Config du pinmux // ETAT : OK !
if (cfg & BOARD_INIT_PINMUX_CONFIG){
ret = Board_pinmuxConfig();
printf("Initialisation du pinmux\n");
}
if (BOARD_SOK != ret){
return ret;
}
// Config de la clock
if (cfg & BOARD_INIT_MODULE_CLOCK)
{
ret = Board_moduleClockInitMcu();
if (BOARD_SOK != ret)
return ret;
ret = Board_moduleClockInitMain();
if (BOARD_SOK != ret)
return ret;
}
// /* SCICLIENT */
// Sciclient_ConfigPrms_t config;
}
However, whenever I try to debug and reach the line calling the function, the code always starts running in a loop. So clearly, there is an issue related to the functions...
I folllowed those steps while debuging:
- Launch script launch.js
- Run the R5F Core
- Connect C7x Core
- Load my previous code on C7x and then run it
Just to spare some wasted time, I put you there all the project include information:


Regards,
Mélanie



