Search found 1973 matches

by LeighM
Fri Sep 18, 2020 1:34 pm
Forum: Flowcode V8
Topic: stm32 & usart
Replies: 12
Views: 708

Re: stm32 & usart

Could you add a "LED flash" into the UART_RX macro?
e.g. output high at the start, output low at the end,

then monitor this and the UART Rx pin with an oscilloscope
just to check that it is the receive and interrupt that has stopped
by LeighM
Thu Sep 17, 2020 1:27 pm
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

Great, thanks for the update :D
by LeighM
Wed Sep 16, 2020 11:07 am
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

I tested the code on a Nucleo64 F446RE On the board you have are there any links to change and components to remove to connect the header to PC14/15 instead of the oscillator? edit: from the Nucleo 144 datasheet ... LSE not used: PC14 and PC15 are used as GPIOs instead of low-speed clock. The config...
by LeighM
Wed Sep 16, 2020 8:22 am
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

To accept all, just set the mask to 0 To reject all, set the mask to 0x7ff (in the case of standard IDs) and the filter to 0 e.g. SetRxMask(0,0x7ff) and SetRxFilter(0,0) A read of the Microchip CAN controller datasheet is well worth the time. You will need this to understand which mask each filter i...
by LeighM
Tue Sep 15, 2020 12:14 pm
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

Hi Karthick, Add this code into a C icon at the start of your program ... // Enable Power clock __PWR_CLK_ENABLE(); // Enable access to Backup domain HAL_PWR_EnableBkUpAccess(); // Reset Backup domain __HAL_RCC_BACKUPRESET_FORCE(); __HAL_RCC_BACKUPRESET_RELEASE(); // Disable access to Backup domain ...
by LeighM
Tue Sep 15, 2020 11:58 am
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

If you hover your mouse over the function names of the CAN component in the Project Explorer you will see the hint text. The GetRxIDLo reads the raw device register, so see the CAN controller datasheet to see the reason for the apparent data shift. You more likely need to use GetRxIdent instead of G...
by LeighM
Tue Sep 15, 2020 11:21 am
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

Phew, glad to hear :D
by LeighM
Tue Sep 15, 2020 11:11 am
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

Try Prescale = Fosc/32 ... etc
by LeighM
Tue Sep 15, 2020 11:05 am
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

That does sound odd. I suspect the SPI, could you try running it slower, or perhaps change the sample point to “Middle”?
by LeighM
Tue Sep 15, 2020 10:04 am
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

Could you remove the sending from the Flowcode project, and just do the receive?
Maybe flash a LED or output when the message is received?

I am having trouble absorbing all the information :?
Are you concluding that a message is being received, but that the data is being read incorrectly?
by LeighM
Tue Sep 15, 2020 9:38 am
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

Yes, what I meant was that the pins PC14 and PC15 are not working properly as inputs because the 446 device uses them for the low speed clock. It looks like this isn't fully disabled by default. I'm still looking into how to fully disable the clock and setup the pins as inputs (i.e. all the register...
by LeighM
Tue Sep 15, 2020 7:55 am
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

I think the issue is due to PC14 and 15 being related to the LSE. I recall that on Nucleo boards some jumpers need changing to switch out the oscillator components. If the input isn’t working on your board either, then it looks like some config is missing, but I’m not sure what yet. None of this rel...
by LeighM
Mon Sep 14, 2020 5:46 pm
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

I've just had another look at your program,
you need to do a CheckRx(0)
Because Rx buffer 0 is set to accept all, it will receive the message with ID 5, not buffer 1
by LeighM
Mon Sep 14, 2020 4:47 pm
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

1. What should i have for settings in RX buffer 0 to filter out that i only recive ID 5 ? Mask ? Filter ? Where the Mask bit is 1, the Filter bit will be checked to match with the receive ID bit So if Mask is 0x7ff and Filter is 5, then only message ID 5 will be received 2. call component macro Che...
by LeighM
Mon Sep 14, 2020 4:18 pm
Forum: Flowcode V8
Topic: Arduino CAN bus SparkFun CAN
Replies: 35
Views: 391

Re: Arduino CAN bus SparkFun CAN

Could you separate out the problems by first just sending a message and see what the CAN analyzer makes of it? For the messages transmitted from the PIC/Arduino, what bus rate does the CAN analyzer indicate? Does it detect any errors? It might help if you replaced the 500mS delays with a fixed count...
by LeighM
Mon Sep 14, 2020 2:38 pm
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

Hi Karthick
Are you using your own PCB, or are you using an ST Nucleo board?
by LeighM
Mon Sep 14, 2020 10:04 am
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

See attached
This reads the pin state into the variable sod_di
Hope it helps.
Are you also saying that you need to turn the pull-up on, read, and then turn off again?
Leigh
by LeighM
Mon Sep 14, 2020 8:48 am
Forum: Flowcode V8
Topic: STM32F072
Replies: 4
Views: 113

Re: STM32F072

Hi Jorgen,

I thought there might be a virtual drive, in Windows File Explorer, like F:DIS_F
If not, try changing the attached file in C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARM directory

Leigh
by LeighM
Fri Sep 11, 2020 9:40 am
Forum: Flowcode V8
Topic: STM32F072
Replies: 4
Views: 113

Re: STM32F072

Hi Jorgen,

When you plug the board into USB does it appear as a virtual drive?
The programmer is looking for the name "DIS_F", maybe it is something else?

Leigh
by LeighM
Fri Sep 11, 2020 9:35 am
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

Hi Karthick, Attached is the updated version. I have moved the reading of SOA_DI into a macro/function such that only the C code is executed on the target build. This is done with the correct selection of a new property SIMULATION, which needs to be set to NO before you do a build to target. (There ...
by LeighM
Thu Sep 10, 2020 4:51 pm
Forum: Flowcode V8
Topic: STM32F446ZCT6 GPIO Pin Pull up/down configuration
Replies: 16
Views: 213

Re: STM32F446ZCT6 GPIO Pin Pull up/down configuration

Hi, Unfortunately, the pull-up, pull-down feature of the ST ARM IO is not directly implemented within Flowcode. However, it can be done with some C code, but there is a complication. Flowcode access to IO usually also sets up any port/pin direction. For the ST ARM implementation we use the HAL libra...
by LeighM
Mon Sep 07, 2020 4:00 pm
Forum: Flowcode V8
Topic: Pi V 4
Replies: 1
Views: 52

Re: Pi V 4

Select Pi3, it will work the same :)
by LeighM
Mon Sep 07, 2020 1:22 pm
Forum: Flowcode V8
Topic: Access to the hardware features in STM32 timers
Replies: 4
Views: 125

Re: Access to the hardware features in STM32 timers

Hi, Here is some C code to get us started, It uses Port A pins 0 and 1 for the encoder signals, this is the initialisation ... // Setup Port A0 as TIM2 CH1 input // Alternate function mode GPIOA->MODER |= 2; // Set to AF1 GPIOA->AFR[0] |= 0x0001; // Setup Port A1 as TIM2 CH2 input // Alternate funct...
by LeighM
Fri Sep 04, 2020 2:56 pm
Forum: Flowcode V8
Topic: STM32F303VCT6 component ADC Pin's issue
Replies: 8
Views: 283

Re: STM32F303VCT6 component ADC Pin's issue

Hi,
Thanks for confirming.
I've updated these already :)
So you can run the full update.
Thanks
Leigh
by LeighM
Fri Sep 04, 2020 1:39 pm
Forum: Flowcode V8
Topic: Access to the hardware features in STM32 timers
Replies: 4
Views: 125

Re: Access to the hardware features in STM32 timers

Hi Sacha, It's difficult to give a general/generic answer to this. It is possible to call the HAL functions from Flowcode, using a C icon within Flowcode macros. We could probably best help by taking one example, can you give an exact example of what you want to do? Please give all information that ...