Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to STM32F103C8T6 #21

Open
carloshcarvalho opened this issue Jun 17, 2018 · 3 comments
Open

Support to STM32F103C8T6 #21

carloshcarvalho opened this issue Jun 17, 2018 · 3 comments

Comments

@carloshcarvalho
Copy link

Hello, I would like to know if it is possible for this library to work with the stm32f103c8t6 cards, currently when I try to compile I get an error, and I can not change the library to work.

@Voha888
Copy link

Voha888 commented Mar 24, 2020

Try thiis config:

[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
board_build.mcu = stm32f103c8t6
board_build.f_cpu = 72000000L
framework = arduino
monitor_speed = 115200

@qori-aziz
Copy link

Hello, I am currently experiencing the same issue with STM32F4. I believe it is because the different ways on handling the pins

Try thiis config:

[env:bluepill_f103c8] platform = ststm32 board = bluepill_f103c8 board_build.mcu = stm32f103c8t6 board_build.f_cpu = 72000000L framework = arduino monitor_speed = 115200

What do you mean by this config? Where I can insert it?
In my implementation, the error is like this:

C:\Users\user\Documents\Arduino\libraries\Keypad\src/Keypad.h:41:2: warning: #warning "Using  pinMode() INPUT_PULLUP AVR emulation" [-Wcpp] `

#warning "Using  pinMode() INPUT_PULLUP AVR emulation"

 ^

C:\Users\user\Documents\Arduino\libraries\Keypad\src/Keypad.h: In member function 'virtual void Keypad::pin_mode(byte, byte)':

C:\Users\user\Documents\Arduino\libraries\Keypad\src/Keypad.h:50:22: error: invalid conversion from 'byte {aka unsigned char}' to 'WiringPinMode' [-fpermissive]

  pinMode(_pin, _mode);  \

                     ^

C:\Users\user\Documents\Arduino\libraries\Keypad\src/Keypad.h:43:30: note: in expansion of macro '_mypinMode'

#define pinMode(_pin, _mode) _mypinMode(_pin, _mode)

                             ^

C:\Users\user\Documents\Arduino\libraries\Keypad\src/Keypad.h:80:50: note: in expansion of macro 'pinMode'

 virtual void pin_mode(byte pinNum, byte mode) { pinMode(pinNum, mode); }

                                                 ^

In file included from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\stm32duino\hardware\STM32F4\2020.4.23\cores\maple/wirish.h:41:0,

                from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\stm32duino\hardware\STM32F4\2020.4.23\cores\maple/WProgram.h:30,

                from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\stm32duino\hardware\STM32F4\2020.4.23\system/libmaple/Arduino.h:31,

                from sketch\master.ino.cpp:1:

C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\stm32duino\hardware\STM32F4\2020.4.23\cores\maple/io.h:114:6: error:   initializing argument 2 of 'void pinMode(uint8, WiringPinMode)' [-fpermissive]

void pinMode(uint8 pin, WiringPinMode mode);`

Any help will be appreciated in tackling this error.

@Voha888
Copy link

Voha888 commented May 16, 2020

What do you mean by this config?

Upgrade Your level to VScode+Platformio: https://platformio.org/
This config for platformio.ini file

Second way is: check this libraries in your classic arduino IDE:
Keypad-master_2.zip
Keyboard.zip
STM32-master-Keypad.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants