double type calculation
Hello.At the next double type calculation,double a = 0.7; char b = 12; double c; c = a * b;c is saved to 8.39999 in the register But 0.7*12 is 8.4How can I save 8.4 to the 'c' register?Thanks.
Hello.At the next double type calculation,double a = 0.7; char b = 12; double c; c = a * b;c is saved to 8.39999 in the register But 0.7*12 is 8.4How can I save 8.4 to the 'c' register?Thanks.
I have used this same chip on a previous project and managed to toggle an LED on and off using HAL_Delay(1000); function. I copied the same code across to my new project board, uploaded it successfully, toggled the LED on successfully but when I step...
Hello,I'm using an stm32f411ce with an lsm6ds3 IMU and I want to trigger a read from the IMU with an EXTI. I've set it all in the code below and activated the interrupt on the IMU. the interrupt is set in PR register but handler is never called.Thank...
We have been using an STM32L476 in a product that schedules periodic wake times. Recently we have discovered a bug where the unit will go to sleep and never wake back up. What we have noticed is after generating another interrupt to wake the unit up ...
Do you have any ideas what's going on with STM32L431RCT. After ESD Testing ADC of STM32L431RCT reads back 0 Values at all Input Channels. A manually disable and enabling cycle in debugging mode helps. ADC is reading values then correct again.We also ...
I was trying to read the 24AA64FT EEPROM using the I2C DMA methods. But the I2C read will break after reading 2 bytes for no reason, and both SDA and SCL stay low. As you can see in the picture, the reading starts with writing 0x50 (0xA0 >> 1) to the...
I have the following bug in my project and cannot figure out why.In one function I was using an uninitialized pointer variable to receive data from another function. For some reason it works which I think shouldn't. The code is like this:funcA{ m...
Hi, I have Stm32f103r8t6 minimum board, and I need blinkig LED on pin PC7, in Arduino, how do alternate function configuration, please example.
I hate being stupid, but I'm trying to get a nucelo-stm32LR76RG eval board working. I have the cubeide and cubemx software installed. I also have the associated example programs loaded. The board comes shipped with a program that makes the led blink ...
This is a follow up to the Topic OctoSPI configuration for hyperflash, as I do not think it has a definitive answer. I have the cypress S26 Hyperflash Memory connected to the OSPI Interface and configured it for Hyperbus transaction. Also I want to u...