🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

PSIM initialization problem for generated code

User: "s_pal"
Altair Community Member

Hi,
I am using PSIM generated code with ADC and PWM initialization by PS_SysInit(2, 20).
At same time, I needed to use I2C channel of f28377D. Thats why I used, Device_init() and Board_init() function generated C2000.syscfg.
Is it possible to merge two separate initialization function together?
The source code of Psbios.h is not available.
void PS_SysInit(int clkSrc, int extClk);

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Jack_2nd"
    Altair Employee

    Hi

    PS_bios does many peripheral initializations, if you want to manually add I2C, you need to choose I2C related code and put them into Initialize() function that SimCoder generated. Otherwise, it may cause some conflicts.

    You can manually add you code to the generated project, but you need to add all necessary include files to the project.

    Thanks

    User: "Curry"
    Altair Community Member

    Hello Jack,

    Is the PS_bios library viewable as c code? I'm trying to understand how a peripheral is initialized in my auto-generated program. Thank you.