EXHAL

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
aldominardo
Posts: 7
Joined: Fri Oct 31, 2014 3:30 pm

Re: EXHAL

Postby aldominardo » Fri Oct 31, 2014 3:37 pm

Dear Rocco,


I've just tried to flash your exhal_00 project on my inemo discovery but without success !


basically when I flash the binary file, the debug gets stuck at line 169 of hal_lld.c:


while (!RCC -> CR & RCC_CR_HSERDY))

in other words, it never goes out from the while loop

also, after flashing the binary file my windows does not recognize the device any longer

so, it seems that the problem comes from USB connection settings....




have you got any ideas or work-aournd?


thank you very much for your kind support,

Aldo, Ernesto and Rosalba (the team group from SUN)

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

Re: EXHAL

Postby RoccoMarco » Fri Oct 31, 2014 3:56 pm

Hello, you're welcome.
First of all... the source code you have downloaded is outdated.
I will release a stable versione in few days with more modules.
Anyway this error is weird.

Which demo are you using? iNemo or F3 disco?

What version of ChibiOS are you using? Do you have imported the entire project?

Ciao
RM

aldominardo
Posts: 7
Joined: Fri Oct 31, 2014 3:30 pm

Re: EXHAL

Postby aldominardo » Fri Oct 31, 2014 9:55 pm

Hello,


We are using the Discovery M1 board (http://www.st.com/web/en/catalog/tools/ ... 8/PF255175)

ChibiOS is the latest version available from sourceforge (Preview7)

we have imported the whole project (sources, makefile, etc), while debug configuration was duplicated from iNemo demo project ((ARMCM3-STM32F103_INEMO_DISCOVERY)


please note that the iNemo demo project works fine (I mean, the USB serial connection is stable and the blue led blinks as expected!)

Any suggestion?

Thanks !

Aldo , Ernesto and Rosalba

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

Re: EXHAL

Postby RoccoMarco » Sat Nov 01, 2014 1:19 am

Hi,
preview 7 is the current version of ChibiStudio that comes with ChibiOS 2.6.5 if I remember well.
(FYI you can check the version number in C:\ChibiStudio\chibios\os\kernel\include\ch.h).

Anyway I hope to release a stable version of EXHAL tomorrow with new demos.
Meanwhile can you make a screen of the console and the problems windows? This error is unespected.

Ciao,
RM

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

PLAY for ChibiOS

Postby RoccoMarco » Sun Nov 02, 2014 6:25 pm

So I have adjusted something and I finally decided a new not misleading name for my library. I have created a sourceforge repos.
I have added demos for STM32F303 discovery. I will add demos for iNEMO and STM32F401 ASAP.

I will add an AHRS demo too.
Note that in order to use AHRS demo actually you have to download some files from ST site. Anyway in the demo i will write some indications.

Ciao,
RM

Bob_h
Posts: 1
Joined: Mon Oct 20, 2014 10:31 pm

Re: EXHAL

Postby Bob_h » Mon Nov 03, 2014 6:39 pm

Hi Rocco

We modified the project INEMO_DISCOVERY adding files from the project EXHAL_00. Unfortunately now, even if it recognizes the files (after setting the makefile) it gives an error and it fails to compile.
The error is found in accel_lld.h, comp_lld.h and gyro_lld.h refering (as I think) to the settings of the SPI and I2C.

I am attaching the screenshot to show you.


Thank you
Aldo, Ernesto e Rosalba
Attachments
Cattura3.PNG
Cattura3.PNG (42.04 KiB) Viewed 2544 times
Cattura2.PNG
Cattura2.PNG (136.04 KiB) Viewed 2544 times
Cattura1.PNG
Cattura1.PNG (124.04 KiB) Viewed 2544 times

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

Re: EXHAL

Postby RoccoMarco » Mon Nov 03, 2014 7:09 pm

Hi,
I'm not sure that you have followed the right way, but I'm definitively sure that in the original code there wasn't any

Code: Select all

#if ACCEL_USE_I2C && 1


:mrgreen:

Most likely you have to check in halconf if I2C is enabled before using ACCEL over I2C.

Anyway the only stable version of EXHAL is on source forge as PLAY.

As adding this lib to a project requires some edits to the makefile, I have released some demos.
Actually demos are available for STM32F303 Discovery only, but in few days there will be for iNEMO and F401 Discovery too.

My suggestion is to download the new version of lib, trying to add it editing the makefile.

Ciao,
RM

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

PLAY for ChibiOS

Postby RoccoMarco » Tue Nov 04, 2014 11:37 pm

So I have added a bunch of demos for ST iNEMO and for STM32F4. You can download the full pack here

aldominardo
Posts: 7
Joined: Fri Oct 31, 2014 3:30 pm

Re: EXHAL

Postby aldominardo » Wed Nov 05, 2014 12:08 am

Dear Rocco,

thank you for your valuable job!

I've just tried to flash the accelerometer demo on my inemo:
STM32F103_INEMO-DISCOVERY-PLAY-ON_BOARD_ACCEL


it builds correctly, and also debug is ok

my problem now is that no terminal window is open when running. Therefore I cannot check if accelerometer data are ok.
please, could you help us?


thank you very much,
Aldo

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

Re: EXHAL

Postby RoccoMarco » Wed Nov 05, 2014 12:25 am

DP resistors controlling is not possible on F3. So you have to connect usb user after pressing run button and waiting 2 or 3 sec
Ciao,
RM


Return to “User Projects”

Who is online

Users browsing this forum: No registered users and 2 guests