ΣSigmaStudio Ask AI Русский Log in

printf issue on EZ kit adsp sc589

Processors & DSP GBiswal462 Apr 23, 2019 00:00 5 replies Original on forum ↗
Subscribe
GBiswal462 Question
Apr 23, 2019 00:00

Hi,

I am using adsp sc 589 ez kit and IDE CCES 2.8.0. I am running the attached project on the mentioned kit. It is having some issue with printf statement printf("\n address after increment is %x",pMUTWrite); (line no 55) in main.c file . While commenting the line 55 console is showing Test Passed... ( string of printf statement in line 72) and without commenting line 55, console is showing Test Failed... ( string of printf statement in line 76) .

GBiswal462 Reply
Apr 23, 2019 00:00

DDR3_Init_11032019.rar

LalithaS Reply
Apr 26, 2019 00:00

Hello,

We could able to replicate your issue in our side. While looking into your project, it seems that you defined the value of DMC0_START_ADDRESS is 0x8FFFFFFD. While stepping the code you have shared, the "DestBuff" buffer is not filled with expected data.

We modified the value of DMC0_START_ADDRESS as 0x8FFFFFFA and it works as expected with or without the printf statement available in the "line: 55".

Can you please confirm that, Is there any specific reason for defining the value of DMC0_START_ADDRESS is 0x8FFFFFFD.

Regards,
Processor Application Support.

GBiswal462 Reply
Apr 27, 2019 00:00

This code is just a DDR test program. In ADSP SC 589 ez kit DMC0 address range is 0x80000000 to 0x8FFFFFFF since it is of 256 MB. I have created a source buffer of size 4 byte. Then started writing the source buffer values in the DDR memory starting from 0x8FFFFFFD. So while writing the data from source buffer to DDR, only one byte will be missed out. I just want to know where the 1 byte data will be written.

Also if the data won’t be written in DDR, the failcount must increase. So why that printf statement in line 55 giving such behaviour?

GBiswal462 Reply
May 28, 2019 00:00

Please give a solution for the above problem. Its already one month

LalithaS Reply
May 31, 2019 00:00

Hi,

Apologies for the delay.

I am checking this and will get back to you as soon as possible.

Regards,
Lalitha.S