原创 给IAR公司提了2个EWARM5.40的BUG

2009-11-27 14:59 2477 7 7 分类: MCU/ 嵌入式

1.
"Common subexpression elimination" is valid on volatile varibles in a struct.
I'm using STM32_StdPheriph Library, for SPI operation. I write a byte to DR, wait ready, and read the return value read from DR. If "Common subexpression elimination" is enabled in most size optimization, the data written to DR will be returned(instead of read DR).
And it's OK if using CodesourceryG++Lite, -Os optimization.

reply:
> The bug is reconfirmed and planned to be corrected in version 5.41.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



2.
I'm using STM32, debugging with OpenOCD(GDB interface). If STM32 is empty(after a mass-erase), IAR will fail to start debug session.
Reason:
If STM32 is empty, PC(r15) will be read as 0xFFFFFFFE, and IAR tries to read data at that location, which raise the error.

顺便看一下他们的应对,决定以后是否提出更多的BUG。
PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
7
关闭 站长推荐上一条 /3 下一条