This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multiple call to segment warning

I am seeing this warning when I try to compile my code

Warning L15: multiple call to segment
segment: ?pr?_nvmwrit?nvmem_cc
caller1: ?pr?spicommisr?spi_com_cc
caller2: ?c_c51startup

I looked through my code, I don't call nvmwrite in spicommisr routine. And what is this c51startup file?

thanks,
DG

Parents
  • I did rebuild all target files and I also tried delete all object files in my hard drive, then compile again. It does not seems to make any difference.

    For the time being, I made the nvmwrite to be reentrant so I can keep working on my code. Now I am having a new "multiple call to segment" warning on a different function, but two callers are the same, ISR and C51startup.

    Only when I change optimization level to 1, I wouldn't have that warning, but my code is, of course, much bigger.

    I can post my code here, but it is kind long...

Reply
  • I did rebuild all target files and I also tried delete all object files in my hard drive, then compile again. It does not seems to make any difference.

    For the time being, I made the nvmwrite to be reentrant so I can keep working on my code. Now I am having a new "multiple call to segment" warning on a different function, but two callers are the same, ISR and C51startup.

    Only when I change optimization level to 1, I wouldn't have that warning, but my code is, of course, much bigger.

    I can post my code here, but it is kind long...

Children
No data