5 years, 4 months ago.

cannot mount nucleo f401re under mac os mojave

Hello

Whenever I want to download a .bin file onto the board, the board unmounts and mounts again after having rejected the .bin file. The problem seems to be that board only allows custom access. Does anybody know a solution?

Thanx a lot. Thomas

If you don’t have an adequate idea on the latest features which you can try on social media, then this https://www.robinhoweb.com/blog/new-features-to-try-on-social-media/#more-3045 will guide you. So, keep reading to gain knowledge on social media features that can be beneficial for you.

posted by anny pinto 29 Jan 2019

2 Answers

5 years, 3 months ago.

Can you save the file elsewhere and then copy it to the f401re ? Can you save to any other removeble USB mass storage device ? Is the ST-Link firmware up to date ?

There is a warning on the F401RE page : https://os.mbed.com/platforms/ST-Nucleo-F401RE/

"For optimum performances, ensure that the Nucleo ST-LINK/V2 firmware is upgraded to the latest version. Follow this LINK for all details."

Dear Ivo

thanks for your time. I answer your questions chronologically:

1. Yes, I can mount and read/write from other usb dvices like sticks etc

2. I can write .txt files onto the board but no .bin files. I tried to trick it by renaming a .bin into a .txt, write it onto the board and then rename it into .bin again. However, then the .bin gets deleted from the board.

3. I carefully followed the STLink upgrade instructions. Since I have a mac I just have to update my java JRE which I did. I had some problems running

java -jar STLinkUpgrade.jar

because the /opt/local/lib/libusb-1.0.0.dylib could not be found. I installed it using homebrew and then it worked. I successfully ran the update of the board.

However, the problem prevails. The board unmounts/remounts when trying to write the binary file onto it after having compiled it using the mbed os tool.

I hope there is a simple solution.

Thanks Thomas

posted by Thomas Thiemann 04 Jan 2019

Actually, the bin file *should* disappear, the st-link firmware removes it after programming the target. I have just tried and after compiling and downloading i never actually get to see the file on the drive.

The way to check if the target gets programmed is to flash it with the hello world blink program : https://os.mbed.com/teams/ST/code/Nucleo_blink_led/

If you are more adventurous you can see if printfs from the target show up in a serial console : https://os.mbed.com/teams/ST/code/Nucleo_printf/

I that doesn't work then it seems de binaries really do not reach the board, in that case : Is there a virus scanner active ? Can you write *.bin files to other USB drives ?

posted by Ivo Noorhoff 04 Jan 2019

Thanks Ivo

indeed I can run the example programmes on the board even though the .bin file gets removed. Apparently, this removal is interpreted by Mac OSX as the ejection of the USB device which on my Mac is called NODE_F401RE. Thus, if I download for instance

Nucleo_read_button.NUCLEO_F401.bin

to the board, LD1 flashes twice and then I get the message

"Disk Not Ejected Properly. Eject "NODEF401RE" before disconnecting or turning it off."

even though the board is actually not unplugged. Yet, the programme works as it should. Should one worry about it?

Thomas

posted by Thomas Thiemann 04 Jan 2019
5 years, 3 months ago.

This is really a serious issue which is only on mac os, seems to be that board only allows custom access. https://epsonsupports.net/blog/how-to-fix-printer-offline/ helped me to get all the detail of this.