(you are viewing a thread; or go back to
list of threads)
First deal with STM 32 (by Ahmad sakr)
Dear sir
I have just received my blue Bill but as I'm newbie for stm32f1.
What is the program which will be needed for burning hex file?
Is it like AVR in LDMICRO after finishing program combile and burn hex file?
What is the procedure for first deal with STM 32 in both hardware (schematic diagram) and software in LDMICRO?
Thanks for your great work and support
Best regards
(no subject) (by José GILLES)
Hi Ahmad
To program your Bluepill board with hex file you need a St-Link-v2 programmer or a low cost clone, as on this picture.
(A few $ only)
Have you got it ?
Then you have to configure flashMCU.bat to
- compile your ladder program with STM32F1 libraries for ldmicro
- send hex file to the blupill with St-link software
I'll help you if need be.
Best regards
José
(no subject) (by Ahmad sakr)
Dear José
Thanks for your reply and great support
Yes I have a at link v2 programmer like the one in the picture.
I will create ladder in LDMICRO (simple one input contact to enable or disable an output coil) .
And select microcontroller as arm STM 32 F1 from setting menu
Then from combile menu will select combile
Then from the programmer program burn the hex file
Is this steps true
Best regards
Thanks very much
(no subject) (by José)
OK
Use if you can ldmicro version 5.3.1.0 rather than 5.4, because I haven't tested yet the last one.
In your flashMCU.bat (in the same directory as ldmicro.exe)
edit the :ARMGCC section and modify both variables GCC_PATH and STL_PATH to point to the installation directories of these two softwares :
SET GCC_PATH=C:\Program Files\EmIDE\emIDE V2.20\arm
SET STL_PATH=C:\Program Files\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility
The first one points to your ARM Compiler (Arm-Gcc directory)
The other one points to your ST-Link command line Utility (st-link_cli.exe)
Then compile your ladder for ARM-Gcc and call FlashMCU.bat from ldmicro menu.
It should generate your hex file in bin sudfolder.
PS:
Read HowTo-Arm.txt in Libraries_for more details.
Let us know if it works as expected.
José
(no subject) (by Ahmad sakr)
Dear José
Thanks for your reply
I did it.it working fine.
What about the boot jumber ? Will I make it like the picture you attached?
I'm very glad to you.thank you very much
Best regards
(no subject) (by Ahmad sakr)
Sorry sir
Should I make MCU crystal frequency 72000000 in LDMICRO MCU parameters menu.?
Thanks very much
Best regards
(no subject) (by José)
Hi
You must set MCU frequency at 72,000000 MHz
On my board, Boot0 is 1 and Boot1 is 0, but I don't remember why...
José
(no subject) (by Ahmad sakr)
Dear José
Could you please make a summary for blue pill arm 32 interfacing like this one
http://cq.cx/interface.pl
As it's different than AVR 3.3v not 5 v
Thanks for your great support
Best regards
(no subject) (by José)
Hi Ahmad
Unfortunately, I don't have time to write such a document, which is a bit far away from ldmicro.
Here are some information and testing ladders for bluepill ; that's all what I can do.
BR
José
(no subject) (by José)
A bit more about pin assignment for Bluepill:
PA0-PA3 Free / ADC / USART2
PA4-PA7 Free / ADC / SPI1
PA8-PA12 Free / USART1 / PWM1
PA13-PA15 JTAG
PB0-PB1 Free / ADC
PB2 Jumper BOOT1 (BOOT0 is independant)
PB3-PB4 JTAG
PB5-PB7 Free / I2C1
PB8-PB9 Free
PB10-PB11 Free / I2C2 / USART3
PB12-PB15 Free / SPI2
PC13 Green LED on Blupill (reverse logic)
PC14-15 Free
(no subject) (by Ahmad sakr)
Thank you sir
Could you please send the circuit schematic for every tested ladder program in the previous attachment (bluepill.zip)
Thanks for your great support
Best regards
(no subject) (by Ahmad sakr)
Dear José
Is it true that bluepill can be powered by 5v or 3.3v?
Pins pb13,pb14 can work as input or output at 5v or can be 3.3v also.is that true?
But pins pb1 ,pb1 only deal with 3.3v ?
Is that true as I understand?
Thanks for your great support
Best regards
(no subject) (by José)
Bluepill MCU works at 3,3 V.
It will be powered by your St-link-v2 dongle, but don't expect much current.
Digital outputs are at 3,3 V ; some inputs are said to support 5 V but at your own risk.
If your affraid with powering inputs at 5 V, put 2 basic diodes in serial with your input to make voltage go down to 3,7 V:
3,3 V Input on MCU ----|<|---|<|---- 0 / 5V source
|
R
|
GND
and add an external pull-down resistor (10 k) directly on the input.
It should work...
(no subject) (by Hudson-BR)
hello Ahmad sakr.
Could you please put together a video tutorial on how to set up flashMCU and generate hexadecimal to write to STM?
Basic step by step contact with a single coil, from pin addressing, compile write to STM.
Grateful if possible.
Post a reply to this comment:
|