Search found 24 matches

by LORDHADES
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: 2535

Re: I need to return a single value from incoming serial data...

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.
Thanks for your reply man!!!
by LORDHADES
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: 2535

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 availab...
by LORDHADES
Thu Dec 10, 2020 12:59 pm
Forum: General discussion
Topic: Need help on writing and reading characters on EEPROM
Replies: 0
Views: 334

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 ... d...
by LORDHADES
Fri Dec 04, 2020 10:12 am
Forum: General discussion
Topic: Reversed question marks reading GPS module
Replies: 6
Views: 328

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 re...
by LORDHADES
Fri Dec 04, 2020 7:21 am
Forum: General discussion
Topic: [ERROR] class EEPROMClass has no member named length
Replies: 2
Views: 270

[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 dat...
by LORDHADES
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: 2535

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 p...
by LORDHADES
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: 2535

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 really...
by LORDHADES
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: 2535

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 my button press, and again, gets pr...
by LORDHADES
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: 2535

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.

Code: Select all

inBytes[inCnt++] = Serial.read();
should be

Code: Select all

inBytes[inCnt++] = Serial2.read();
:D
I'm sorry for that, Sir.. childish mistake.. :D
by LORDHADES
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: 2535

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)>20) { inCn...

Go to advanced search