Thanks for your reply man!!!It won't work with F103 as RTC does not have calendar and it does not store time in unix format.
It only stores time when it was set and counts seconds since then.
Search found 24 matches
- Sat Dec 19, 2020 6:45 am
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: I need to return a single value from incoming serial data...
- Thu Dec 10, 2020 1:13 pm
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: I need to return a single value from incoming serial data...
//-----------------------------------------------------------------------------
#define NR_BYTES 10
uint8 inBytes[NR_BYTES], inCnt, rxBytes;
uint32 rxTime;
//-----------------------------------------------------------------------------
void loop()
{
if (Serial2.available()>0) // serial data ...
- Thu Dec 10, 2020 12:59 pm
- Forum: General discussion
- Topic: Need help on writing and reading characters on EEPROM
- Replies: 0
- Views: 3469
Need help on writing and reading characters on EEPROM
Hey all !!!
I hope y'all are doing well... I'm really sorry, but I need help on a problem with reading/writing character/string on STM32's emulated EEPROM.
I'm using STM32F103C6/C8 with 128 kb internal flash.
I used this tutorial for preliminary setup : "https://www.instructables.com/Getting-S ...
I hope y'all are doing well... I'm really sorry, but I need help on a problem with reading/writing character/string on STM32's emulated EEPROM.
I'm using STM32F103C6/C8 with 128 kb internal flash.
I used this tutorial for preliminary setup : "https://www.instructables.com/Getting-S ...
- Fri Dec 04, 2020 10:12 am
- Forum: General discussion
- Topic: Reversed question marks reading GPS module
- Replies: 6
- Views: 6046
Re: Reversed question marks reading GPS module
Hey there,
I'm not an expert, but with my previous experience with serial communication on STM32, I guess I can give a clarification.
You have received reversed question mark(I too received those buddies...), which means, no data is received.
The problem is(I guess), you are using Serial1 to both ...
I'm not an expert, but with my previous experience with serial communication on STM32, I guess I can give a clarification.
You have received reversed question mark(I too received those buddies...), which means, no data is received.
The problem is(I guess), you are using Serial1 to both ...
- Fri Dec 04, 2020 7:21 am
- Forum: General discussion
- Topic: [ERROR] class EEPROMClass has no member named length
- Replies: 2
- Views: 5382
[ERROR] class EEPROMClass has no member named length
Hey all !!!
I hope y'all are doing well...
I'm using Setup : Digital weighing scale using Renesas chip connected to one channel of Max232, another channel of Max232 connected to STM32. STM32 is connected to PC via FTDI232 serial to USB converter. A push button is attached to STM32, to facilitate ...
I hope y'all are doing well...
I'm using Setup : Digital weighing scale using Renesas chip connected to one channel of Max232, another channel of Max232 connected to STM32. STM32 is connected to PC via FTDI232 serial to USB converter. A push button is attached to STM32, to facilitate ...
- Mon Nov 30, 2020 12:22 pm
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: [Solved] I need to return a single value from incoming serial data...
I thank all, for helping a lot in my problem, especially, Mr. stevestrong .
Now I'm trying to write the weight data to STM32's emulated EEPROM. Before that, I was testing a test program influenced by inbuilt EEPROM example to write and read data. But while compiling, I get some error. Link to that ...
Now I'm trying to write the weight data to STM32's emulated EEPROM. Before that, I was testing a test program influenced by inbuilt EEPROM example to write and read data. But while compiling, I get some error. Link to that ...
- Sat Nov 28, 2020 2:23 pm
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: I need to return a single value from incoming serial data...
Long Long Live Mr. stevestrong
Thanks a lot sir... It's finally working... :D :D :D
I was working out on that issue.. But you solved the issue quickly... :)
Because of you only, I am completing my first ever Arduino-STM32 project.
Thanks a lot for being kind, gentle to this novice kid.
You're ...
Thanks a lot sir... It's finally working... :D :D :D
I was working out on that issue.. But you solved the issue quickly... :)
Because of you only, I am completing my first ever Arduino-STM32 project.
Thanks a lot for being kind, gentle to this novice kid.
You're ...
- Sat Nov 28, 2020 1:35 pm
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: I need to return a single value from incoming serial data...
Long live stevestrong
I changed
#define NR_BYTES 7
to
#define NR_BYTES 10
and
if ((m-rxTime)>50)
to
if ((m-rxTime)>80)
I've got output like :
000.120
000.120
000.120
000.120
000.120
But the output starts printing immediately after uploading, and doesn't respond to ...
I changed
#define NR_BYTES 7
to
#define NR_BYTES 10
and
if ((m-rxTime)>50)
to
if ((m-rxTime)>80)
I've got output like :
000.120
000.120
000.120
000.120
000.120
But the output starts printing immediately after uploading, and doesn't respond to ...
- Sat Nov 28, 2020 1:18 pm
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: I need to return a single value from incoming serial data...
stevestrong wrote: Sat Nov 28, 2020 12:58 pm The misstake is that you tweaked my code incorrectly.should beCode: Select all
inBytes[inCnt++] = Serial.read();
Code: Select all
inBytes[inCnt++] = Serial2.read();

I'm sorry for that, Sir.. childish mistake..

- Sat Nov 28, 2020 1:17 pm
- Forum: General discussion
- Topic: [Solved] I need to return a single value from incoming serial data...
- Replies: 37
- Views: 29042
Re: I need to return a single value from incoming serial data...
The misstake is that you tweaked my code incorrectly.
inBytes[inCnt++] = Serial.read();
should be
inBytes[inCnt++] = Serial2.read();
I added LED blink by data reception:
#define NR_BYTES 10
uint8 inBytes[10], inCnt, dataIn;
uint32 rxTime;
void loop()
{
uint32 m = millis();
if ((m-rxTime ...