Hi to everybody,
recently I have begun to use STCUbe and keil microvision (is not my choice, it is a policy of the company I work for).
What I did not know was that the HAL drivers used by STMCUBE are different from the Chibios HAL DRIVERS.
STCUBE uses those drivers:
m
Do you think it is ...
Search found 24 matches
- Fri Dec 23, 2016 10:28 am
- Forum: ChibiOS/HAL
- Topic: Export Chibios Hal drivers
- Replies: 1
- Views: 2279
- Wed Sep 21, 2016 7:48 am
- Forum: STM32 Support
- Topic: PULL-UP Input
- Replies: 10
- Views: 9863
Re: PULL-UP Input
Hi marco, this morning I cleaned the project, at the instruction: palSetPadMode(GPIOB, 0, PAL_MODE_INPUT_PULLUP) was accepted by the compiler.
Now the code and the pull-up function are working like they are supposed to do! I have no idea why yesterday were not!
Thank you very much for your ...
Now the code and the pull-up function are working like they are supposed to do! I have no idea why yesterday were not!
Thank you very much for your ...
- Tue Sep 20, 2016 12:55 pm
- Forum: STM32 Support
- Topic: PULL-UP Input
- Replies: 10
- Views: 9863
Re: PULL-UP Input
If I remember well I am using version 3.0.5, where I can read to be sure?
- Tue Sep 20, 2016 11:30 am
- Forum: STM32 Support
- Topic: PULL-UP Input
- Replies: 10
- Views: 9863
Re: PULL-UP Input
P.S you said hal reference manual, I understood the RM of the micro.
wow there is a 964 pages HAL manual! I will take a look right now!
wow there is a 964 pages HAL manual! I will take a look right now!
- Tue Sep 20, 2016 10:15 am
- Forum: STM32 Support
- Topic: PULL-UP Input
- Replies: 10
- Views: 9863
Re: PULL-UP Input
Hi Marco,
The line code you wrote is not accepted by the compiler. it says it is not defined.
I searched the string "PIN_MODE_INPUT_PULLUP" in my chibistudio project and I have been not able to find its declaration.
I am reading the RM, and I see that the pull-up resistor on B0 is activated ...
The line code you wrote is not accepted by the compiler. it says it is not defined.
I searched the string "PIN_MODE_INPUT_PULLUP" in my chibistudio project and I have been not able to find its declaration.
I am reading the RM, and I see that the pull-up resistor on B0 is activated ...
- Tue Sep 20, 2016 9:37 am
- Forum: STM32 Support
- Topic: PULL-UP Input
- Replies: 10
- Views: 9863
Re: PULL-UP Input
Hi Giovanni, hi RoccoMarco,
thanks for your reply. I have already connected the grounds.
I agree with you Giovanni that those (0) makes no sense, but if I remove those (0) :
palSetPadMode(GPIOB, 0, PIN_MODE_INPUT | PIN_PUPDR_PULLUP);
The compiler gives me an error.
08:52:58 **** Incremental ...
thanks for your reply. I have already connected the grounds.
I agree with you Giovanni that those (0) makes no sense, but if I remove those (0) :
palSetPadMode(GPIOB, 0, PIN_MODE_INPUT | PIN_PUPDR_PULLUP);
The compiler gives me an error.
08:52:58 **** Incremental ...
- Mon Sep 19, 2016 2:47 pm
- Forum: STM32 Support
- Topic: PULL-UP Input
- Replies: 10
- Views: 9863
PULL-UP Input
Hi to all,
I configured the GPIOB0 pin as input, the code is the following:
palSetPadMode(GPIOB, 0, PIN_MODE_INPUT(0)|PIN_PUPDR_PULLUP(0));
And in an another board I configured GPIOA7 as output.
palSetPadMode(GPIOA, 7, PAL_STM32_MODE_OUTPUT);
The pin A7 have to generate a square wave, and ...
I configured the GPIOB0 pin as input, the code is the following:
palSetPadMode(GPIOB, 0, PIN_MODE_INPUT(0)|PIN_PUPDR_PULLUP(0));
And in an another board I configured GPIOA7 as output.
palSetPadMode(GPIOA, 7, PAL_STM32_MODE_OUTPUT);
The pin A7 have to generate a square wave, and ...
- Thu Sep 15, 2016 10:26 am
- Forum: ChibiStudio
- Topic: OCD unable to launch cfg (SOLVED)
- Replies: 1
- Views: 4274
OCD unable to launch cfg (SOLVED)
Hi to all,
I would like to share a solution to a problem.
What happened?
I had launched the .cfg in the OCD and I had the following message:
Open On-Chip Debugger 0.10.0-dev-00107-ge4848fe (2015-11-13-11:49)
Licensed under GNU GPL v2
For bug reports, read
m
Warn : Interface already ...
I would like to share a solution to a problem.
What happened?
I had launched the .cfg in the OCD and I had the following message:
Open On-Chip Debugger 0.10.0-dev-00107-ge4848fe (2015-11-13-11:49)
Licensed under GNU GPL v2
For bug reports, read
m
Warn : Interface already ...
- Fri Sep 09, 2016 4:17 pm
- Forum: ChibiStudio
- Topic: Enum definition and declaration
- Replies: 2
- Views: 3733
Re: Enum definition and declaration
Thank you very much Giovanni, yes the declaration was in the header.
I did not know about this rule, I moved the declaration in the .c and now it is ok!
I did not know about this rule, I moved the declaration in the .c and now it is ok!
- Fri Sep 09, 2016 3:55 pm
- Forum: ChibiStudio
- Topic: Enum definition and declaration
- Replies: 2
- Views: 3733
Enum definition and declaration
Hi to all,
I have a small problem using enums with chibistudio.
If I compile my project with the following piece of code:
typedef enum
{CLOSE_VALVE,
OPEN_VALVE} valve_state;
//valve_state valve1;
The compier does its job without errors.
If I de-comment the line of the declaration of ...
I have a small problem using enums with chibistudio.
If I compile my project with the following piece of code:
typedef enum
{CLOSE_VALVE,
OPEN_VALVE} valve_state;
//valve_state valve1;
The compier does its job without errors.
If I de-comment the line of the declaration of ...