This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F2132: 使用MSP430F2的单片机时只用了一个ADC的I2C初始化驱动程序就提示代码量过大,是因为单片机flash太小了吗?8K的flash应该能写不少的程序吧?

Part Number: MSP430F2132

使用MSP430F2132单片机驱动一个ADC,ADC是用I2C驱动的,现在只完成了I2C的初始化和ADC的数据采集部分的程序,这个ADC的初始化和数据读取并不复杂,但是编译时报错:program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment fails for section ".text" size 0x233a. Available memory ranges:
请问这是因为单片机的8Kflash太小了吗?还是因为其他原因,如果不换单片机可以解决吗?