Sensors Reading-STM32F303

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

sazem
Posts: 17
Joined: Thu Jun 28, 2018 9:48 am

Sensors Reading-STM32F303

Postby sazem » Mon Jul 02, 2018 5:10 pm

Hi all;

I have a STM32F303 kit equipped with IMU (3 DOF each, magnotometer, gyroscope and accelerometer). I have developped a program for rading the sensors data for three sensors (mentionned previously) via serial bus USB.

I had several errors and I had therfore solved them. Finally, my program wors fine. There are some warnings, mybe because the latest versions.
The program had flashed and it was runing on chip (on STM32F303).
My probelem is :

1- Where I find the file of sensors data that i had programmed in main.c

2- When I run my program, it generates the vectors.S file. what does it mean?

3-There are some variables that are defined but not used, for example

Code: Select all

'readByteI2C' defined but not used [-Wunused-function]


. How I fix it? my be it remains some packages to install?

I will attach my folder who contains my main , makefile accompanied with other header files. I want anyone among you , preferably one who has the kit , to test my program and he will tell me the problems in-depth, please please!!

- If I know where i will read my sensors data, today i will attach my kit on robot and i will do a circular trajectory for my small application. I look forward to looking at the issue more closely.

I impatiently await your responses. Please help me.

Thank you very much for you and for owner of this forum.
Attachments
STM32F303-DISCOVERY- TEST2.7z
Sesnors Reading-STM32F303
(4.99 MiB) Downloaded 10 times

sazem
Posts: 17
Joined: Thu Jun 28, 2018 9:48 am

Re: Sensors Reading-STM32F303

Postby sazem » Thu Jul 05, 2018 7:32 pm

Hi;

A message adressed to those who read my program for reading data of sensors of STM32F303 Discovery, which is posted two weeks ago. Please, if you use it, you make SAMIR ZEMAM and Jeorme Le Ny as the pricipal authors of this. And, Giovanni as author of chibios.

Thank you very much;

Best Reagrds;
SAMIR ZEMAM

User avatar
RoccoMarco
Posts: 601
Joined: Wed Apr 24, 2013 4:11 pm
Location: Salerno (Italy)
Has thanked: 73 times
Been thanked: 54 times
Contact:

Re: Sensors Reading-STM32F303

Postby RoccoMarco » Thu Jul 05, 2018 11:56 pm

Hello principal author.
I would just to point out that under testex there are some demos which do a good use of files you have included randomically in you project...

These demos reads data from MEMS offering full comfigurability without any

Code: Select all

  0x00902025, //voodoo magic
Ciao,
RM

sazem
Posts: 17
Joined: Thu Jun 28, 2018 9:48 am

Re: Sensors Reading-STM32F303

Postby sazem » Fri Jul 06, 2018 5:43 am

Hi RoccoMarco;

Thank you for this information. I am grateful. I would just say that I have make some efforts to adapt new toolchain (ChibiOS 182) with demo of reading data of sensors. I have posted my program and I have asked some questions, Unfortunately, I have seen lot of number of views but any response!!. For this reason, I have said to people, they need to pay attention when they download the file.

Finally, really I did not like when you have called me "Hi principal author" !!!. Come on, you've got to be kidding!. for respect to this best forum website, I will not go into your game.

Best Regards;
SAMIR ZEMAM
RoccoMarco wrote:Hello principal author.
I would just to point out that under testex there are some demos which do a good use of files you have included randomically in you project...

These demos reads data from MEMS offering full comfigurability without any

Code: Select all

  0x00902025, //voodoo magic

Polux
Posts: 13
Joined: Thu Apr 28, 2016 11:52 am
Been thanked: 4 times

Re: Sensors Reading-STM32F303

Postby Polux » Fri Jul 06, 2018 7:43 am

Hello Samir,

Your data is simply sent to the USB serial port. Use a terminal program on your PC, connect to the COMx port with the corresponding baudrate, parity,... and your data will be displayed on the screen. Only displayed, not recorded.

To put your data in a file, you should use a terminal program with record functionality. They all have this. Google is your friend to search one for your system, using "terminal program" for the search.

Angelo

P.S. Relax. Don't fix on little jokes. Don't forget we are all different, coming from different countries. And we are not all english native speaking. That's mean some strange sentences you read could be totally correct to the person who wrote it. The oposite is also true.

User avatar
Giovanni
Site Admin
Posts: 11376
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 429 times
Been thanked: 361 times
Contact:

Re: Sensors Reading-STM32F303

Postby Giovanni » Fri Jul 06, 2018 8:46 am

Hi,

Thanks to everybody involved, topic closed here.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 6 guests