Red State Machine editor (LPC15xx)

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

Red State Machine editor (LPC15xx)

1,791 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by BowlingNL on Fri Aug 22 06:38:04 MST 2014
I found a issue with the Red State Machine editor, the code generated has a minor fault.

The code generated by the Red State Machine editor:

LPC_SCT0->MATCH_L[0] = dutycycle;             /* matchDC */
LPC_SCT0->MATCHREL_L[0] = dutycycle;
LPC_SCT0->MATCH_L[1] = period;                          /* matchPeriod */
LPC_SCT0->MATCHREL_L[1] = period;


Should be:

LPC_SCT0->MATCH[0].L = dutycycle;             /* matchDC */
LPC_SCT0->MATCHREL[0].L = dutycycle;
LPC_SCT0->MATCH[1].L = period;                           /* matchPeriod */
LPC_SCT0->MATCHREL[1].L = period;


I generated code for the LPC1517.
0 项奖励
回复
5 回复数

1,702 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by BowlingNL on Wed Aug 27 07:29:59 MST 2014
I uninstalled LPCxpresso and did a new installation. That solved the problem, the new fzmparser generates the correct code now.

Thank you.

0 项奖励
回复

1,702 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Aug 27 06:55:39 MST 2014
Hi,

That looks like a permissions issue. Try the steps suggested in this Stack Overflow answer:

http://stackoverflow.com/a/24515901/1185484

0 项奖励
回复

1,702 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by BowlingNL on Wed Aug 27 06:27:25 MST 2014

Quote: BowlingNL
After replacing the old fzmparser.exe with the new fzmparser.exe I can't generate the code anymore from within the Red State editor. I get an message error message:

[img=442x156]http://www.lpcware.com/system/files/fzmparser%20message.jpg[/img]

When I put back the original file I get the same error message.



I was wrong, a part of the code is still generated (*_usr.h), even with the error message. But the issue I reported in this topic is still there with the new fzmparser executable.

0 项奖励
回复

1,702 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by BowlingNL on Wed Aug 27 06:13:31 MST 2014
After replacing the old fzmparser.exe with the new fzmparser.exe I can't generate the code anymore from within the Red State editor. I get an message error message:

[img=442x156]http://www.lpcware.com/system/files/fzmparser%20message.jpg[/img]

When I put back the original file I get the same error message.
0 项奖励
回复

1,702 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Aug 22 12:02:00 MST 2014
Hi,

Thank you for reporting that issue. It will be fixed in the next release of LPCXpresso IDE.  Also note that there was an SCT bug in an earlier 1500 LPCOpen library release which you may encounter if you try to configure the capure registers (eg LPC_SCT0->CAPCTRL[1].H)  - make sure you have the latest LPCOpen library to overcome that.

If you'd like to try out an alpha of the patch in your current build you can replace the buggy code generator with an alpha of the fixed version. Note that this has not been fully tested - use at your own risk etc.

The attached zip file contain three executables - one for Mac, Linux and Windows. Simply paste the fzmparse executable over the existing version of it located at:
{install_dir}/lpcxpresso/bin


For Linux and Mac you'll need to make sure that the file is execuitable e.g.:
chmod a+x fzmparser


0 项奖励
回复