Search found 1758 matches

by LeighM
Fri Oct 18, 2019 11:11 am
Forum: Flowcode V8
Topic: 18F27K40 Silicon issue.
Replies: 7
Views: 98

Re: 18F27K40 Silicon issue.

Hi Martin,
My only recollections on this issue is that we had to do a fix (about a year ago) in the EEPROM component to explicitly reset the NVMREG access selection back to Flash after reading EEPROM.

Code: Select all

NVMCON1bits.NVMREG = 2;

This is done in the EEPROM CAL code.


NVMREG.jpg
NVMREG.jpg (65.35 KiB) Viewed 30 times
by LeighM
Thu Oct 17, 2019 4:02 pm
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!


C:\ProgramData\
is usually a hidden directory,
you might need to change folder options

or wait until tomorrow
by LeighM
Thu Oct 17, 2019 10:41 am
Forum: General Programming
Topic: Howto :- 32bit addition from 4 Registers
Replies: 6
Views: 114

Re: Howto :- 32bit addition from 4 Registers

Hi, As Martin mentioned, you need to use unsigned long ints, e.g. Get your 4 byte values into some ULONG variables: ULONG_M12 ULONG_M13 ULONG_M14 ULONG_M15 Then the total long value is ULONG_TOTAL = (ULONG_M15 << 24) + (ULONG_M14 << 16) + (ULONG_M13 << 8 ) +(ULONG_M12) You can then add whatever you ...
by LeighM
Thu Oct 17, 2019 10:24 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen,
Please can you update to the attached FCD file for the F410 Nucleo64, to go into:
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARM
I will get this into the update system tomorrow.
Thanks
Leigh
by LeighM
Thu Oct 17, 2019 10:04 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen,
The updated STARM Toolchain is now on the website.
Looks like there is a problem with the Nucleo 410, I'm currently looking into it
Leigh
by LeighM
Wed Oct 16, 2019 8:02 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen, For the Discovery board (that uses ST-Link) I would suggest that you copy the attached bat file into the batch directory normally at: C:\Program Files (x86)\Flowcode\Common\Compilers\starm\ batch (If the batch directory is in a different place on your other PC then that is not a problem) ...
by LeighM
Tue Oct 15, 2019 11:45 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen,
Well this is curious, it turns out that the issues regarding ST-LINK and stm32prog.bat are due to the website STARM Toolchain download file not being an up to date version.
We are getting this fixed asap
Leigh
by LeighM
Tue Oct 15, 2019 8:05 am
Forum: General Programming
Topic: EB540-80-04 USB Solution
Replies: 2
Views: 74

Re: EB540-80-04 USB Solution

Hi Janez,
What version of Flowcode do you have?
by LeighM
Tue Oct 15, 2019 7:58 am
Forum: 16-Bit PIC
Topic: dsPIC33EP512GM710 CAN bus stopped working
Replies: 27
Views: 1308

Re: dsPIC33EP512GM710 CAN bus stopped working

Hi Martin,
Thanks for the investigations.
Looks then like it might be worth trying the (original) version of PIC16BIT_CAL_CAN.c that has the aligned attribute setting with that latest compiler
Thanks
Leigh
by LeighM
Tue Oct 15, 2019 7:49 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen, Yes, you can copy the tools directory. Or edit the path in stm32prog.bat The Nucleo boards are programmed differently, they do integrate the ST-LINK programmer, but the default setting is to appear as an external drive when plugged into the PC USB port. And that is used by Flowcode in the...
by LeighM
Mon Oct 14, 2019 8:52 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen, Sorry, looks like something has slipped through the net here, the path in our batch file does match the installation location for the ST-LINK programmer. Could you please try the attached updated batch file? This is to go into … C:\Program Files (x86)\Flowcode\Common\Compilers\starm\batch...
by LeighM
Fri Oct 11, 2019 6:13 pm
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Very odd.
I will add some diagnostics into the file on Monday.
If you can then retry
Thanks
Leigh
by LeighM
Fri Oct 11, 2019 8:28 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen,
Could you please try updating to the attached file.
This to go into the compiler directory, normally at ...
C:\Program Files (x86)\Flowcode\Common\Compilers\starm\batch
You might need admin privileges.
Thanks
Leigh
by LeighM
Fri Oct 11, 2019 8:00 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

OK, thanks for the update. I'm running on Windows 7, but we do have Windows 10 machines too. I'm sure the issue is to do with short paths on Windows 10, which some of my colleagues know more about. (I personally prefer Penguins to Windows :wink: Windows cannot find the path to the STLink programmer ...
by LeighM
Thu Oct 10, 2019 8:51 pm
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Yeah it's tested 8)
It's a Windows setup issue.
What version of Windows are you running?
by LeighM
Thu Oct 10, 2019 4:29 pm
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

That looks like another instance of the Windows short path problem, regarding which there have been a few posts on this forum. (I think that fix involves changing a setting in Windows and then re-installing the ST ARM toolchain) I will also have a look at the ST ARM compiler/programmer settings to s...
by LeighM
Wed Oct 09, 2019 9:34 am
Forum: 16-Bit PIC
Topic: dsPIC33EP512GM710 CAN bus stopped working
Replies: 27
Views: 1308

Re: dsPIC33EP512GM710 CAN bus stopped working

Hi Martin, Yes, try anything. Have you tried adding in more ints to see if it comes right again? Maybe try without initialising the value of knacker? We’ve tried memory alignment attributes on and off. It’s odd that we have seen examples of MC/MU working without this issue, so it’s very peculiar. I’...
by LeighM
Wed Oct 09, 2019 8:26 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen, Looks like the USB driver has not installed, could you try downloading and installing the latest ST-LINK USB driver from here ... https://www.st.com/en/development-tools/stsw-link009.html Also, could you please check that you have ST-LINK_CLI.exe in your directory … C:\Program Files (x86)...
by LeighM
Sat Oct 05, 2019 11:17 am
Forum: Flowcode V8
Topic: i2c Not working on Raspberry pi 1B
Replies: 7
Views: 293

Re: i2c Not working on Raspberry pi 1B

And pass Length parameter as 3 in that example
by LeighM
Fri Oct 04, 2019 9:21 am
Forum: 16-Bit PIC
Topic: dsPIC33EP512GM710 CAN bus stopped working
Replies: 27
Views: 1308

Re: dsPIC33EP512GM710 CAN bus stopped working

Hi Martin,
I suspected a compiler or memory allocation issue, but investigations did not come up with any solutions.
I'm not that familiar with dsPIC.
by LeighM
Thu Oct 03, 2019 10:13 am
Forum: Flowcode V8
Topic: i2c Not working on Raspberry pi 1B
Replies: 7
Views: 293

Re: i2c Not working on Raspberry pi 1B

Hi Abel, Have you set the correct address for the PCF8574 ? It is based on the wiring of the PCF8574 A0,1,2 pins, which are usually all tied low for one device, hence address 0. Have you got pull-up resistors on the clock and data pins? Strings and byte arrays are pretty much interchangeable in Flow...
by LeighM
Wed Oct 02, 2019 7:53 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen,
Yes the Nucleo boards can be programmed via USB.
Just check that you get one that is on our supported list.
I will ask someone else to comment on the ARM pack purchase.
Leigh
by LeighM
Tue Oct 01, 2019 10:06 am
Forum: Flowcode V8
Topic: STM32!
Replies: 41
Views: 928

Re: STM32!

Hi Jorgen,
You need the ARM pack
Leigh
by LeighM
Tue Oct 01, 2019 10:00 am
Forum: Flowcode V8
Topic: BL0032 windspeed
Replies: 37
Views: 963

Re: BL0032 windspeed

Hi Monie,
The design of the keypad is such that you cannot press two keys at once and know what they are.
Only one key press at a time is detected.
by LeighM
Tue Oct 01, 2019 9:01 am
Forum: Flowcode V8
Topic: i2c Not working on Raspberry pi 1B
Replies: 7
Views: 293

Re: i2c Not working on Raspberry pi 1B

Hi, Thanks for evaluating Flowcode! The “software” mode directly manipulates any generic GPIO pins to implement the I2C protocol. (Except the usual I2C pins if the Raspberry Pi hardware I2C is enabled!) Using the Flowcode I2C “software mode” will work with all the Flowcode I2C derivative components....