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.

AM3358工程使用GNU编译器程序不能正常运行的问题?



processor_sdk_rtos_am335x_5_01_00_11里面的例程rtos_template_app时(编译器选择的是GNU v6.3.1)如下几行代码有的地方不能打断点:

uint16_t *p16;

p16=(uint16_t *)(0x08000000);

*(p16+0x555)=0x00aa;

*(p16+0x2aa)=0x0055;

*(p16+0x555)=0x0080;

*(p16+0x555)=0x00aa;

*(p16+0x2aa)=0x0055;

该段代码是擦除flash的代码,在本工程里面不能在第一行和第四行打断点,程序运行不正常,不能擦除flash。但是我重新建立了一个裸机程序,编译器选择了TI v18.1.1。flash擦除代码和上面的一样,程序可以正常打断点,flash擦除成功。可以确定是GNU编译器引起的问题,请问应该如何修改工程中GNU编译器的设置?