9 years, 10 months ago.

I can't send .bin to memory Mbed

hello

I have an u-blox c027 connected whit USB cable. My problem is that when I send the "bin" file to u-blox memory. the USB device is disconnecter and the bin file is not saved. But an fail.txt is generated that will contain message "ERROR SWD".

thanks

Question relating to:

The u-blox-C027 is a complete starter kit that allows quick prototyping of a variety of applications for the Internet of Things. The application board has a MAX-M8Q GPS/GNSS receiver and …

https://mbed.org/questions/3996/Nucleo-F401RE-SWD-ERROR-problem/#answer4513

I think it would be worthwhile to refer to the Datasheet for the micro controller STlink, perhaps the point is h the flash perceives only 20Kb? And receiving binary code it already it sews in STM32F4? I am also a newbie and I think that it is worth flash large files via some other method. Russian Hi =)

Look at the specification STM32F103TSB there is just a 20-KB SRAM, I understand more than the RAM memory on the controller "On-board ST-LINK/V2.1", you can not pour firmware by "Mass storage (USB Disk drive) for drag'n'drop programming"

Я думаю стоит обратиться к даташиту на микро контролер STlink, возможно все дело в том ч то ее флеш воспринимает только 20Kb? И получив бинарный код она уже его зашивает в STM32F4? Я тоже новичок и мне кажется что стоит прошивать большие файлы через другой способ. Русским Привет =)

Посмотрите на спецификацию STM32F103RB там как раз 20-КБ SRAM, Как я понял, больше чем ОЗУ память на контролере "On-board ST-LINK/V2.1", вы не сможете залить прошивку методом "Mass storage (USB Disk drive) for drag'n'drop programming"

posted by Sergey Kordubin 10 Jul 2014

7 Answers

6 years, 5 months ago.

Same problem here.... I dumpt the thing in the trash can. Unbelievable that uBlox has a poor product like this.! Tried everyting I found in forums... different computers etc... stil after download .bin file drive is ejected and reconected..

9 years, 9 months ago.

Same problems using a nucleo f401re. starting to think these boards are not up to spec.

Does the board use the latest firmware? What operating system are you using?

posted by Martin Kojtal 30 Jun 2014

https://mbed.org/questions/3996/Nucleo-F401RE-SWD-ERROR-problem/#answer4513

I think it would be worthwhile to refer to the Datasheet for the micro controller STlink, perhaps the point is h the flash perceives only 20Kb? And receiving binary code it already it sews in STM32F4? I am also a newbie and I think that it is worth flash large files via some other method. Russian Hi =)

Look at the specification STM32F103TSB there is just a 20-KB SRAM, I understand more than the RAM memory on the controller "On-board ST-LINK/V2.1", you can not pour firmware by "Mass storage (USB Disk drive) for drag'n'drop programming"

Я думаю стоит обратиться к даташиту на микро контролер STlink, возможно все дело в том ч то ее флеш воспринимает только 20Kb? И получив бинарный код она уже его зашивает в STM32F4? Я тоже новичок и мне кажется что стоит прошивать большие файлы через другой способ. Русским Привет =)

Посмотрите на спецификацию STM32F103RB там как раз 20-КБ SRAM, Как я понял, больше чем ОЗУ память на контролере "On-board ST-LINK/V2.1", вы не сможете залить прошивку методом "Mass storage (USB Disk drive) for drag'n'drop programming"

posted by Sergey Kordubin 10 Jul 2014
9 years, 9 months ago.

I think I should refer to the datasheets for the microcontroller ST link, maybe the whole thing is that its flash h takes only 20Kb? And emulating a flash drive, she received the binary code already in it sews STM32F4? I am also a beginner and I think that it is necessary to stitch large files through another method. Russian Hi =)

Look at the specification STM32F103TSB there is just a 20-KB SRAM, I understand more than the RAM memory on the controller "On-board ST-LINK/V2.1", you can not pour firmware by "Mass storage (USB Disk drive) for drag'n'drop programming"

posted by Sergey Kordubin 10 Jul 2014
9 years, 5 months ago.

Follow these steps to not get swd error 1. Plug a standalone power source to your mbed board . I plugged in 5V,1A power supply 2.Now plug in usb cable. 3. Transfer your bin program. 4. unplug usb cable from mbed board. 5.Press the rest button. 6. Your program is ready to go.

9 years, 4 months ago.

Hello.

I also same problem has occurred. fail.txt is created in the mbed storage. It is written as "SWD ERORR".

I tried this page. http://developer.mbed.org/users/ublox/notebook/u-blox-C027-Downloading/

Development envirnment:

  • I'm using C027-U20-0.
  • Power supply is DC12V1A.
  • Board revision is v1.2. LED1 is implementation.
  • using WIndows7 32bit. Chrome browser.

Is there a solution?

I'm solved.

Although was using the DC plug, was run after input pin header VIN.

This page, there is written as follows: ( https://developer.mbed.org/users/ublox/notebook/u-blox-C027-Getting-Started/ )

Quote:

1. Connect your mbed to a PC Connect the power (7-17V) on the barrel connector or the pin header. Connect a USB cable to the C027 and the PC. The status lights will come on. After a few seconds of activity, the PC will recognise the u-blox-C027 as a standard USB drive.

However , it does not work even if it is input to the DC plug.

posted by saito saito 21 Nov 2014
9 years, 10 months ago.

Did you power the device using the barrel jack or VIN?

I power it with an adapter 7.5 v - 12v 1A (Heitech 09001551 Universal- Netzteil 1000 mA). but the same problem. only this time the system try to send file but after an moment the USB device is disconnected and the bin file is not saved .

posted by amzil rida 18 Jun 2014

This is normal. The disk disconnects after successful update. But you need to press reset after programming.

posted by Michael Ammann 18 Jun 2014

yes it works thanks , I have already work with NXP mbed. the file is saved after sending. thanks

posted by amzil rida 18 Jun 2014
9 years, 10 months ago.

I got the same issue. I have tried two power adapter. One is 9v 1A, the other is 12v, 3A. Both of them met the "SWD error" and can't write the bin to mbed device. I have tried anyway I found on mbed.org but it still fails. When I copy the bin file to mbed, it disconnects from my laptop and reconnected. And I got a "fail.txt" with the content of "SWD error". The bin file isn't there. Is there anyway to solve this? Or only some special power adapter could be supported by this stupid board?

try to connect first power and after an moment connect usb cable.

posted by amzil rida 19 Jun 2014

It's resolved. I chosed wrong chip type in the project

posted by Weiyang Mao 30 Jun 2014