Search found 1817 matches

by LeighM
Thu Jan 23, 2020 1:39 pm
Forum: 32-Bit ARM
Topic: STM32F3 RTC help
Replies: 8
Views: 75

Re: STM32F3 RTC help

That's good then :D
Sorry, seems I edited the wrong FCD file,
please use this one ...
by LeighM
Thu Jan 23, 2020 11:03 am
Forum: 32-Bit ARM
Topic: STM32F3 RTC help
Replies: 8
Views: 75

Re: STM32F3 RTC help

Try this ...
by LeighM
Thu Jan 23, 2020 9:33 am
Forum: 32-Bit ARM
Topic: STM32F3 RTC help
Replies: 8
Views: 75

Re: STM32F3 RTC help

OK, thanks for the feedback.
I must admit that I only tested it on internal 40kHz setting
I will dig a bit deeper
Thanks
Leigh
by LeighM
Wed Jan 22, 2020 2:17 pm
Forum: 32-Bit ARM
Topic: STM32F3 RTC help
Replies: 8
Views: 75

Re: STM32F3 RTC help

Hi,
Try the attached using the RTC component (set property to Internal)
drop the .c files into Flowcode 7\CAL\STARM
and the .fcdx files into Flowcode 7\FCD\ARM
by LeighM
Wed Jan 22, 2020 9:13 am
Forum: Bug Reports
Topic: 24C16 component - NOT FUNCTIONING??
Replies: 1
Views: 28

Re: 24C16 component - NOT FUNCTIONING??

Hi,
Just to check…
Are you using 24C16 Flowcode component with a 24C16 device,
and 24C32 Flowcode component with a 24C32 device?
24C32 and 24C16 work differently.
by LeighM
Mon Jan 20, 2020 10:24 am
Forum: 32-Bit ARM
Topic: STM32F3 RTC help
Replies: 8
Views: 75

Re: STM32F3 RTC help

I will have a look and see what’s involved in creating an RTC component for F3
by LeighM
Fri Jan 10, 2020 12:59 pm
Forum: 32-Bit ARM
Topic: STM32F3 Dual ADC mode?
Replies: 8
Views: 261

Re: STM32F3 Dual ADC mode?

Hi, The previous post was just demonstrating how to read the device registers into Flowcode variables using C code. For your application, which uses the ADC dual read mode, to setup the ADC and read values etc., you will need to either access the device registers directly (seems you have made some p...
by LeighM
Fri Jan 10, 2020 10:01 am
Forum: 32-Bit ARM
Topic: STM32F3 Dual ADC mode?
Replies: 8
Views: 261

Re: STM32F3 Dual ADC mode?

To return the value from a macro …

Code: Select all

FCR_RETVAL = ADC12_COMMON->CDR;

To copy the value into a Flowcode global variable named ADC12_IN …

Code: Select all

FCV_ADC12_IN = ADC12_COMMON->CDR;
by LeighM
Wed Jan 08, 2020 1:53 pm
Forum: 32-Bit ARM
Topic: STM32F3 Dual ADC mode?
Replies: 8
Views: 261

Re: STM32F3 Dual ADC mode?

Code: Select all

ADC1_IN = ADC12_COMMON->CDR & 0xFFFF;
ADC2_IN = ADC12_COMMON->CDR & 0xFFFF0000;
ADC2_IN = ADC2_IN >> 16;
by LeighM
Wed Jan 08, 2020 10:55 am
Forum: 32-Bit ARM
Topic: STM32F3 Dual ADC mode?
Replies: 8
Views: 261

Re: STM32F3 Dual ADC mode?

Hi,
To access the ADC12 common control register you need to do this ...

Code: Select all

ADC12_COMMON->CCR = 0x06;

Hope that helps,
Leigh
by LeighM
Fri Jan 03, 2020 4:11 pm
Forum: Flowcode V7
Topic: Possable PWM Issue ?
Replies: 4
Views: 257

Re: Possable PWM Issue ?

Hi Steve,
It's probably worth adding a toggle of a pin/LED in the loop, just to check that the program is running (and at correct speed).
e.g. with two 500mS delays
by LeighM
Thu Dec 19, 2019 9:37 am
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

Hi Ferla,
You will have problems with Windows using ports below 1025
https://en.wikipedia.org/wiki/List_of_T ... rt_numbers.
Leigh
by LeighM
Tue Dec 17, 2019 2:12 pm
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

So, I think you want to set the local IP and subnet from EEPROM at boot, then send a UDP packet with the details to your PC? I don’t think I’ve tried changing subnet dynamically, but I don’t see why it should not work. I think the sequence should be: Intialise SetSubnetMask SetMyIP SetGateway Create...
by LeighM
Tue Dec 17, 2019 11:39 am
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

Can you attach your latest project file, and also explain in more detail what you are trying to do and what is not working as you expect?
by LeighM
Mon Dec 16, 2019 3:21 pm
Forum: Flowcode V7
Topic: CAL_ADC component
Replies: 15
Views: 719

Re: CAL_ADC component

Hi, I have created some functions with C code icons, in attached project. You should be able to export/import these macros into your project. There are a few lines of code in Supplementary section which you will also need to copy into your project. I tested that it compiles, but have not tested on t...
by LeighM
Mon Dec 16, 2019 10:34 am
Forum: Flowcode V7
Topic: CAL_ADC component
Replies: 15
Views: 719

Re: CAL_ADC component

Hi Fotios,
If you have no other option than using an ADC other than ADC1 before we get this sorted and need help with the C code let me know.
Leigh
by LeighM
Fri Dec 13, 2019 4:12 pm
Forum: Flowcode V7
Topic: CAL_ADC component
Replies: 15
Views: 719

Re: CAL_ADC component

Any luck with the other 3 ADCs of STM32F303?

Sorry, this won’t be any time soon, it has a lot of implications for Flowcode components.
A solution would be to create some C icon code based on the code found in the MX_ADC_TYPE_3 section of the STARM_CAL_ADC.c file.
by LeighM
Fri Dec 13, 2019 2:27 pm
Forum: Flowcode V7
Topic: CAL_ADC component
Replies: 15
Views: 719

Re: CAL_ADC component

If you are only using one ADC input in your project, you could call ADC_Enable once at the start.
Then only call ADC_Sample in your interrupt.
That will reduce the process time of the interrupt
by LeighM
Fri Dec 13, 2019 12:38 pm
Forum: Flowcode V7
Topic: CAL_ADC component
Replies: 15
Views: 719

Re: CAL_ADC component

You could see that in the properties panel I've selected as Conv_Speed = PCLK/4 (24MHz/4 = 6MHz). Should I give the value 4? Yes (the value is the ADC clock divider 1, 2 or 4) T_Charge is the number of clock cycles for the sample time Values can be 1,2,4,7,19,61,181,601 (Flowcode selects the neares...
by LeighM
Fri Dec 13, 2019 12:13 pm
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

Can I use both UDP and WebServer on the same channel at the same time? Unfortunately, no. You could use the TCP/IP component and create TCP and UDP sockets on different channels. You would then need to code your own web server using the TCP socket. (The webserver component does all the work for you...
by LeighM
Fri Dec 13, 2019 9:56 am
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

Have you tried the Webserver component? ...

Webserver.jpg
Webserver.jpg (20.35 KiB) Viewed 443 times
by LeighM
Thu Dec 12, 2019 4:58 pm
Forum: Flowcode V5 Free Edition
Topic: long message
Replies: 2
Views: 237

Re: long message

You will need to split the message string into two smaller strings, each no more than 16 characters long.
Print the first on line 1, then move the cursor position to the start of the second LCD line and print the second string.
by LeighM
Thu Dec 12, 2019 10:52 am
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

Try moving the call to CreateUDPSocket() to after the point that you have changed MyIP details.
Also you have an Initialise in the while loop, this is not needed and will possibly clear the socket such that the following Tx calls will not work.
by LeighM
Wed Dec 11, 2019 9:05 am
Forum: Flowcode V8
Topic: Wiz810Mj problem TxSendMyIP
Replies: 15
Views: 499

Re: Wiz810Mj problem TxSendMyIP

Did you call TxStart beforeTxSendMyIP and TxEnd after?
If that does not resolve the issue, could you attach your program?
by LeighM
Tue Dec 03, 2019 1:06 pm
Forum: 32-Bit ARM
Topic: STM32 ADC missing ports
Replies: 2
Views: 239

Re: STM32 ADC missing ports

This is turning out to be quite tricky.
It needs some changes in the way Flowcode handles the ADC component, which has historically handled only one converter.
So it might be a while before I get this implemented.