Search found 1925 matches

by LeighM
Fri Jul 03, 2020 1:45 pm
Forum: Flowcode V8
Topic: SPI send data
Replies: 1
Views: 57

Re: SPI send data

Have a look at pages 38 and 58 of the datasheet.
Looks like you need to enable CS, then send and receive several bytes, then disable CS
The SPI transaction function can be used to send and receive a byte simultaneously
by LeighM
Fri Jul 03, 2020 8:21 am
Forum: Flowcode V8
Topic: set SPI-master DataMode and BitOrder
Replies: 2
Views: 74

Re: set SPI-master DataMode and BitOrder

Hi
The bit order for the SPI Master is MSB first.
The MODE settings are in the Component Properties ...
spi.jpg
spi.jpg (7.81 KiB) Viewed 69 times
by LeighM
Thu Jul 02, 2020 11:33 am
Forum: Flowcode V8
Topic: STM32F303VCT6 component ADC Pin's issue
Replies: 3
Views: 74

Re: STM32F303VCT6 component ADC Pin's issue

Please try these ...
by LeighM
Thu Jul 02, 2020 7:51 am
Forum: Flowcode V8
Topic: Communicate (FDTI- TTL) UART (Without MAX232 Chip) directly with ARM MCU
Replies: 9
Views: 141

Re: Communicate (FDTI- TTL) UART (Without MAX232 Chip) directly with ARM MCU

When you try software mode, do you get anything at all? or do you get garbage, i.e. wrong characters?
Software mode will only work (be accurate enough) at lower baud rates.
by LeighM
Wed Jul 01, 2020 3:17 pm
Forum: Flowcode V8
Topic: Communicate (FDTI- TTL) UART (Without MAX232 Chip) directly with ARM MCU
Replies: 9
Views: 141

Re: Communicate (FDTI- TTL) UART (Without MAX232 Chip) directly with ARM MCU

Glad to hear you now have it working,
But it is not working with software mode and manual define ports.
Is the Flowcode project "clock" speed correct for the crystal on your hardware?
I noticed it is set to 16MHz
by LeighM
Wed Jul 01, 2020 2:08 pm
Forum: Flowcode V8
Topic: Communicate (FDTI- TTL) UART (Without MAX232 Chip) directly with ARM MCU
Replies: 9
Views: 141

Re: Communicate (FDTI- TTL) UART (Without MAX232 Chip) directly with ARM MCU

I have tried to build using USART2 port, but there is some error if I choose pre-configured USART or UART ports directly.
In the attached project you had not selected the Rx/Tx pins? ...

UART.jpg
UART.jpg (34.5 KiB) Viewed 118 times
by LeighM
Wed Jul 01, 2020 1:55 pm
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

Thanks, here is the 32F446ZE
by LeighM
Wed Jul 01, 2020 12:37 pm
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

Look forward to the results tomorrow.
Thanks.
by LeighM
Wed Jul 01, 2020 12:35 pm
Forum: Flowcode V8
Topic: STM32F303VCT6 component ADC Pin's issue
Replies: 3
Views: 74

Re: STM32F303VCT6 component ADC Pin's issue

Please let me know how you get on with the 32F446ZC ADC updates,
if they are OK I will see if 32F303VC can be updated in a similar way.
Thanks
by LeighM
Wed Jul 01, 2020 11:31 am
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

Please try these ...

32F446ZC.fcdx
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARM

STARM_CAL_ADC.c
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\STARM
by LeighM
Wed Jul 01, 2020 9:19 am
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

Hi,
Could you move this latest post to a new topic?
We now have three issues in this thread and it could get confusing :D
It would also help other users when searching issues.
Thanks!
by LeighM
Wed Jul 01, 2020 7:46 am
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

OK, thanks, I will look into it
by LeighM
Tue Jun 30, 2020 4:12 pm
Forum: General Programming
Topic: Percentage
Replies: 4
Views: 139

Re: Percentage

As Martins note, try something like
Percentage = (DutyCycle * 100.0) / 255.0
by LeighM
Tue Jun 30, 2020 4:07 pm
Forum: General Programming
Topic: Percentage
Replies: 4
Views: 139

Re: Percentage

Values on the right hand side of the equals sign need to be floats as well
The right hand side is evaluated first, irrespective of the variable type on the left
by LeighM
Fri Jun 26, 2020 11:12 am
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

Please try the attached FCD file, drop it into the following directory and restart Flowcode
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARM

We will get this into the auto update system later.
by LeighM
Fri Jun 26, 2020 10:49 am
Forum: Flowcode V8
Topic: Add STM32F446ZCT6 ARM MCU in component library
Replies: 16
Views: 234

Re: Add STM32F446ZCT6 ARM MCU in component library

I will take a look
by LeighM
Wed Jun 24, 2020 3:16 pm
Forum: Flowcode V8
Topic: STM32 Speed
Replies: 3
Views: 87

Re: STM32 Speed

For ST ARM projects the setting of “Build->Project Options->Clock Speed” should be set to the source (e.g. external crystal) frequency (not any of the internal system clock frequency) You can check the HCLK frequency at run time by using the C code function HAL_RCC_GetHCLKFreq(). For example, create...
by LeighM
Wed Jun 17, 2020 12:30 pm
Forum: Flowcode V8
Topic: Script Syntax Error
Replies: 5
Views: 294

Re: Script Syntax Error

Hi Stylo,
That is not an error with your project :D so just click No to remove the popup.
The issue is caused due to problems with our server, which is currently undergoing updates and fixes.
Sorry for the confusion caused, hopefully all will be resolved soon.
by LeighM
Wed Jun 17, 2020 9:13 am
Forum: Flowcode V8
Topic: Program code to a specific memory location.
Replies: 9
Views: 271

Re: Program code to a specific memory location.

Good, sounds like progress :D

btw: If you did an edit to the linker script filename in the device FCD, then you would need to reload/restart Flowcode to action it.
by LeighM
Tue Jun 16, 2020 12:00 pm
Forum: Flowcode V8
Topic: Program code to a specific memory location.
Replies: 9
Views: 271

Re: Program code to a specific memory location.

No I don't know without research. I thought that was odd too, but maybe a valid reason for it.
by LeighM
Tue Jun 16, 2020 11:44 am
Forum: Flowcode V8
Topic: Program code to a specific memory location.
Replies: 9
Views: 271

Re: Program code to a specific memory location.

Yes, it is valid C code and yes it can be dropped into a C code icon in Flowcode.
I cannot confirm if it works or not, but it looks plausible.
by LeighM
Tue Jun 16, 2020 8:44 am
Forum: Flowcode V8
Topic: Program code to a specific memory location.
Replies: 9
Views: 271

Re: Program code to a specific memory location.

I've not tried this, but a starting point might be to copy and create a custom linker script ... e.g. stm32f.ld found in ... C:\Program Files (x86)\Flowcode\Common\Compilers\starm\link Change the "ORIGIN = 0x08000000" to your new value Then use this re-named linker script by changing the filename in...
by LeighM
Tue Jun 16, 2020 8:17 am
Forum: Flowcode V8
Topic: Hardware I2C on STM32
Replies: 15
Views: 427

Re: Hardware I2C on STM32

btw:
You do also have the option of using one I2C CAL component,
Initialise to one address, write, read etc., then UnInit,
then repeat for a different device address.
by LeighM
Mon Jun 15, 2020 10:15 am
Forum: Flowcode V8
Topic: Hardware I2C on STM32
Replies: 15
Views: 427

Re: Hardware I2C on STM32

you need the 7 bit I2C device address, it will be unique to each device on the bus
i.e. ignore the read/write bit