Finish early Bonus:Paid to learn Zephyr Project RTOS on B-L475E-IOT01A

So this is the fork from Github

I am adding everyone as a Github Collaborator to this project.

Everyone should clone this and also make push request to make sure that I can confirm.

I will be offline intermittently after the 21st of Oct so please do this soon.

Mark

1 Like

I couldn’t make it today but plan on showing up next time. Thanks @majicj -
have forked this.Edit - correction - cloned!

Tim has left you guys 2 boards in the drop box

1 Like

Just wasted a few hours trying to get Ubuntu working on a16GB Kingston thumbdrive. Now its saying cannot locate several pkgs. Arrggghh.
[edit: ok I figured it out]

How is it going. I will be at vhs Saturday at 15:00 to help people finish their task 1 hello world and blinky

I will have 1 and perhaps 2 Linux laptops to in block people.
It you new help don’t for get to bring your board and record videos of success for the blog

Yes, we need an attendance update from the participants, I know that Rebel is coming around 3.30pm.

OK I ran out of disk space on the USB based linux even with only 3GB persistant partition. Hours wasted :wink:

I’m moving along slowly…but moving. Just troubleshooting some SDK issues but I feel close…so close.
edit: woo - got it, just need to flash to the board which I will do tomorrow. Will come in early.

Progress!

(64 bit Linux running in a virtual machine on a WIndows 10 host)

2 Likes

Hi Zephyrers,
My re-re-re…installation was fine (the culprit was a faulty USB cable from a ST Micro development kit, handed out by ST Applications Engineers at the ST Day conference in Seattle), here are the steps and pitfalls:

(1) Please follow the install instructions exactly as per GitHub - erwango/openocd-stm32: Some scripts to flash and debug stm32 boards.

(2) Don’t follow the steps on either https://www.zephyrproject.org/doc/getting_started/installation_linux.html OR
http://zephyr-docs.s3-website-us-east-1.amazonaws.com/online/dev/boards/arm/disco_l475_iot1/doc/disco_l475_iot1.html

(3) Use a KNOWN good USB to USB micro cable!

(4) You may need correct arm-gcc and arm-gdb; let Debian’s “Synaptics Package Manager” and Fedora’s “Yum Package manager” point the correct dependencies.

(5) If possible, sit next to Peter (Thank you Peter!) who helped a ton!

(6) To flash to STMicro board, use the command:
stm32_flsh l4 ~zephyr/samples/hello_world/outdir/disco_l475_iot1/zephyr.bin
Wait for ST Micro flash to be written, you may get a message such as “Unable to match requested speed 500 kHz, using 480 kHz” (not an error)

(7) Set screen communication (or use Arduino IDE to see the output):
screen /dev/ttyACM0 115200 (else you may see garbage outputted by ST Micro board)

(8) Press the “RESET” button on the ST Micro board and see “Hello World” in the terminal (screen)!

Enjoy,
RK

1 Like

Where is this information captured in VHS wiki?

Can you provide the link.

I really like the personal touch to the instructions. It is great you
covered the challenges you faced.
This is great in the VHS BLOG along with some pictures.

When you update the blog please send a message to
bpreston@linuxfoundation.org so that he can read it and share it.

I have requested wiki editing/writing access.
Thanks,
RK

Great, will try this also on a similar laptop. What linux did you use in the end?
Thanks
-Bob

Hi fellow Zephyrers,
The updated detailed instructions are added to the wiki at
http://vanhack.ca/doku.php?id=hacks:boards:rtos:zephyr

Thanks,
RK
(Rebel_without_Clause)

1 Like

You rock Thanks @Rebel_without_Clause

I used the latest version of 64 bit Xubuntu. Pretty much followed the instructions at https://www.zephyrproject.org/doc/getting_started/installation_linux.html

The trickiest part was getting openocd working properly.

Hosting on Windows requires the USB drivers from
http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-discovery-kits/b-l475e-iot01a.html
Also needed to add some rules to etc/udev/rules.d from the firmware upgrade on the same page to connect properly with the board.

I’ll add all the details to the wiki tomorrow.

1 Like

Thank you, the link error in the wiki is now corrected!

Thanks!

I’d highly recommend avoiding requiring OpenOCD for this Zephyr stuff - as people are experiencing, it’s tragically complicated to get running.

Segger offers free firmware to upgrade the onboard ST-LINK on ST’s dev boards to full J-Link capabilities, which allows you to use their mature, relatively easy to use, cross-platform tools (including GDB server) absolutely free: ST-LINK On-Board

Hi Richard, Zephyr’s

Please document the procedure required to use Segger’s firmware. And
comment on your experience.