Upgrade Patch Issue
Moderator: Benj
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Upgrade Patch Issue
Hello,
Just did patch to latest version (FC6), and now after initializing the uart2 port
on my 18F25K22, it hangs when i try send a string out the port....
Was working before the patch...no code change
Help?
Thanx
Mark
Just did patch to latest version (FC6), and now after initializing the uart2 port
on my 18F25K22, it hangs when i try send a string out the port....
Was working before the patch...no code change
Help?
Thanx
Mark
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Upgrade Patch Issue
Hi Mark,
Can you check the component properties and make sure they have sensible values. I'm not aware of anything we might have changed which would have caused this.
Can you check the component properties and make sure they have sensible values. I'm not aware of anything we might have changed which would have caused this.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Upgrade Patch Issue
Hi Ben,
I double checked everything, baud rates etc etc....no go.
I actually put some routines into FC5 and everything works fine.
Actually there is more serious stuff going on as well, before the patch
if i did SPI initialization, the uart1 and uart2 would stop working,
and even with the SPI init icon disabled, uart1 interrupt would not work
I must say i am somewhat under whelmed with FC6, had the devils own
business trying to figure out whats wrong, and caused me to miss
a demo on a piece of equipment![Sad :(](./images/smilies/icon_sad.gif)
I double checked everything, baud rates etc etc....no go.
I actually put some routines into FC5 and everything works fine.
Actually there is more serious stuff going on as well, before the patch
if i did SPI initialization, the uart1 and uart2 would stop working,
and even with the SPI init icon disabled, uart1 interrupt would not work
I must say i am somewhat under whelmed with FC6, had the devils own
business trying to figure out whats wrong, and caused me to miss
a demo on a piece of equipment
![Sad :(](./images/smilies/icon_sad.gif)
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Upgrade Patch Issue
Hi Mark,
It seems this device may have some hidden problems lurking. The silicon errata document lists a few of issues concerning the UART and SPI.
Can you send me your v6 and v5 programs and I will compare the generated code for you. You can PM the programs to me if they are sensitive.
It seems this device may have some hidden problems lurking. The silicon errata document lists a few of issues concerning the UART and SPI.
Can you send me your v6 and v5 programs and I will compare the generated code for you. You can PM the programs to me if they are sensitive.
I'm sorry to hear this. We have worked very hard on v6 and collectively feel it is a big improvement on v5. There is just a tonne of stuff you can do in v6 that you could not in v5 and the code stability should be much better than v5 now not worse.I must say i am somewhat under whelmed with FC6, had the devils own business trying to figure out whats wrong, and caused me to miss a demo on a piece of equipment
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Upgrade Patch Issue
Hi Ben,
OK i will put some example stuff together to compare...
I truly like FC as it makes things easier to put together and
it must have been heaps of work to make what it is!
And i understand that one cannot cater for every single
hidden funny...still amazing product![Smile :)](./images/smilies/icon_smile.gif)
OK i will put some example stuff together to compare...
I truly like FC as it makes things easier to put together and
it must have been heaps of work to make what it is!
And i understand that one cannot cater for every single
hidden funny...still amazing product
![Smile :)](./images/smilies/icon_smile.gif)
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Upgrade Patch Issue
Hi Ben,
Eventually got round to making up a little routine to demonstrate the bug i have in FC6
The attached fcfx file is based on FC6.1.2.0 , i rolled back the latest upgrade to the
version the test file is based on. So when SPI is initialized, uart1 still works, but uart2
does not respond to interrupt on char receive, i know this because i flash led
briefly in the int service routine.
Basically all i do is catch a char coming in and send it straight back out.
Uart1 works but not Uart2, led does not flash so it means the interrupt is not working.
They both work OK if i disable the SPI bus (not initialise)
Procesor is 18F25K22 internal osc at 16mhz
I would like whatever bug it is to be gone from the latest FC6 that i want to
download, so please look at the latest version as well.
And make sure all functions on both uarts are doing TX / RX and RX with interrupt
Thank you!
Mark
Eventually got round to making up a little routine to demonstrate the bug i have in FC6
The attached fcfx file is based on FC6.1.2.0 , i rolled back the latest upgrade to the
version the test file is based on. So when SPI is initialized, uart1 still works, but uart2
does not respond to interrupt on char receive, i know this because i flash led
briefly in the int service routine.
Basically all i do is catch a char coming in and send it straight back out.
Uart1 works but not Uart2, led does not flash so it means the interrupt is not working.
They both work OK if i disable the SPI bus (not initialise)
Procesor is 18F25K22 internal osc at 16mhz
I would like whatever bug it is to be gone from the latest FC6 that i want to
download, so please look at the latest version as well.
And make sure all functions on both uarts are doing TX / RX and RX with interrupt
Thank you!
Mark
- Attachments
-
- TEST_UART_SPI_FC6.fcfx
- (20.49 KiB) Downloaded 277 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Upgrade Patch Issue
Hi Mark,
I have just looked in to this issue for you.
First you need to apply the unoffical fix posted here
But since you have got that part working now on to the issue.
If you have a look at SPI properties, you will see the connections: DAC En going to B7 and NVM En going to B6: Both of them are also used for RS232 channel 2.
So both SPI and RS232 ch 2 are conflicting.
The way around is to assign DAC En & NVM En to pins you don't currently use.
Martin
I have just looked in to this issue for you.
First you need to apply the unoffical fix posted here
But since you have got that part working now on to the issue.
If you have a look at SPI properties, you will see the connections: DAC En going to B7 and NVM En going to B6: Both of them are also used for RS232 channel 2.
So both SPI and RS232 ch 2 are conflicting.
The way around is to assign DAC En & NVM En to pins you don't currently use.
Martin
Martin
-
- Posts: 502
- Joined: Wed Nov 07, 2007 6:51 pm
- Location: Antwerp Belgium
- Has thanked: 121 times
- Been thanked: 108 times
- Contact:
Re: Upgrade Patch Issue
Hello, my guess in this post: http://www.matrixtsl.com/mmforums/viewt ... 54&t=17422 is an issue with the Flowcode V6 I2C component too.
I've made the same chart in V5 but I can't get the connections right to test V6 to V5.
Are there more issues with V6 I2C?
I've made the same chart in V5 but I can't get the connections right to test V6 to V5.
Are there more issues with V6 I2C?
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Upgrade Patch Issue
Hi Martin,
Been trying to test the pin assignment thing to not have the SPI interfere
with Uart2, and had to re-install FC6 for another reason....
now, i get this message when i try compile the same test program:
missing or corrupted tdf.dll file
Reading mapping of:PIC18F25K22 failed
failure
C:\Program Files\Flowcode 6\compilers\pic\boostc\boostlink_picmicro.exe reported error code -2
FINISHED
I really dont know whats going on...even tried latest version of FC6....same thing????
The file is not missing, it is there and does this on both versions....backwards and forwards of revisions
Been trying to test the pin assignment thing to not have the SPI interfere
with Uart2, and had to re-install FC6 for another reason....
now, i get this message when i try compile the same test program:
missing or corrupted tdf.dll file
Reading mapping of:PIC18F25K22 failed
failure
C:\Program Files\Flowcode 6\compilers\pic\boostc\boostlink_picmicro.exe reported error code -2
FINISHED
I really dont know whats going on...even tried latest version of FC6....same thing????
The file is not missing, it is there and does this on both versions....backwards and forwards of revisions
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Upgrade Patch Issue
Hi Mark,
What about trying a flowcode 6 repair first?
Just go to Programs and features or add/remove programs depending on operating system.
Select Flowcode 6 then the repair option.
If that fails then see this post.
Martin
What about trying a flowcode 6 repair first?
Just go to Programs and features or add/remove programs depending on operating system.
Select Flowcode 6 then the repair option.
If that fails then see this post.
Martin
Martin
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Upgrade Patch Issue
Hi Martin,
Fixed the problem, it was to do with another DLL that was corrupted by the new
installation or something, i downloaded a patch that sorts windows out....thanx.
Busy testing the SPI / Uart issue now....according to your advice about CS interfere
with the uart2
Should i still use the patch file you suggested? I think it was cal_uart file...
Fixed the problem, it was to do with another DLL that was corrupted by the new
installation or something, i downloaded a patch that sorts windows out....thanx.
Busy testing the SPI / Uart issue now....according to your advice about CS interfere
with the uart2
Should i still use the patch file you suggested? I think it was cal_uart file...
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Upgrade Patch Issue
Hi Mark,
If no then patch is required.
Martin
Depends, if CH2 works or not.MarkW wrote:Should i still use the patch file you suggested? I think it was cal_uart file...
If no then patch is required.
Martin
Martin
-
- Flowcode v5 User
- Posts: 118
- Joined: Thu Sep 17, 2009 1:30 pm
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Upgrade Patch Issue
Hi Martin,
Well it seems all is OK now, the CS thing was an issue....that was sharp shooting
my friend
sometimes one cannot see the forest for the trees
Going to goto the latest vers of FC now, see if it all holds together
Thank you for your help!
(Someone give this man a drink on the house!)
Mark
Well it seems all is OK now, the CS thing was an issue....that was sharp shooting
my friend
![Cool 8)](./images/smilies/icon_cool.gif)
sometimes one cannot see the forest for the trees
Going to goto the latest vers of FC now, see if it all holds together
Thank you for your help!
(Someone give this man a drink on the house!)
Mark