Search found 8 matches
- Thu May 11, 2023 4:09 pm
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
Re: analogRead() Freezes the program
I just received the development board and tested the interrupt issue and it's working fine it's just an issue with proteus
- Sun May 07, 2023 2:29 am
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
Re: analogRead() Freezes the program
Well i think it's problem with proteus vsm so I've ordered a stm32f407ve development board and I'll test it on that then i can debug it too which will be easier to find out what's causing the issue if there is any with the code
- Sat May 06, 2023 5:17 pm
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
- Sat May 06, 2023 11:23 am
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
- Sat May 06, 2023 10:14 am
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
Re: analogRead() Freezes the program
just Checked interrupts dont work either .-.
With code: attachInterrupt(digitalPinToInterrupt(PA0), update, CHANGE);
and update function with Serial.println("Tick"); but no response from interrupt, i tried using direct pin name instead of digitalPinToInterrupt() and didnt work either.
With code: attachInterrupt(digitalPinToInterrupt(PA0), update, CHANGE);
and update function with Serial.println("Tick"); but no response from interrupt, i tried using direct pin name instead of digitalPinToInterrupt() and didnt work either.
- Sat May 06, 2023 10:12 am
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
- Sat May 06, 2023 9:09 am
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
Re: analogRead() Freezes the program
also the baud generated by the MCU is 8 times less than real baud, MCU Clock is working fine but i have to multiply baud by 8 to get correct Serial Baud Rate
i.e : Serial.begin(9600) works with Baud1200 in proteus
and Serial.begin(9600 * 8) works with baud 9600 in proteus
i.e : Serial.begin(9600) works with Baud1200 in proteus
and Serial.begin(9600 * 8) works with baud 9600 in proteus
- Sat May 06, 2023 9:06 am
- Forum: General discussion
- Topic: analogRead() Freezes the program
- Replies: 12
- Views: 1650
analogRead() Freezes the program
The Code:
When the code reaches analogRead() function it just freezes the Chip
Please let me know what could be the issue?
and Proteus Simulation:
Im using STM32Duino Core, Arduino-CLI with VSCode Arduino ExtensionWhen the code reaches analogRead() function it just freezes the Chip
Please let me know what could be the issue?