Hi team,
I am having an issue, compiling project in the Flowcode 11 Free Version using the free target E-Blocks2 STARM Programmer.
it fails to compile and displays the following error message.
"You do not have a valid licence to perform this action"
further, I noticed that under the Project Options, the selected target is automatically highlighted as the BL0061 instead of the E-Blocks2 STARM Programmer. which seems to be triggering the licensing error.
Could you please look into this?
Regards,
Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
-
Bijumon
- Posts: 42
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 30, 2022 11:44 am
- Has thanked: 18 times
- Been thanked: 23 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1940
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 289 times
- Been thanked: 457 times
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
Thanks for letting us know. We will get a fix out for this today.
In the meantime, you could use the attached FCD instead. Put it into the following folder while Flowcode is not running:
When you try to compile, you may need to re-target your project to the "E-Blocks2 STARM Programmer".
In the meantime, you could use the attached FCD instead. Put it into the following folder while Flowcode is not running:
Code: Select all
%PROGRAMDATA%\MatrixTSL\FlowcodeV11\FCD\ARM- Attachments
-
- E-Blocks2 STARM Programmer.fcdx
- (51.49 KiB) Downloaded 19 times
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
Hi Team,
Thank you for the quick fix on the subject! The latest update is compiling the project without any errors.
Just to clarify my setup: I am not using real hardware yet. I am simulating the project in Proteus using the .hex file generated by Flowcode.
While testing, I noticed a couple of issues with the native components.
First I made a simple LED blink program, but the proteus simulation freezes whenever it hits delay.
However, when I use HAL_Delay(); inside a C code block instead, it works perfectly in the Proteus simulation.
Next I tried using the Flowcode PWM component, but it won't work in the Proteus simulation.
Just like before, when I bypass the component and use the HAL Code inside a C block, the PWM works perfectly on the proteus simulation oscilloscope.
can you please look into this.
Thanks again for your support!
Best regards,
Thank you for the quick fix on the subject! The latest update is compiling the project without any errors.
Just to clarify my setup: I am not using real hardware yet. I am simulating the project in Proteus using the .hex file generated by Flowcode.
While testing, I noticed a couple of issues with the native components.
First I made a simple LED blink program, but the proteus simulation freezes whenever it hits delay.
However, when I use HAL_Delay(); inside a C code block instead, it works perfectly in the Proteus simulation.
Next I tried using the Flowcode PWM component, but it won't work in the Proteus simulation.
Just like before, when I bypass the component and use the HAL Code inside a C block, the PWM works perfectly on the proteus simulation oscilloscope.
can you please look into this.
Thanks again for your support!
Best regards,
- Attachments
-
- STM32_Blink_Test-1.fcfx
- (12.57 KiB) Downloaded 31 times
-
LeighM
- Valued Contributor
- Posts: 552
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 103 times
- Been thanked: 302 times
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
This sounds like wrong project or component settings. Clock speeds for example. Because delays and PWM definitely do work.
I'm not in a position to check your settings at the moment.
It looks like you have posted your HAL code version?
Perhaps if you post your Flowcode native version someone may be able to help.
I suggest you try starting with the LED flash test on hardware.
I'm not in a position to check your settings at the moment.
It looks like you have posted your HAL code version?
Perhaps if you post your Flowcode native version someone may be able to help.
I suggest you try starting with the LED flash test on hardware.
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
Hi team,
Thank you for the response and the suggestions.
I am currently testing the generated .hex files inside Proteus simulation before moving the project to physical hardware.
I am experiencing issue between two different compilation approaches. Both versions compile to a .hex file without any errors, but their proteus simulation behaviors are completely different.
When I use custom C-blocks to configure the registers directly for the PWM and Delay (while keeping the visual LED components and Calculation icons native to Flowcode), the generated .hex file simulates perfectly in Proteus.
When I try to achieve the exact same logic using native Flowcode components and standard icons for the PWM and Delay, the generated .hex file fails to work in proteus simulation.
Since the project settings are identical between both versions.
I have attached both .fcfx project files for comparison.
Thanks again for your support!
Thank you for the response and the suggestions.
I am currently testing the generated .hex files inside Proteus simulation before moving the project to physical hardware.
I am experiencing issue between two different compilation approaches. Both versions compile to a .hex file without any errors, but their proteus simulation behaviors are completely different.
When I use custom C-blocks to configure the registers directly for the PWM and Delay (while keeping the visual LED components and Calculation icons native to Flowcode), the generated .hex file simulates perfectly in Proteus.
When I try to achieve the exact same logic using native Flowcode components and standard icons for the PWM and Delay, the generated .hex file fails to work in proteus simulation.
Since the project settings are identical between both versions.
I have attached both .fcfx project files for comparison.
Thanks again for your support!
- Attachments
-
- STM32_Native Comp_Test-1.fcfx
- fails to work in proteus simulation.
- (11.04 KiB) Downloaded 26 times
-
- STM32_HAL_Test.fcfx
- simulates perfectly in Proteus.
- (10.67 KiB) Downloaded 25 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1940
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 289 times
- Been thanked: 457 times
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
One problem with this approach is you will not know if the issue is caused by an error in the Flowcode project or an error in the simulation within Proteus. Only when you have downloaded to real hardware will this be resolved.
But even if the issue is with the Flowcode code generation, it looks like you have a suitable workaround using C code. So I think you should be able to proceed with your project.
-
BenR
- Matrix Staff
- Posts: 2234
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 615 times
- Been thanked: 809 times
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
Thanks Leigh, Yes could well be the cause.
Here's the remapping guide for the E-block board from ST Port pins to E-blocks Port Pins if it's useful.
Here's the remapping guide for the E-block board from ST Port pins to E-blocks Port Pins if it's useful.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Free Target E-Blocks2 STARM Programmer failing to compile in FC11 Free Version
Hi everyone,
Thanks for all the support.
I have verified the pin mappings for my setup PWM Channel 5 (TIM2_CH1) on PORTD5 of the E-blocks board correctly maps to PA5 on the controller, and E-blocks PORTA0 (my LED pin) maps to PA0. This completely matches the E-blocks pin mapping guide.
Next I try using the Flowcode UART component, the Proteus Virtual Terminal prints garbage characters. Looking closer at the Proteus UART debug log, I noticed baud rate mismatch while my Flowcode component properties are set to 9600 Baud, Proteus reports the simulated hardware is actually running at 2500 Baud.
Then I bypass the PLL entirely and change all internal clock configurations to a flat 16 MHz (SYSCLK, HCLK, APB1, and APB2), Then Virtual Terminal prints perfectly and Proteus UART debug log reports UART running at 9600 Baud.
Unfortunately, even with this change, the Delay icon and PWM components still do not function correctly.
It could be the Proteus simulation model issue, but I don't have the physical hardware on hand to verify it yet.
C code works perfectly at the maximum 84 MHz PLL speed.
Thanks again for your support....
Thanks for all the support.
I have verified the pin mappings for my setup PWM Channel 5 (TIM2_CH1) on PORTD5 of the E-blocks board correctly maps to PA5 on the controller, and E-blocks PORTA0 (my LED pin) maps to PA0. This completely matches the E-blocks pin mapping guide.
Next I try using the Flowcode UART component, the Proteus Virtual Terminal prints garbage characters. Looking closer at the Proteus UART debug log, I noticed baud rate mismatch while my Flowcode component properties are set to 9600 Baud, Proteus reports the simulated hardware is actually running at 2500 Baud.
Then I bypass the PLL entirely and change all internal clock configurations to a flat 16 MHz (SYSCLK, HCLK, APB1, and APB2), Then Virtual Terminal prints perfectly and Proteus UART debug log reports UART running at 9600 Baud.
Unfortunately, even with this change, the Delay icon and PWM components still do not function correctly.
It could be the Proteus simulation model issue, but I don't have the physical hardware on hand to verify it yet.
C code works perfectly at the maximum 84 MHz PLL speed.
Thanks again for your support....