Search found 445 matches

Return

by lexicon
Wed Aug 28, 2019 9:54 am
Jump to forum
Jump to topic

Re: dsPIC33EP512GM710 CAN bus stopped working

Hi Leigh, That gave the same results (CAN output but corrupted). It also generated these warning messages during compile: C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_CAN.c: In function 'FC_CAL_Internal_CAN_Init_1': C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_CAN.c:3...
by secs
Tue Sep 03, 2019 8:37 am
Jump to forum
Jump to topic

Re: Problems with MQTT Read

Thanks Leigh. Yes that makes sense. I have never really looked into the protocol but use it extensively in a house automation system via Node-Red and HomeAssistant. Because it simply works in the background I have never had to study it but sort of wondered if that was the case in a way. Will modify ...
by secs
Wed Sep 04, 2019 1:42 am
Jump to forum
Jump to topic

Re: Problems with MQTT Read

Just an update. For those interested, I run a Mosquitto Broker and looked up the stats for it The mqtt documentation explains that the maximum value of the keepalive is 18 hours 12 minutes and 15 seconds. But the mosquitto server disconnects the clients if it does not receive messages before 60 seco...
by Niko
Wed Sep 25, 2019 12:43 pm
Jump to forum
Jump to topic

Re: PIC18F45K50 FVR & IOC Port C not working

Thank you very much for the prompt fix Ben. I have updated and confirmed FVR is now available in ADC functions and IOC for Ports B & C are present in the interrupts selection list and my code compiles successfully for 18F45K50. Now you need to make the same changes to the other device files in t...
by Benj
Fri Oct 04, 2019 5:04 pm
Jump to forum
Jump to topic

Re: i2c Not working on Raspberry pi 1B

Hello, You need to pass the byte array via avariable, so create a byte variable as normal and at the end of the variable name add the square brackets and the number of items inside the array. e.g. myVar[3] You can then initialise the array using a calculation icon in your program. myVar[0] = 255 myV...
by Abelynux
Fri Oct 04, 2019 3:24 pm
Jump to forum
Jump to topic

Re: i2c Not working on Raspberry pi 1B

Hi Leigh! I was able to make it work with the software mode for the PCF and i2c_master components, the pull ups did it, Thanks for pointing that!... I can't make the cal_i2c work in hardware mode yet. I will be busy for a few days, so I may not be able to continue until end of next week. I still str...
by AbhijitR
Wed Oct 09, 2019 11:35 am
Jump to forum
Jump to topic

Re: Modbus slave RS485

Hello! v.rajaji I have used the Modbus Slave component in one of my projects and it worked absolutely well, I have attached the picture of the properties of the Slave component which I used, I hope this shall help. I used PIC16F1938 with internal clock at 4MHz. I used ModScan32 on my desktop compute...
by jgu1
Thu Oct 10, 2019 11:00 am
Jump to forum
Jump to topic

Re: STM32!

Hello all!

Meanwhile I managed to download the driver. Later this afternoon when I have install the driver, you hear. :D

Br Jorgen
by lexicon
Thu Oct 10, 2019 5:12 pm
Jump to forum
Jump to topic

Re: dsPIC33EP512GM710 CAN bus stopped working

I've configured Flowcode to compile using XC16 V1.41, but that in itself did not make any difference.
Not initialising the variable also made no difference.
I will conduct further experiments...
by lexicon
Fri Oct 11, 2019 4:11 pm
Jump to forum
Jump to topic

Re: dsPIC33EP512GM710 CAN bus stopped working

I tried some of the other PIC_CAL_CAN.c files, and although that didn't fix the issue, it was interesting that the versions that previously caused a device reset do not do so with the later compiler. Different variable configurations give varying results, but there's a definite pattern to the CAN ou...
by lexicon
Mon Oct 14, 2019 4:14 pm
Jump to forum
Jump to topic

Re: dsPIC33EP512GM710 CAN bus stopped working

A few more experiments with variable definitions resulted in more variations on the output: 5x int = 08 00 FC 1F FC 1F 08 00 6x = 00 00 FC 1F 00 00 FC 1F 7x = FC 1F FC 1F FC 1F FC 1F And then with 8 int's defined... it worked correctly. ETA: It seems like the pattern probably repeats then as 9 is th...
by lexicon
Tue Oct 15, 2019 2:20 pm
Jump to forum
Jump to topic

Re: dsPIC33EP512GM710 CAN bus stopped working

Due to a period of stupidity on my part, I was wrong to say that the device no longer resets with certain PIC16BIT_CAL_CAN.c files - it does, just the same :oops: Anyway, I have tried all 8 versions that I have, but I still get the same results - the ones that do not cause a reset have the corrupted...
by Lagoda
Thu Oct 17, 2019 10:15 pm
Jump to forum
Jump to topic

Re: 18F27K40 Silicon issue.

Hi Martin, Could you try this C code at the start of the program asm ("BSF NVMCON1, 7"); Source: https://www.matrixtsl.com/mmforums/viewtopic.php?f=76&t=20479 Have you tried it before? I used this solution for PIC18F67K40 MCU and it worked for me. Best Regards, Lagoda
by medelec35
Mon Oct 21, 2019 9:37 am
Jump to forum
Jump to topic

Re: 18F27K40 Silicon issue.

After some debugging I have worked out why silicon a002 is not working and a003 is.
With a002 the initial value of all variables are being cleared to 0 ("" for strings), no matter what values set within flowchart.
by jgu1
Mon Oct 21, 2019 5:02 pm
Jump to forum
Jump to topic

Re: STM32!

Hi Leigh. I made some test. I have test the Nucleo with an ILI9341. And compared with different Arduino Devices, I think the Ili9341 updating with Nucleo is twice as fast than the other devices waov :lol: And output is 3,3V so it is easy to connect. So, really powerfull. I made also a test with Ardu...
by medelec35
Tue Oct 29, 2019 1:55 pm
Jump to forum
Jump to topic

Re: 18F27K40 Silicon issue.

Update, After changing: #include <xc.inc> GLOBAL powerup, start PSECT powerup, class=CODE, delta=1, reloc=2 powerup: BSF NVMCON1, 7 GOTO start end To #include <xc.inc> GLOBAL powerup, start PSECT powerup, class=CODE, delta=1, reloc=2 powerup: BSF NVMCON1, 7 GOTO start end Flowcode compiles and hardw...
by mnf
Fri Nov 01, 2019 12:40 am
Jump to forum
Jump to topic

Re: Raspberry Pi system command.

Happy Halloween to you all.. A Flowcode Haunted House Project.... This was supposed to have been a weekend project - but building the house itself took a lot of time. It is from Matt Bergstrom's 'Cut and Assemble' haunted house book - and the result is a nicely detailed model. There is plenty of roo...
by kabouras_33
Sun Nov 03, 2019 6:46 pm
Jump to forum
Jump to topic

Re: UDP receive timeout

Ok fixed!!!!!!it took me a while but i found it with your help!!!thanks a lot!!!!
I just switched to another port and disabled the firewall from the ap :wink:
by mnf
Wed Nov 06, 2019 6:55 pm
Jump to forum
Jump to topic

Re: C-code

Hi Dutch, I had a little play with this after your previous post.. Can I suggest that you investigate arrays - rather than saving to 8 individual variables. It will make your code much easier to follow (and shorter to enter too - always good) I'd suggest using a property for the pins too - will make...