Hi Jam and Olivier，I learned about nOS from Wikipedia. And Now I tried to develop stm8s208c8 application based on nOS. But I found that when the hex file was larger than 32K, It would not work properly.
First, I set the code model to small and the optimization level to none , the IAR made the following mistakes:
Error[Lp011]: section placement failed
unable to allocate space for sections/blocks with a total estimated minimum size of 0x9370 bytes (max align 0x1) in <[0x008000-0x00ffff]> (total uncommitted space 0x7f80).
But when I set the optimization level of IAR to High(Size), I successfully compiled a hex file less than 32K. And It works properly.
And then I set the code model to medium, the compiled hex file less than 32K is OK，But when the hex file is larger than 32K, it would not work properly.
I'm a beginner at IAR and I haven't found the cause of the mistake so far.
Do you have any suggestions on this issue?