2017-10-10 06:15 AM
Hello,
I am working with
http://www.st.com/en/evaluation-tools/b-f446e-96b01a.html
which is compatible with 96Boards CE. My development environment is Linux (Ubuntu Mate). I am using the board in standalone mode i.e., without any 96Boards base board. When the board is connected to my PC, it enumerates as a USB cdc device and got /dev/ttyACM0 interface. Also, one /dev/sdc block device. But I'm not sure how to use the drag and drop interface to program the board.In my understanding, there should be a FAT storage medium to place the binary but I didn't get that. Below is the link to dmesg output:
https://pastebin.ubuntu.com/25713712/
Can someone please help?
Thanks,
Mani
#stlink-v2 #96boards #stm32-sensor-mezzanine2017-10-10 07:07 AM
Also, one /dev/sdc block device. But I'm not sure how to use the drag and drop interface to program the board.
Usually by dropping the 'executable' onto the MSC device.
This requires a kind of second-stage bootloader on the target, and is common practice with Arduino.
And that in turn means the toolchain/executable needs to be aware of this bootloader's requirements.
Not sure if your Mezzanine board has such an (Arduino) loader, the user manual is not very specific here ...
I use to ignore this bootloaders, as many other here in this forum do.
You can get to the target directly via the onboard STLink adapter, but that involves killing those Arduino-gimmicks.
2017-10-10 07:14 AM
Thanks for the reply...
For STLink V2 I tried to use stlink from
https://github.com/texane/stlink
but it returnedWARN src/common.c: Invalid flash type, please check device declaration
2017-10-10 09:11 AM
AvaTar,
It appears to have an STLINKv2/1 as the newer Discos and the Nucleos.
JW
2017-10-10 11:25 AM
I use Crossworks for ARM, which has a good Linux version, coming with a working driver for STLinks.
And AFAIK there is a free/limited version as well.
The choice of IDEs/toolchains is quite limited under Linux, as well as ST's driver support
2017-11-03 12:45 AM
Update:
I have used STLink Utility on Windows also. But it returned 'USB communication error' and in the trace log it shows that the utility is unable to read IDCODE. I have tried various combinations of reset connection types but nothing worked.
Interestingly, if I connect the board to Windows PC, it shows the serial number of the board in settings but after 10 secs or so 'USB communication error' pops up.
I'd be curious to know if there are any additional jumper settings needed to get it working.
Anyone used this Mezzanine before?
Regards,
Mani
2017-11-03 03:15 AM
Could it be that your board has a power supply issue, or maxes out the USB current limit of 100mA ?