devkit-MPC5744P example project "i2c_pal_mpc5744p" No source available for "0x10050c8" error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

devkit-MPC5744P example project "i2c_pal_mpc5744p" No source available for "0x10050c8" error

1,189 Views
bingwang312
Contributor III

i am new to this MPC5744P Devkit and S32DS. when I try to debug an example, this error "No source available for "0x10050c8"" show up and no idea why, here is what i did:

1) created the example project "i2c_pal_mpc5744p" of MPC5744P from SDK 3.0.3 in S32DS from its example pool.  I did nothing change on code. 

2) clicked "Generate Processor Expert code", then build, everything fine.

3) debug using "i2c_pal_mpc5744p_debug_ram_pemicro", click play, it got frozen somewhere, clicked pause, it shows  "No source available for "0x10050c8""  error.

4) set some breakpoints, tracked down to : "clock_MPC57xx.c"
status_t CLOCK_DRV_Init(clock_manager_user_config_t const * config)
{
status_t result = STATUS_SUCCESS;

DEV_ASSERT(config != NULL);   // it froze here, click pause, shew  "No source available for "0x10050c8""  error.

question: is it a bug for the driver "clock_MPC57xx.c"???

0 Kudos
9 Replies

1,139 Views
bingwang312
Contributor III

I tried SWI2C example again, could anyone tell me why/what is happening?

1)- see the picture, before execute DEV_ASSERT(), the "config" looks ok, it has value.

The values are ok before DEV_ASSERT().

bingwang312_1-1638518801432.png

 

2)-After DEV_ASSERT() ,  errors in ONCE status register in console window , and wired ASM code in disassembly window “se_illegal”

bingwang312_2-1638518801787.png

 

3)- Click resume/play button again, it got frozen at DEV_ASSERT(), then click pause, same errors and and wired ASM code in disassembly window “se_illegal”.

bingwang312_3-1638518802102.png

 

4)--Now I can not check the value of “config”,( in cursor yellow pop_up window)

bingwang312_4-1638518802462.png

 

 

0 Kudos

1,080 Views
bingwang312
Contributor III

I am still struggling on this example of I2C bus , and tried different things on it, it seems it won't work and i donot know why.  could anybody give a suggestion? do we have any other driver or library to use for i2c bus on this DEVKIT MPC5744P board? thanks

0 Kudos

1,174 Views
bingwang312
Contributor III

I tried another example from SDK3.0.3, "hello_world_mpc5744p", the LED blinks , works fine. the S32DS IDE is always updated, so most likely , there is a bug in that "clock_mpc5744p.c " or bug in that example "i2c_pal_mpc5744p"???? could anyone help me out? what should i do with this I2C function, I will need this i2c function soon, and i hope this chip works.

0 Kudos

1,169 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tested same example and it works fine, no hanging in clock init function.
What if you try "swi2c_master_mpc5744p" demo directly, will it run?

BR, Petr

0 Kudos

1,098 Views
bingwang312
Contributor III

1)--today, I tried to use "i2c_pal_mpc5744p" example to write one byte data to a PCF8574 I/O expension module, I deleted "receive" function, only use "send" function to write data,  but no data was written into PCF8574, it means this example does not work. 

2)-- a question: in this example, why does it define 4 pins for I2C communication? see code:

/* SWI2C SDA pin configuration */
swi2c_pin_t i2c1_sda0 =
{
.port = PTC,
.pinNumber = 14,
};

/* SWI2C SCL pin configuration */
swi2c_pin_t i2c1_scl0 =
{
.port = PTC,
.pinNumber = 10,
};

/* SWI2C SDA read pin configuration */
swi2c_pin_t i2c1_sdaRead0 =
{
.port = PTE,
.pinNumber = 14,
};

/* SWI2C SCL read pin configuration */
swi2c_pin_t i2c1_sclRead0 =
{
.port = PTE,
.pinNumber = 15,
};

in the upper example, I tried to use SDA0 and SCL0 pins only for writing.

0 Kudos

1,132 Views
bingwang312
Contributor III

i tried SWI2C example from SDK PA 3.0.0 again, see the upper pictures,( sorry I might put them too high,) 

is it the problem of the "openSDA  Embedded" USB debugger ?

bingwang312_0-1638519486111.png

 

0 Kudos

1,161 Views
bingwang312
Contributor III

i tried  "swi2c_master_mpc5744p" demo,   it is same problem, error "No source available for "0x10050c8"". i also tried another FLEXCAN demo and it shows another "no source available for .....", and i found when i close a project, it always pop up a error saying  "checking xxxxxxxproject has encountered a problem" in detail " Resource '/swi2c_master_mpc5744p' is not open.
OK
Resource '/swi2c_master_mpc5744p' is not open.
OK
OK

I tried reintallation but same , i will try to uninstall entire software and reinstall it ,will renew the poste here .  hopefully it is just problem of my  system.

thanks, Peter

 

 

0 Kudos

1,150 Views
bingwang312
Contributor III

I have downloaded and uninstalled the old S32DS and then reinstalled it, same problems happens again and again. I also tried S32DS examples  instead of examples from SDK3.0.0 or SDK3.0.3, the examples worked fine, so may i guess there is something wrong between SDK 3.0.0/3 and the S32DS software or problem with the Processor Expert? 

I searched the community, someone said it might be the GCC and GDB version problems?

any clue is welcome, thanks pals

0 Kudos

1,144 Views
bingwang312
Contributor III

today , I installed S32DS PA V2.1 on another laptop windows10, tried SDK PA 3.0.0 and 3.0.3 examples , similar problems again. I really think there might be something incompatible to each other on  my pc.  by the way, I am using "GDB PEMicro Interface Debugging ", is it a problem?

0 Kudos