Comments (15)
@namkihop
Software I2C.
from arduino-for-keil.
- If you want to modify the default software I2C pins, you need to modify the pins in the "Wire.h" file.
- The 8M external crystal oscillator is used by default. If you want to use the built-in crystal oscillator, you need to call the "InternalClocks_Init()" function before the "Delay_Init()" function.
- If you want to download programs larger than 16KB into "STM32F030F4P6", you can try to change the MCU selection to "STM32F030C6" in "Options for Target->Device".
Hope to help you.
from arduino-for-keil.
Great!
Now it's working, I read the BMP085 using adafruit's library, but there is a problem with function pow(), anyway I just cancelled that part because it used too much resources.
You are telling me that 16Kb is not the real flash in this MCU? I loaded one that the compiler said is 18kb, I thought is the compiler was calculating wrong.
Thank you for your support.
You are the man!
from arduino-for-keil.
@klerone
The FLASH of "STM32F030F4P6" is actually 32KB. The manufacturer only tested the space of the first 16KB, and the stability of the latter 16KB is not guaranteed, but it can be used.
from arduino-for-keil.
I have problems to get the interrupts working, my board has a button connected to PA0, it has a PULLUP resistor and the button is active LOW.
I'm using the code from the example EXTI, with the changes for my settings.
It just do nothing when i push the button, nothing happens.
the button is fine, i tested it using the button in the arduino style (reading the status inside the loop).
Can you please point me in the right direction?
``//External interrupts
#include "Arduino.h"
#define LED_Pin PA4
#define KEY_Pin PA0
void LED_Toggle()
{
//Serial.println("KEY is pressed!");
togglePin(LED_Pin);
}
void setup()
{
Serial.begin(57600);
pinMode(LED_Pin, OUTPUT);
digitalWrite(LED_Pin, HIGH);
pinMode(KEY_Pin, INPUT);
attachInterrupt(KEY_Pin, LED_Toggle, FALLING);
//attachInterrupt(digitalPinToInterrupt(KEY_Pin), LED_Toggle, FALLING);
}
void loop()
{ }``
from arduino-for-keil.
@klerone
EXTI problem has been solved, please update.
from arduino-for-keil.
Great, it works!
Thank you!
from arduino-for-keil.
I have been testing different libraries, all work. but since yesterday I got a problem that i have not idea how to solve.
with the new release of the code suddenly started to get this error:
FCARM - Output Name not specified, please check 'Options for Target - Utilities'
I checked if i change something by mistake and all looks fine, then I downloaded one more copy of the example and compile, i works, then i added a library and could not compile.
before this started to happen all was OK, I loaded many libraries and compile and test.
the old release is fine.
I hope you can point me in the right direction, I cannot find too much help in keil's website.
from arduino-for-keil.
@klerone
You can try to recreate the project manually, and then import the necessary files.
from arduino-for-keil.
Ok, problem solved.
One more question, is it possible to use the PF0 and PF1 as normal GPIO? I tried to blink a LED, it did not work.
from arduino-for-keil.
Blue pill I2c not found on your library but on Arduino I2C is 0x27.
from arduino-for-keil.
@namkihop
Try to reduce the I2C rate.
You can try to comment out the FULL_SPEED_I2C macro definition of Wire.h. If communication still cannot be established, you can try to set SOFT_FAST -> SOFT_STANDARD of the Wire instance at the end of Wire.cpp to further reduce the I2C rate.
from arduino-for-keil.
tôi đã thử nhưng nó không hoạt động, bạn có mẫu ví dụ nào về i2c không?
from arduino-for-keil.
@namkihop
Bạn có thể thử các thiết bị I2C khác không? Đảm bảo hủy FULL_SPEED_I2C.
from arduino-for-keil.
it worked, let me ask is this i2c soft or hard? thank you.
from arduino-for-keil.
Related Issues (20)
- [user contribution] Libraries - Tested HOT 3
- sd卡读写问题 HOT 3
- 移植STM32F107出错 HOT 2
- Low Power Mode [Help nedeed] HOT 2
- 请教一下,如何移植到正点原子的F407或F429开发板里去? HOT 4
- 移植库文件报错 HOT 2
- Some ERROR in Print.h..
- STM32SD 移植失败,补了很多路径也不行 HOT 1
- STM32用此包导致芯片锁死 HOT 2
- BMP280
- Keil5不能引用Arduino库中的Class HOT 2
- 编译无法使用C++11 arduino的很多库在头文件中就给成员赋值了 导致出错 这个问题怎么解决 HOT 8
- 调试IIC时,初始化出不来, HOT 1
- 使用F401RC仿真运行,为什么不停的复位? HOT 2
- 按照教程移植,但是导入库失败 HOT 4
- 移植到其他平台问题 HOT 2
- 我在其他地方找不到答案, 为什么不是只编译修改过的文件 HOT 1
- STM32F103RC移植报错 HOT 9
- stm32f103IIC读取mpu9250失败 HOT 1
- 对FastLED库的支持!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-for-keil.