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


#41

@tdwebste Are you looking for 5+ different sets of instructions, or do you want us to consolidate various experiences into one comprehensive document?

https://vanhack.ca/doku.php?id=hacks:zephyrproject

https://vanhack.ca/doku.php?id=hacks:boards:rtos:zephyr:windowsvm

https://vanhack.ca/doku.php?id=hacks:boards:rtos:zephyr:helloworld

https://vanhack.ca/doku.php?id=hacks:boards:rtos:zephyr:datalogging


#42

If you were starting the project for the first time which would find easier
to learn from.
That is your answer.


#43

openocd error:

Did anyone run across this error?
And how did you fix it?

Open On-Chip Debugger 0.10.0+dev-g0d772d4 (2017-10-19-10:23)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: The specified debug interface was not found (hla)
The following debug interfaces are available:


#44

No, not this error; but the install & flashing was not error free.


#45

Hey - I’m going to pass on Zephyr for now. I’ll bring back the board for you Tim and will leave in the dropbox. Thanks!


#46

Join the effort and enjoy
Rewards for finishing early.

  1. Finish Task 2 by next weekend 28th
    Each person including people joining the effort up to 10, receive a $20 starbucks card.

  2. Finish Task 2 by the following weekend Nov 4th
    Recieve 2 $20 starbuck cards to share among yourselves.

  3. Fail to complete Task Nov 11th
    hmm…

  4. Fail to complete Task Nov 25th
    Hand your B-L475E-IoT01A1 back.


#47

Task 2 Detailed Explanation:

The task is to log data from the 5 different sensors on the Disco board. The current Zephyr code only has code to poll date from one sensor - HTS221. (Capacitive digital sensor for relative humidity and temperature)

Code for the other sensors on the Disco board have been implemented to work under Free RTOS at the following link:
https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software-expansion/x-cube-aws.html

The task is to port these sensors into Zephyr:
High-performance 3-axis magnetometer (LIS3MDL)
3D accelerometer and 3D gyroscope (LSM6DSL)
260-1260 hPa absolute digital output barometer (LPS22HB)
Time-of-Flight and gesture-detection sensor (VL53L0X)

Logging via serial through ST-link is probably the quickest and easiest way to complete the task once the sensor code is ported.


#48

how to push changes to our zepher project fork and pull updates the zepher mainline project

The edit file approach:
In addition to other lines in the config file you should see these remote repositories.

cd zephyr/.git
cat config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “origin”]
url = https://github.com/bitbangr/zephyr.git
fetch = +refs/heads/:refs/remotes/origin/
[branch “master”]
remote = origin
merge = refs/heads/master
[gui]
wmstate = normal
geometry = 1099x491+55+14 219 227
[remote “zephyr”]
url = https://github.com/zephyrproject-rtos/zephyr.git
fetch = +refs/heads/:refs/remotes/zephyr/

Then follow these steps:
git checkout master
git pull zephyr
git config --global push.default simple
#return to your branch
git checkout v1.9.1

#to push changes to our VHS fork
git push origin v1.9.1


#49

Curious about the Task 3) after Task 2)

  1. send sensor data over OTG USB
  2. Configure 2 UARTs to enable communication with an external module.
    Validate correct communication with a USB UART bridge.

#50

Actually many of the sensors are already with the Zephry code under drivers/sensors.

The work required to port the sensors into Zephyr may be reduced.


#51

Complete Task 2) and Task 3)
By WEDNESDAY receive $300 on top of other bonuses
By Friday receive $200
By next Friday $75

Task 3)

  1. send sensor data over OTG USB
  2. Configure 2 UARTs to enable communication with an external module.Validate correct communication with a USB UART bridge.

#52

Hey! Thanks to Jake for helping getting this project going on Saturday, in a VMWare session.

-Bob


#53

Yeah, as discussed, everything but VL53L0X is already present in the Zephyr drivers.

Information on Task 2 compiled here:
https://vanhack.ca/doku.php?id=hacks:boards:rtos:zephyr:datalogging


#54

Hi Tim,
Can you give till Sat to complete tasks 2) & 3) as this week is really, really busy?
Thanks,
RK


#55

I curve fit for the days between.

Fun exercise, you have 3 points
25 , 300
27, 200
31 +3, 75

calculate 28th :slight_smile:
I will accept a linear fit between the 27th and Nov 3rd


#56

Ive found for VL53LOX:


#57

Useful ref info for the LIS3MDL sensor,

https://www.robotgear.com.au/Product.aspx/Details/4492-LIS3MDL-3-Axis-Magnetometer-Carrier-with-Voltage-Regulator


#58

I will see you all today at 3:00 to help out.


#59

Take a look at the sample fxas21002
as starting point.


#60

Hey Tim, et al. was just screwing around with my vm and IOT device, when I did a git pull.
It deleted all my makefiles everywhere and now nothing works, how do I recreate them?

Thanks
-Bob