Search found 548 matches

by Sean
Fri Apr 28, 2017 10:04 am
Forum: 32-Bit ARM
Topic: STM32 ARM UART
Replies: 36
Views: 44198

Re: STM32 ARM UART

The attached program works on my F746ZG board. No hardware mods required.
F746Nuc144_VCP.fcfx
(6.52 KiB) Downloaded 468 times
by Sean
Thu Apr 27, 2017 6:59 pm
Forum: 32-Bit ARM
Topic: STM32 ARM UART
Replies: 36
Views: 44198

Re: STM32 ARM UART

stefan.erni is correct. The Nucleo-F746ZG (and probably all other 144-pin Nucleo boards) use USART3, TX = PD8, RX = PD9 for the USB UART. No links or modifications are required. I will edit my earlier post to include this information. The information for the Nucleo boards seems to apply to all chip ...
by Sean
Thu Apr 27, 2017 4:00 pm
Forum: 32-Bit ARM
Topic: STM32 ARM UART
Replies: 36
Views: 44198

Re: STM32 ARM UART

This should be using UARTs I've been using the F469 Discovery as an example but the same should apply to the F429, with the following changes: The ST-Link USB - USART is USART1, TX = PA9, RX = PA10. Connection requires links SB11 and SB15 (on the reverse side of the board) to be fitted. The schemati...
by Sean
Thu Apr 27, 2017 3:01 pm
Forum: 32-Bit ARM
Topic: STM32 ARM UART
Replies: 36
Views: 44198

Re: STM32 ARM UART

Do you get the same problem with Win7 and Win10? Is there anything you can do to confirm that the program is running correctly? Example: Temporarily use USART6 on D0/D1 of the Arduino connectors and use an oscilloscope or USB-UART cable to check the signals. To solve my original problem (the same sy...
by Sean
Thu Apr 27, 2017 1:11 pm
Forum: 32-Bit ARM
Topic: STM32 ARM UART
Replies: 36
Views: 44198

Re: STM32 ARM UART

Hello The ST-Link USB UART does not need to be enabled, it should be available whenever the ST-Link chip is powered. I did have some problems (probably driver related) with one of my PCs. The COM port was visible but no data could be transferred unless the Windows (Win7) driver was uninstalled and r...
by Sean
Wed Apr 26, 2017 3:08 pm
Forum: 32-Bit ARM
Topic: STM32 ARM UART
Replies: 36
Views: 44198

Re: STM32 ARM UART

The USB UART, provided on most ST boards via the ST-Link chip, can be selected from Flowcode. It seems that all Nucleo boards (32-pin, 64-pin and 144-pin versions) have connections to the USB UART by default. Not all Discovery boards provide this feature, but the F429, F469 and F746 LCD boards do. T...
by Sean
Tue Aug 21, 2012 1:47 am
Forum: Article Discussion
Topic: MX026 - RS485 using the EB062 E-Block
Replies: 27
Views: 45335

Re: MX026 - RS485 using the EB062 E-Block

The 32 node limit is an electrical restriction indicated in data sheets for the SN75176 and compatible devices. The transmitter circuits are capable of driving 32 parallel 'unit loads' of 12K each (standard node input impedance). Special measures need to be taken to reach the theoretical software li...
by Sean
Thu Jun 14, 2012 10:58 pm
Forum: Article Discussion
Topic: MX003 - Look-up tables
Replies: 16
Views: 34045

Re: MX003 - Look-up tables

Yes, for a 2-dimensional array the parameters can be considered to be:

Array[Row][Column]
by Sean
Thu Jun 14, 2012 6:49 pm
Forum: Article Discussion
Topic: MX003 - Look-up tables
Replies: 16
Views: 34045

Re: MX003 - Look-up tables

Another possibility, if all the individual arrays are the same size and type, might be the use of a single, 2-dimensional array (I am not currently able to test this): const double L[x][y] = { {1,2,3,4,.,.,.,.,.}, {.,.,.,.,.,.,.,.,.,.,.,.,.,.}, : : : {.,.,.,.,.,.,.,.,.,.,.,.,.,.} }; where x is the n...
by Sean
Wed Jun 13, 2012 9:23 pm
Forum: Article Discussion
Topic: MX003 - Look-up tables
Replies: 16
Views: 34045

Re: MX003 - Look-up tables

Hello, Yes, it is possible to change the array data type to suit the range of the data values being stored. The Flowcode variables used to handle the data (including the table reader macro return variable) will also need to be changed to match the selected data type. The C data types that are direct...
by Sean
Sat Jun 09, 2012 2:57 pm
Forum: Programming Tips & Tricks
Topic: Using Arduino Hardware with Flowcode for AVR
Replies: 18
Views: 45044

Re: Using Arduino Hardware with Flowcode for AVR

STK500 is the standard programmer protocol used by the Arduino bootloader and supported by AVRDUDE (no STK500 hardware is required). There are some minor variations that are covered by AVRDUDE using the parameters stk500, stk500v2, etc. The batch files supplied in the first post in this thread must ...
by Sean
Tue Dec 20, 2011 4:11 pm
Forum: General / Misc
Topic: Using STK500 with Flowcode
Replies: 23
Views: 26407

Re: Using STK500 with Flowcode

You could try the AVRDUDE option in the programmer parameter string (instead of STK500) to see if the AVRISPmkII driver has been changed by the Flowcode update. If you have AVR Studio installed, you can check if it is able to communicate with the AVRISPmkII. Or use Device Manager on your PC to displ...
by Sean
Fri Dec 02, 2011 4:13 pm
Forum: E-blocks
Topic: EB-011 & Stepper Motors
Replies: 4
Views: 5016

Re: EB-011 & Stepper Motors

If the common connections of a uni-polar stepper motor are not used, some motors can behave as bi-polar motors. The common connections are effectively centre-taps in coils from A to B, and from C to D. When the commons are connected, each of the four coil connections only requires a uni-polar drive ...
by Sean
Wed Nov 09, 2011 7:08 pm
Forum: Flowcode 4 Bugs
Topic: Bugs in interruptions and CAN ?
Replies: 3
Views: 6875

Re: Bugs in interruptions and CAN ?

Hello, Unfortunately, interrupts do not simulate well in Flowcode V4. This problem is being addressed in V5. The CAN component config register settings are displayed in 8-bit mode (as used by external CAN) in the component property page, but are combined in the C code to produce the correct values f...
by Sean
Fri Nov 04, 2011 7:02 pm
Forum: Flowcode V4
Topic: Programmer settings for JTAGICE_MKII ISPMode
Replies: 2
Views: 2992

Re: Programmer settings for JTAGICE_MKII ISPMode

We haven't used the JTAGICE, but here is a verion of the avrc.bat file that has been modified using the AVRDUDE and AVR Studio documentation: avrc_jtagice2isp.zip The following changes have been made to the top lines of the batch file. @SET Programmer=jtag2isp @SET DUDEPort=usb @SET STKPort=USB @SET...
by Sean
Tue Oct 25, 2011 3:49 pm
Forum: C and ASM Programming
Topic: CAN Set Rx ID
Replies: 6
Views: 8016

Re: CAN Set Rx ID

The code is a generic example and will need to be modified to suit your own requirements. Removing the unnecessary code for the second filter and interrupt flags allows the program to compile. Alternatively, a Flowcode variable called Mod_int can be declared. This will allow the first filter of Rx b...
by Sean
Tue Oct 25, 2011 10:17 am
Forum: C and ASM Programming
Topic: CAN Set Rx ID
Replies: 6
Views: 8016

Re: CAN Set Rx ID

There is no specific Rx ID. The controller chip contains several filters and filter masks that allow individual message IDs, or groups of IDs, to accepted by individual Rx buffers. The example in the linked thread should do what you need. The section upto and including the first delay_10us command r...
by Sean
Fri Oct 21, 2011 9:56 am
Forum: C and ASM Programming
Topic: CAN Set Rx ID
Replies: 6
Views: 8016

Re: CAN Set Rx ID

The thread linked below shows how receive filters can be reprogrammed using C after the Flowcode component has initialized the CAN controller with default values. The new filter values can be based on calculations and changed on-the-fly. This technique can also be used to change other settings (mask...
by Sean
Thu Oct 13, 2011 10:11 am
Forum: Flowcode V4
Topic: RF 433 - Component when added Stops my program running
Replies: 3
Views: 3217

Re: RF 433 - Component when added Stops my program running

I have tested the basic operation of your program (not the actual RF transmissions). It was failing to run because the Watchdog was enabled in the chip configuration - causing repeated resets. The component connections are correct for the jumpers to be in position B. The program will also fail to ru...
by Sean
Wed Oct 12, 2011 3:43 pm
Forum: Flowcode V4
Topic: RF 433 - Component when added Stops my program running
Replies: 3
Views: 3217

Re: RF 433 - Component when added Stops my program running

The RF module uses a form of flow control on the SPI to inform the microcontroller whether it is ready to receive data. This involves holding the SDI line low while busy, and setting it high when any preceding operations have been completed. The RF component checks the SDI line when necessary and wa...
by Sean
Tue Oct 11, 2011 11:30 am
Forum: General Programming
Topic: STK200 Programmer setting under flowcode V4
Replies: 4
Views: 5026

Re: STK200 Programmer setting under flowcode V4

Hello, giveio is required to allow AVRDUDE to gain access to the parallel port. I have attached a copy of the AVRDUDE documentation. Page 29 includes instructions on the use of the various batch files. avrdude.zip I have tried them on my XP (SP3) PC and they appear to work. Running them from cmd.exe...
by Sean
Tue Oct 11, 2011 11:08 am
Forum: Flowcode 4 Bugs
Topic: EB063 433 megahertz - can't get it working !
Replies: 4
Views: 7704

Re: EB063 433 megahertz - can't get it working !

Hello James, I have tested the Tx and Rx programs you sent us. They worked first time, but gave improved performance (more reliable detection and fewer spurious receives) when the rf settings were adjusted. I increased the transmit frequency deviation, reduced the receiver bandwidth, enabled the ext...
by Sean
Tue Oct 04, 2011 10:17 am
Forum: General Programming
Topic: STK200 Programmer setting under flowcode V4
Replies: 4
Views: 5026

Re: STK200 Programmer setting under flowcode V4

Hello Thierry, The STK200 is not one of the programmers officially supported by Flowcode. As a result, we do not have much knowledge of it, or the ability to test it. However, the AVRDUDE software supplied with Flowcode does appear to have settings for the STK200, so I have modified one of the Flowc...
by Sean
Fri Sep 30, 2011 11:46 am
Forum: General Programming
Topic: Maybe FlowCode maybe not FlowCode
Replies: 8
Views: 7625

Re: Maybe FlowCode maybe not FlowCode

Hello, The 7Seg4 component (along with LED array and Switch bank) is becomming a legacy component. New properties, including polarity, are being added to the single versions of the components (7Seg1, LED, Switch). A common cathode 7seg4 module can be made from 4 x 7seg1 components. Each component sh...
by Sean
Wed Sep 21, 2011 4:04 pm
Forum: Flowcode V4
Topic: [solved] Timing - using TMR2
Replies: 8
Views: 5509

Re: Timing - using TMR2

The standard xtals used have a typical tolerance of +/-50ppm. This affects all operations in the microcontroller and could directly contribute nearly 4.5 seconds of drift within a counter/timer over a 24 hour period (86400 seconds). The load capacitors used in the oscillator circuit also have 'typic...