Search found 51 matches

by crispin12
Thu Nov 22, 2018 1:31 am
Forum: Flowcode V8
Topic: New install v8.1 xc16 PIC24 compiling but not linking assembling
Replies: 3
Views: 2683

Re: New install v8.1 xc16 PIC24 compiling but not linking assembling

Hello again Ben You were right after all about the batch file being out of date. I was comparing your batch file with the Flowcode 8.1 installed file (which are the same) when I should have been comparing it with the batch file in the Microchip compiler folder. As soon as I backed up the older Micro...
by crispin12
Thu Nov 22, 2018 1:18 am
Forum: Flowcode V8
Topic: PIC 32 bit test compilation not functioning
Replies: 2
Views: 2370

Re: PIC 32 bit test compilation not functioning

Hello Ben I managed to solve it. I was being too optimistic by just using a basic while 1 loop and not bothering to set up the clocks and configuration setting for these 32 bit devices. My oversight. As soon as I tried compiling PIC32 complete working snippets taken of the forum the flowcodes compil...
by crispin12
Wed Nov 21, 2018 2:26 pm
Forum: Flowcode V8
Topic: PIC 32 bit test compilation not functioning
Replies: 2
Views: 2370

PIC 32 bit test compilation not functioning

Using the default compiler options as installed. on attempting to compile a test flowchart with a single while 1 loop I get this message. Launching the compiler... C:\Program Files (x86)\Flowcode 8\Compilers\pic32\bin\xc32-gcc.exe -mprocessor=32MM0016GPL020 -O1 -o "C:\TEMP\Flowcode1.elf" "C:\TEMP\Fl...
by crispin12
Wed Nov 21, 2018 12:55 pm
Forum: Flowcode V8
Topic: moving the chart icons in the main window
Replies: 2
Views: 2199

Re: moving the chart icons in the main window

Ah that explains it. I'm using a small screen laptop at the moment. It's really no big deal. Its just on my Flowcode 7 installation on that laptop the icons are vertical on the left side of screen so I was thinking the Flowcode 8 would appear the same? I haven't changed the screen resolution.
by crispin12
Wed Nov 21, 2018 12:32 pm
Forum: Flowcode V8
Topic: New install v8.1 xc16 PIC24 compiling but not linking assembling
Replies: 3
Views: 2683

Re: New install v8.1 xc16 PIC24 compiling but not linking assembling

Hello Ben I downloaded and installed the 8.1 yesterday. Your bat file is identical to the installed one. The linker code in the compiler settings are (microchip 16 pro) (copied from my Flowcode 7 settings) $(appdir)compilers\pic16\batchfiles\pic16_C30_link.bat "$(outdir)$(target)" $(chip:u) $(family...
by crispin12
Wed Nov 21, 2018 2:05 am
Forum: Flowcode V8
Topic: New install v8.1 xc16 PIC24 compiling but not linking assembling
Replies: 3
Views: 2683

New install v8.1 xc16 PIC24 compiling but not linking assembling

On testing my installation for PIC 16 bit devices I set up a simple test flowchart called Flowcode1 with a while 1 loop and tried to compile to HEX. It compiles ok but doesn't link when using either the default Flowcode xc16 or the Microchip xc16 compiler. In both cases the output text msg indicates...
by crispin12
Tue Nov 20, 2018 9:01 pm
Forum: Flowcode V8
Topic: moving the chart icons in the main window
Replies: 2
Views: 2199

moving the chart icons in the main window

Just installed v8.1 and got everything setup but for the life of me I can't work out how to move the chart icon toolbar from the horizontal position back to the vertical left side of screen which is how it was in v6 and v7? I'm referring to the toolbar holding the delay, input, output, loop, macro e...
by crispin12
Fri Sep 28, 2018 4:38 pm
Forum: E-blocks
Topic: EB006 or the new MK2 multiprogrammer
Replies: 1
Views: 4843

EB006 or the new MK2 multiprogrammer

Looking at purchasing one of the multiprogrammers but not sure on the old or the new. I realise a quick answer would be go for the latest but I need immediate access to the peripheral EBlocks like RS485, LCD, ADC pot control, temp/humidity etc. Need something that works out the box with minimum fuss...
by crispin12
Fri Sep 28, 2018 12:45 pm
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

Thanks for the heads up on the Ghost question. The suggestion of using 2 PCs is something I had considered because you can pick up a reasonably good second hand middle of the road laptop quite cheaply. The idea of using 2 Ghost sessions, one for transmit, the other for receive to single step debug b...
by crispin12
Fri Sep 28, 2018 11:16 am
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

I suspected that the sim wasn't handling the 9 bit but what totally stumped me is why it handles it in the slave (same chip) when the master signals to the slave? For the slave to transmit anything it first has to receive a 9 bit code (0x181) from the master, It doesn't make sense at all. So I decid...
by crispin12
Fri Sep 28, 2018 1:53 am
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

As a follow up I've just tried changing RxVal to an unsigned integer and then I tried changing to a signed integer. In both cases RxVal now takes the value of 2048 and my LCD displays 204. However, this is still wrong. The decimal value going into the var should be 127.
I'm mystified!
by crispin12
Fri Sep 28, 2018 1:34 am
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

Well I think I've nearly cracked it and hopefully with your greater coding experience you might be able to look at my Master unit Flowcode once again and provide the missing link. Summary: 1. Information from the Master IS arriving at the Slave and being processed. 2. The Slave is sending back the r...
by crispin12
Thu Sep 27, 2018 3:15 pm
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

Actually that is the line number of the UART c code file. Proteus has the ability using the cof file to display the source code (high level) so any time you pause the simulation you can see what the high level source line is (equivalent to the low level code) that is being executed at the moment the...
by crispin12
Thu Sep 27, 2018 10:21 am
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

Thanks for the confirmation on the error handling. However I'm puzzled why my debugger was clearly showing the program was stuck in that section of code. Whenever I paused the program it was always stuck at line 0163 (355). If I stepped forward through the next 40 lines of code the program always ju...
by crispin12
Wed Sep 26, 2018 11:38 pm
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Re: Can anyone confirm this RS485 Master Slave works please

Hello LeighM Sorry for the delay in getting back. Thanks for catching the 2mS 3mS difference in the code. I have made 3mS the default throughout but sadly it made no difference. No I'm not using hardware but doing a quick evaluation in Proteus sim just to see if it runs in simulation ..... but it do...
by crispin12
Tue Sep 25, 2018 2:10 am
Forum: 8-Bit PIC
Topic: Can anyone confirm this RS485 Master Slave works please
Replies: 13
Views: 9316

Can anyone confirm this RS485 Master Slave works please

I have played around with the Master Slave RS485 example files provide by Matrix (Steve) some years ago. It was done in an earlier version of Flowcode and I have basically just imported it into Flowcode 7 and made a couple of changes. Code is attached. Has anyone got a couple of old 16F877A chips on...
by crispin12
Thu Sep 06, 2018 10:59 pm
Forum: User Components
Topic: Arduino Library - IridiumSBD
Replies: 2
Views: 5226

Re: Arduino Library - IridiumSBD

Hello Kersing I agree with you about component development resources. I know this is hashing over old ground and has been covered on the forum at other times but when Matrix took on making the Arduino a target for code compilation I wonder if they really had thought out the benefits versus the dev c...
by crispin12
Thu Sep 06, 2018 8:45 pm
Forum: User Components
Topic: Arduino Library - IridiumSBD
Replies: 2
Views: 5226

Arduino Library - IridiumSBD

Is there any chance of Matrix turning the IridiumSBD arduino library into a component that can be used primarily as an Arduino component in Flowcode and later possibly a more advanced version to work as a component with other controller families? The library facilitates comms with the Rockblock sate...
by crispin12
Fri Aug 03, 2018 4:02 pm
Forum: 8-Bit PIC
Topic: Microchip's __EPROM_DATA macro statement
Replies: 13
Views: 11884

Re: Microchip's __EPROM_DATA macro statement

Ah ok. The decision loop will work fine thanks.

Thanks for the support.
by crispin12
Fri Aug 03, 2018 3:50 pm
Forum: 8-Bit PIC
Topic: Microchip's __EPROM_DATA macro statement
Replies: 13
Views: 11884

Re: Microchip's __EPROM_DATA macro statement

Eh? ... so you have to have a run time instruction in order to get the programmer insert EEPROM initialisation values during programing? Ben I'm confused. Why? The programing of values into a chip should have no dependencies on the compiled run-time code fetched by the program counter at boot up. Yo...
by crispin12
Fri Aug 03, 2018 2:14 pm
Forum: 8-Bit PIC
Topic: Microchip's __EPROM_DATA macro statement
Replies: 13
Views: 11884

Re: Microchip's __EPROM_DATA macro statement

Ben, Just tried the EEPROM component using data copied from your earlier reply example into the PIC1936 and after compiling and looking at the generated c code there is no #ifdef MX_CAL_PIC __EEPROM_DATA(1,2,3,4,5,6,7,8); __EEPROM_DATA(9,10,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF); #endif anywhere in the file...
by crispin12
Thu Aug 02, 2018 3:50 pm
Forum: 8-Bit PIC
Topic: Microchip's __EPROM_DATA macro statement
Replies: 13
Views: 11884

Re: Microchip's __EPROM_DATA macro statement

Hi Ben Ok so just making sure I understand this. What you are saying is the Flowcode EPROM component generates the EEROM code inserted when the chip is programmed. So if the program, when running, later changes some of the EEPROM values, AND I later reboot/repower the chip, the EEPROM values in the ...
by crispin12
Thu Aug 02, 2018 9:32 am
Forum: 8-Bit PIC
Topic: Microchip's __EPROM_DATA macro statement
Replies: 13
Views: 11884

Re: Microchip's __EPROM_DATA macro statement

Hi Kersing

I thought the EEPROM component was a run-time component not a pre-run-time component. Does it set the EEPROM cells when the PIC is being programmed before PIC code is running?
by crispin12
Wed Aug 01, 2018 11:51 pm
Forum: 8-Bit PIC
Topic: Microchip's __EPROM_DATA macro statement
Replies: 13
Views: 11884

Microchip's __EPROM_DATA macro statement

Microchip's help desk said the __EEPROM_DATA macro is the only way they recommend to initialize the EEPROM values at programming time. E.G. place as many '8 byte' long __EEPROM_DATA statements as you need. It is simple and works always. Compiler places data in the order you will have them in your C ...
by crispin12
Wed Aug 01, 2018 1:15 am
Forum: 8-Bit PIC
Topic: Adding control codes to a string
Replies: 1
Views: 4291

Adding control codes to a string

I've inserted a UART component macro into my program that is Send String. In the macro properties window I have the Name - Data, Type <- STRING, and Expression "This is a string" How do you add the control codes for end of string and line feed? In the expression box do I type "This is a string \0\r\...