Hello Pratibha Surabhi,
sorry for that link, it is such error on web page, but attached is the RM.
Your code is mix of the two projects – for ZVM128 and for ZVM31. The files in folder structure are mixed too so I think the main issue is the compiler can’t reach the right *.prm file when is working on the ZVM31 project. That’s the reason the PFLASH_Send_Command function is not placed and referenced from RAM even if the code in PFlash.c is right:
#pragma CODE_SEG DEFAULT_RAM
void PFLASH_Send_Command(void)
{
asm PSH CCL; // 0x10 command
DisableInterrupts;
FSTAT_CCIF = 1; //launch command
while(FSTAT_CCIF == 0){}; //wait for done
asm PUL CCL; // 0x90 command
}
#pragma CODE_SEG DEFAULT
I want to suggest you to divide both projects – start the new Bareboard project for ZVM31 from scratch with right folder structure and then copy the code (not files) into properly aligned files. It would work because the usage of the memory controller looks good.
I wish you many success in your work.