Programming Generic STM32 board via Arduino IDE and ST-Link V2

Programming Generic STM32 board via Arduino IDE and ST-Link V2

Afdhal Tan

8 лет назад

76,148 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@HARESZJOSEO
@HARESZJOSEO - 29.06.2023 09:41

I'm using ST Link V2 Programmer to program NRF51822 module. I did the normal code in Arduino IDE. I'm getting this error.

debug_level: 2
0x4000
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.285390
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
nrf51.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x00012b98 msp: 0x20001c48
** Programming Started **
auto erase enabled
Info : nRF51822-QFAA(build code: CA/C0) 256kB Flash
Error: Cannot erase protected sector at 0x0
Error: failed erasing sectors 0 to 1
embedded:startup.tcl:454: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 510
at file "embedded:startup.tcl", line 454
Failed programming: uploading error: exit status 1

Please please help me with this. Thank you.

Ответить
@sorankarim5190
@sorankarim5190 - 02.06.2023 23:13

Thank you for your knowledge. I made this, but the only issue I have is the pulse and the motor are not synced in time. I rotate the wheel after some seconds the motor moves. What could be the issue? I am using DM556 driver with nema 23

Ответить
@LanGhost172
@LanGhost172 - 24.11.2022 08:08

Can stlink upload sketch without programmed arduino bootloader?

Ответить
@didit6952
@didit6952 - 21.06.2021 09:46

St link port com not detected?

Ответить
@pepsodentpasta
@pepsodentpasta - 05.04.2021 10:58

Is it possible using arduino nano expansion module with this stm module ?

Ответить
@embeddedtech4918
@embeddedtech4918 - 11.01.2020 07:43

I also make stm32 videos. Subscribe to my channel :)

Ответить
@gerhardmalberg4966
@gerhardmalberg4966 - 02.09.2018 12:40

Hello. Do you know if arduino compatible TFT libraries work with this STM32F103? Adafruit library for example.

Ответить
@handle-with-care
@handle-with-care - 21.03.2018 19:39

Can you read the serial values via the st link?

Ответить
@dannesetov4513
@dannesetov4513 - 05.03.2018 03:17

Worked, than you!

Ответить
@Senfonikankara
@Senfonikankara - 11.02.2018 16:12

Sir, thanks a lot!

Ответить
@amitkushwah3563
@amitkushwah3563 - 04.02.2018 20:20

can i use stm8 board and arduino ide with St link programmer

Ответить
@amitkushwah3563
@amitkushwah3563 - 04.02.2018 20:19

hello sir

Ответить
@shahinsalehi4780
@shahinsalehi4780 - 10.01.2018 01:35

fuck yeah dude thanks alot

Ответить
@XerotoLabs
@XerotoLabs - 23.10.2017 23:28

Great video , DId you ever try using the boot-loader Roger talked about ,so you can use on-board serial port for programming and communications ?
wondering how much a pain it is . Im thinking of moving some ideas over to STM and would like to work withe devices (blue pill) as if they were a super Nano . LOL

Ответить
@kid-vf4lu
@kid-vf4lu - 23.07.2017 00:57

I managed to blink the LED but when I try serial communication (with my ftdi RX/TX connected to A9/A10) it does not work. Do you have any ideas of how I can solve this?

Ответить
@rubnzone
@rubnzone - 18.07.2017 23:40

Let me ask you a question. I notice that plate has a Cortex M4. So does it have dual core? Can you achieve multiprocessing with arduino for multitask?

Ответить
@TheSalesEngineer
@TheSalesEngineer - 14.06.2017 19:46

Thank you for sharing your work! I'm also looking for Linux examples. One question: How do you think the STM32 architecture compares to Arduino? What do you see as the advantages/disadvantages, I mean...

Ответить
@user-we1pn4fp9m
@user-we1pn4fp9m - 21.04.2017 18:15

there is no port with STlink to choose

Ответить
@paulocardoso5328
@paulocardoso5328 - 10.02.2017 21:07

Hey man, do you need to change boot status to program via STLink?

Ответить
@AshrfAziz
@AshrfAziz - 05.12.2016 20:10

can I reset chip printer by this ?

Ответить
@poweredbysergey
@poweredbysergey - 05.12.2016 05:33

Nice!

Ответить
@KennethScharf
@KennethScharf - 23.10.2016 01:06

Use OpenOcd to drive the stlink on Linux. You can also make use of the Eclipse IDE.

Ответить
@scylla3618
@scylla3618 - 12.10.2016 16:10

arm-none-eabi-g++: error: C:\Users\admin\AppData\Local\Temp\build3991986179643547692.tmp/core.a: No such file or directory

Ответить
@igrewold
@igrewold - 07.10.2016 06:40

Great tutorial man, thanx.
Do these STM32 drivers & apps work on Linux?

Ответить
@rakesh98478
@rakesh98478 - 16.09.2016 21:01

can we also program stm8 mcu with arduino?? STM8S003F3P6

Ответить
@karastom2304
@karastom2304 - 16.09.2016 02:07

Thanks so much, very good explanation, I have question about STNRG and STULX is there is some videos can help me to get start using STNRG and STULX.

Ответить
@nicolasfelipe1
@nicolasfelipe1 - 10.09.2016 11:05

yes but u lose USB Serial functionality with Generic, anyone knows how to get it back?

Ответить
@alnoorratansi9364
@alnoorratansi9364 - 17.05.2016 01:10

can you send the connection diagram between stm32 and st-link . my email [email protected]

Ответить