Problems with CW10.6 or Erich Styger updated PE components

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problems with CW10.6 or Erich Styger updated PE components

跳至解决方案
914 次查看
tomasmickus
Contributor II

I have reinstalled Windows also with CW and Erich Styger component library both which were downloaded and installed on March 22, could someone say if Codewarrior version changed since then? Because i can't set two values in clock rate at SM1_SPIMaster component any more, clock rate parameter detail says "375kHz; 1 additional value in list:12MHz", before change it was "2 values in list", also SD card work only on 375kHz, it looks it can't accepts second value any more. It's frustrating, when something that worked, works no more. FRDM - KL25Z board.Even Erich Styger example with fatfs shows the same and don't work the same.No matter what frequency i choose for Mode1 in SM1_SPIMaster when i reopen it it writes the same numbers as Mode0.

0 项奖励
回复
1 解答
753 次查看
BlackNight
NXP Employee
NXP Employee

Hi Tomas,

I have now checked this in 10.6. The thing is that the project works, but as soon as I check the SPI clock values, the original 375kHz;12MHz ones get listed as 375kHz;375MHz (!!!), and changing/modifying the value get it changed to 375 MHz (which is wrong and correctly flagged as an error) :-(. I have submitted a ticket, and for now I do not have a workaround (except that you do not touch the values, as code generation seems fine for me).

Erich

在原帖中查看解决方案

0 项奖励
回复
4 回复数
754 次查看
BlackNight
NXP Employee
NXP Employee

Hi Tomas,

I have now checked this in 10.6. The thing is that the project works, but as soon as I check the SPI clock values, the original 375kHz;12MHz ones get listed as 375kHz;375MHz (!!!), and changing/modifying the value get it changed to 375 MHz (which is wrong and correctly flagged as an error) :-(. I have submitted a ticket, and for now I do not have a workaround (except that you do not touch the values, as code generation seems fine for me).

Erich

0 项奖励
回复
753 次查看
tomasmickus
Contributor II

Exactly. I checked with oscilloscope SPI clock frequency when writing to SD card data, it's 375kHz, it's representing Mode0 setting. So conclusion, now SD card can work only on initialize frequency, which is horrible for writing bunch of data, i measured to write 600B now takes 80ms. And i hope for update of cw10.6 or the best way if i could find where to download cw10.5 :smileyconfused:

0 项奖励
回复
753 次查看
BlackNight
NXP Employee
NXP Employee

The 10.5 is still on the web for download:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&fpsp=1&tab=Design_Tools_Tab

I suggest you get that version. No need to uninstall the 10.6 (keep it just in case): simply download the 10.5 and install it (into a different folder than 10.6 of course).

Let me know if you need any help with this.

Erich

753 次查看
tomasmickus
Contributor II

Thank you very much, i was looking for that but couldn't find. You make good libraries, tutorials, i think PE is best choice stepping from arduino to cortex world :smileyhappy:

0 项奖励
回复