Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What does the PICC STD error, something like “cant find xxxx words/bytes for psect in segment BANK0”, mean?

0
Posted

What does the PICC STD error, something like “cant find xxxx words/bytes for psect in segment BANK0”, mean?

0

See also the general discussion of errors with memory allocation performed by the linker in the FAQ: I get an error something like “cant find xxxx words/bytes for psect in segment yyyy” This FAQ deals specifically with the PICC STD compiler and is not relevant for any other compiler, in particular, this is not relevant when using an OCG compiler in Standard mode. With PICC STD compiler there are often messages similar to: Can’t find space for psect rbss_0 in segment BANK0 (error) It means that you have run out of space in RAM bank 0. The error might also mention the class COMBANK, depending on the circumstances. The common memory is shared with bank 0. The solution is most likely that some variables need to be moved into banks 1, 2 or 3. You do this by prefixing the variable declarations with a qualifier like bank1, e.g. bank1 int fred; Naturally you should group variables often accessed together in the same bank. You can’t use the bank qualifiers with auto variables, functions or para

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.