Search found 1890 matches

by LeighM
Tue Mar 31, 2020 10:03 am
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

For example with my clock to generate 400 Khz I have to set this value 0x00901A53. How can I assign this value directly via flowcode (for example with a c icon) without having to edit the STARM_I2C_c file? Making this user configurable is a long term job, so I've updated our version to match your v...
by LeighM
Tue Mar 31, 2020 8:37 am
Forum: Bug Reports
Topic: Bug: round function causes compile error.
Replies: 12
Views: 64

Re: Bug: round function causes compile error.

I have skipped the same for the moment, I will do that once the file in update is corrected.

Yes, please wait until the new corrected version is available in the update system,
this might take some time as we have limited access to the office at the moment.
Thanks!
Leigh
by LeighM
Mon Mar 30, 2020 12:20 pm
Forum: Flowcode V7
Topic: ASCII parse problem
Replies: 2
Views: 41

Re: ASCII parse problem

You need to add a final null (0) after the last character written into StringCellNumber
This terminates the string.
Otherwise any preexisting characters in the array will be included in the string.
by LeighM
Mon Mar 30, 2020 11:45 am
Forum: Bug Reports
Topic: Bug: round function causes compile error.
Replies: 12
Views: 64

Re: Bug: round function causes compile error.

Hi Abhi,
Please try the attached to go into
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC
by LeighM
Mon Mar 30, 2020 11:18 am
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

Ah, well done!
Thanks for the update.
How can I assign this value directly via flowcode (for example with a c icon) without having to edit the STARM_I2C_c file?

I will have a think on that one
by LeighM
Mon Mar 30, 2020 11:04 am
Forum: Flowcode V8
Topic: Compiling errors
Replies: 2
Views: 38

Re: Compiling errors

Try adding GPS::Initialise()
by LeighM
Mon Mar 30, 2020 10:07 am
Forum: Flowcode V8
Topic: problem RXINT stm32
Replies: 12
Views: 117

Re: problem RXINT stm32

I think the problem is that if you don't immediately get D1=101 then you print 0 and wait a second. You need to synchronise with the incoming stream of characters. You probably need to use WaitForValue() or loop with GetByte() waiting for the 101, then wait for GetNumberBytes() to equal the number o...
by LeighM
Mon Mar 30, 2020 9:40 am
Forum: Flowcode V8
Topic: Interrupt UART RXINT1 on dsPIC 33EP256MU806
Replies: 5
Views: 68

Re: Interrupt UART RXINT1 on dsPIC 33EP256MU806

Hi, This is another example of where you would be better using the circular buffer component. Doing too much in an interrupt will cause problems. You really need to be just receiving the one character, into a buffer, on the interrupt. Then process the information back out of the buffer in the main l...
by LeighM
Mon Mar 30, 2020 9:25 am
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 6
Views: 313

Re: CanBus Read Example

A few possibilities: What MCP2515 hardware are you using? Does it have 20MHz crystal? (Some Arduino modules have 16MHz) You could use the ShowLEDs() macro to toggle outputs on the MCP2515 to check that the SPI is connected and working? What is the incoming rate of the CAN messages? You have got quit...
by LeighM
Fri Mar 27, 2020 4:55 pm
Forum: Flowcode V8
Topic: Getting a 16F1937 to run at 32mhz
Replies: 3
Views: 50

Re: Getting a 16F1937 to run at 32mhz

Hi,
You just have a typo in your C icon, the code between /* and */ is ignored ...

Code: Select all

/*
*/
OSCCON=0xF0;

by LeighM
Fri Mar 27, 2020 4:43 pm
Forum: Flowcode V8
Topic: Interrupt UART RXINT1 on dsPIC 33EP256MU806
Replies: 5
Views: 68

Re: Interrupt UART RXINT1 on dsPIC 33EP256MU806

What about hardware, anything running over-voltage, hot, inadequate power supply?
by LeighM
Fri Mar 27, 2020 3:39 pm
Forum: Flowcode V8
Topic: Ver. 8.2.1.14 > 8.2.2.15
Replies: 6
Views: 85

Re: Ver. 8.2.1.14 > 8.2.2.15

by LeighM
Fri Mar 27, 2020 2:39 pm
Forum: Flowcode V8
Topic: Ver. 8.2.1.14 > 8.2.2.15
Replies: 6
Views: 85

Re: Ver. 8.2.1.14 > 8.2.2.15

Do I also run the Hotfix ?

Yes
by LeighM
Thu Mar 26, 2020 6:04 pm
Forum: Bug Reports
Topic: FC 8.2 + PIC32MZ + USB HID
Replies: 20
Views: 1424

Re: FC 8.2 + PIC32MZ + USB HID

Did you change the compiler location as Ben's earlier post?
Location: $(compilerpic32)batch\PIC32compHID.bat
by LeighM
Thu Mar 26, 2020 12:02 pm
Forum: Bug Reports
Topic: FLOWCODE FORCE WINDOWS SHUT DOWN
Replies: 2
Views: 24

Re: FLOWCODE FORCE WINDOWS SHUT DOWN

Are you up to date with Windows 10?
version 1909 is stable

Also see this topic ...
viewtopic.php?f=78&t=21531&start=25
by LeighM
Wed Mar 25, 2020 11:54 am
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

Thanks for the info.
Yes, getting the timing correct is tricky, it depends on the clock config settings.
Can you live with that for now in your project?
I will have to have a longer term think about how we get Flowcode to understand the clock settings.
Thanks
Leigh
by LeighM
Wed Mar 25, 2020 10:59 am
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

Thanks for your tests.
I now have channel 2 working :D
please use attached files
Thanks,
Leigh
by LeighM
Wed Mar 25, 2020 9:42 am
Forum: Flowcode V8
Topic: problem RXINT stm32
Replies: 12
Views: 117

Re: problem RXINT stm32

The circular buffer component is ideal for this kind of scenario. To use the circular buffer, just enable the interrupt at the start of your program, use the interrupt routine to read one character into the buffer, do not disable the interrupt. Then in your main program you can retrieve the characte...
by LeighM
Tue Mar 24, 2020 6:03 pm
Forum: Flowcode V8
Topic: problem RXINT stm32
Replies: 12
Views: 117

Re: problem RXINT stm32

Try increasing the timeout value for the ReceiveChar(1) calls in macro RX232
e.g. ReceiveChar(2)
by LeighM
Tue Mar 24, 2020 5:53 pm
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

Yes, coronavirus is hitting everything, stay safe
Here's an updated file to try, to go into C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\STARM
by LeighM
Tue Mar 24, 2020 5:21 pm
Forum: Flowcode V8
Topic: problem RXINT stm32
Replies: 12
Views: 117

Re: problem RXINT stm32

Could you post your ST ARM Flowcode version?
by LeighM
Tue Mar 24, 2020 5:15 pm
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

OK, thanks, I'll investigate
by LeighM
Tue Mar 24, 2020 12:41 pm
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

OK, thanks.
I've just remembered that you are using the RC, so here's an updated FCD for that.
I recently spotted some 'gotcha' small print in the datasheet!
by LeighM
Tue Mar 24, 2020 12:17 pm
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 44
Views: 1028

Re: timer bug stm32f411VE

Hi, Yes, I've fixed it, but haven't yet made it into the office to update the system :( I'll dig out the files and attach them here, just a mo ... Please try these .. STARM_CAL_I2C.c to go into C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\STARM 32F030R8.fcdx to go into C:\ProgramData\MatrixTSL\FlowcodeV8...