|
|
View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jun 17, 2016 10:54 am |
|
|
CCS quickly emailed me a new PCH.DLL file. I used it to replace the one
in the DLL\5.059\ subdirectory in the CCS folder. It fixed the problem.
When I ran the test program shown below in MPLAB vs. 8.92 simulator
it displayed the following results in the Output Window. This is the correct output:
Quote: |
> Menu1
> Menu2
> Menu2 sub1
> Menu2 sub2
|
Test program:
Code: | #include <18F46K20.h>
#fuses INTRC_IO, NOWDT, PUT, NOPROTECT, NOBROWNOUT
#use delay(clock=16M)
#use rs232(baud=9600, UART1, ERRORS)
#define ALL_MENU 4
enum ids{ _BEGIN,
_MAIN,
_MAIN1,
_MAIN11,
_MAIN12
};
struct TypeMenu {
int8 MenuID;
int8 SubMenu;
char MenuName[18];
};
//-------------------------------------------
const struct TypeMenu MenuTest[ALL_MENU]
={
{_MAIN, _BEGIN,"Menu1"},
{_MAIN1,_BEGIN,"Menu2"},
{_MAIN11,_MAIN1,"Menu2 sub1"},
{_MAIN12,_MAIN1,"Menu2 sub2"}
};
struct TypeMenu MenuPointer[2];
//==================================
void main()
{
int8 i;
int8 k;
k = 0;
for(i = 0; i < ALL_MENU; i++)
{
MenuPointer[k] = MenuTest[i];
printf("> %s \r", MenuPointer[0].MenuName);
}
while(TRUE);
} |
After installing the new PCH.DLL file, the compiler reports its version as
5.060. If you need this DLL file, contact CCS (if you own the compiler)
or wait for vs. 5.060 to be released. |
|
|
in_nursery
Joined: 25 Oct 2012 Posts: 51
|
|
Posted: Mon Jun 20, 2016 5:45 am |
|
|
thanks PCM programmer for your time and support.
I will contact ccs. |
|
|
younder
Joined: 24 Jan 2013 Posts: 53 Location: Brazil
|
|
Posted: Sun Oct 09, 2016 8:56 pm |
|
|
Hi in_nursery
I'm still facing the same problem as yours. With latest CCS Compiler version this menu code doesn't work! Were you able to found a solution for this other than compile the code with 5.50?
Thanks
Hugo _________________ Hugo Silva
Last edited by younder on Wed Oct 12, 2016 7:46 pm; edited 2 times in total |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19553
|
|
Posted: Mon Oct 10, 2016 3:22 am |
|
|
I don't think you have the same problem.
The fix, is there in 5.061, 5.062, and 5.064 (just tested all of them, and they run fine). |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|