Search found 1881 matches

by LeighM
Fri Mar 27, 2020 4:55 pm
Forum: Flowcode V8
Topic: Getting a 16F1937 to run at 32mhz
Replies: 3
Views: 42

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: 3
Views: 39

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: 77

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: 77

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: 1411

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: 22

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: 40
Views: 976

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: 40
Views: 976

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: 10
Views: 84

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: 10
Views: 84

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: 40
Views: 976

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: 10
Views: 84

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: 40
Views: 976

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: 40
Views: 976

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: 40
Views: 976

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...
by LeighM
Tue Mar 24, 2020 11:48 am
Forum: Flowcode V8
Topic: Learning Ghost
Replies: 5
Views: 213

Re: Learning Ghost

Hi,
You should connect the Flowkit pin marked D9 to whatever pin is used as ICD Clock on your target
and the Flowkit pin marked D8 to whatever pin is used as ICD Data on your target.
The Flowkit cannot be used to program the target, it would need to be disconnected.
Hope that helps.
Leigh
by LeighM
Mon Mar 23, 2020 9:04 am
Forum: Flowcode V8
Topic: STM32 how much memory and RAM left upon compiling?
Replies: 1
Views: 93

Re: STM32 how much memory and RAM left upon compiling?

Hi
The compiler output window has the information, for example ...

Code: Select all

   text      data       bss       dec       hex   filename
  14740         4      1704     16448      4040   ..\NUCLEO_F030R8.elf
 

text = code size
data + bss = ram size
by LeighM
Thu Mar 19, 2020 5:50 pm
Forum: Flowcode V8
Topic: STM32F411 STOP MODE
Replies: 4
Views: 87

Re: STM32F411 STOP MODE

Is this HAL library already built into flowcode??

Yes
by LeighM
Thu Mar 19, 2020 5:24 pm
Forum: Flowcode V8
Topic: STM32F411 STOP MODE
Replies: 4
Views: 87

Re: STM32F411 STOP MODE

Hi,
The note in the source file above your quoted section explains the parameters.
You would call this in a C icon in Flowcode, for example...

Code: Select all

HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI);
by LeighM
Wed Mar 18, 2020 1:37 pm
Forum: Bug Reports
Topic: Problem in the round(x) Function
Replies: 7
Views: 271

Re: Problem in the round(x) Function

What is your expected result?
Looks like we simply add 0.5 (effectively rounding to nearest integer, for positive numbers at least.
Do you want rounding up, down, or towards zero?
If you have a project that expects a particular outcome you might need to create your own macro/function to do this.
by LeighM
Tue Mar 17, 2020 11:29 am
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 40
Views: 976

Re: timer bug stm32f411VE

Thanks for the feedback.
Looks like I have missed something.
I will try and dig out some hardware and give it a test.
by LeighM
Mon Mar 16, 2020 4:27 pm
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 40
Views: 976

Re: timer bug stm32f411VE

Sorry, only just noticed your post.
Have you tried Channel 1, as well as Channel 2?
Also, have you tried address 0x38 in the initialise?
by LeighM
Wed Mar 11, 2020 11:40 am
Forum: Flowcode V8
Topic: CanBus Read Example
Replies: 2
Views: 253

Re: CanBus Read Example

Hi James You need to setup your CAN component RX buffer properties (mask and filter if needed, or just Accept All) Program flow is then a case of doing an Initialise at startup. Then loop calling CheckRx (with the required buffer as a parameter) If it returns true, then a message is waiting to be re...
by LeighM
Wed Mar 11, 2020 10:40 am
Forum: Bug Reports
Topic: timer bug stm32f411VE
Replies: 40
Views: 976

Re: timer bug stm32f411VE

I’ve now completed some code to support hardware I2C, initially for your 32F030RC Files that have been updated are: STARM_CAL_I2C.c (C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\STARM) 32F030RC.fcdx (C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARM) cal_i2c.fcpx (C:\ProgramData\MatrixTSL\FlowcodeV8\Components...