Saleae Logic Analyser not working with SPI Receive - c

I am using the STM32F5 Discovery board to connect with an accelerometer using a breadboard. I connect the Saleae Logic Analyser to the bread board to the MISO, MOSI, CS, VCC, CLK and ground of the sensor.
First I try monitoring the SPI Transmit function only. It is successful and I am able to see the response. Now when I add a new line of code of SPI Receive to the existing code, I am unable to see anything on the logic analyser. I tried checking the status of the SPI Received variable in the KEIL watch window, and nothing is appearing.
Now when I disconnect the Logic Analyser and if I observe the data from the watch window, it is working fine.
I think there is some interfence between the logic analyser hardware and the Discovery Board/Sensor Hardware.
Has anyone else faced a similar situation earlier? Please let me know the solution to this.
Thanks in advance.

Related

Sending AT commands over UART

My problem is sending AT commands over UART. I am working with STM32 IDE. I have the hardware: STM32L476 with a sensor shield together with the ESP01 Wifi module.
I got the hardware to work and can already send the first AT command over Uart to ESP01. When I try other commands AT+RST or AT+GMR I don't get any response back.
I use this code to send over UART to ESP01.
void ATsend (char out[]){
HAL_UART_Transmit(&huart4, (uint8_t *)out, strlen(out), 1000);
}
The code below works fine
ATsend("AT");
I get the response OK.
When I try this I get no response.
ATsend("AT+RST")
Any tips?
If you are sure that your UART receiver, or your DCE in RS-232 notation, supports the commands you're sending, this guide might be helpful:
https://docs.espressif.com/projects/esp-at/en/latest/esp32/faq.html#when-the-host-mcu-sends-an-at-command-to-the-esp32-device-there-is-no-response-what-is-the-reason.
The guide indicates as a possible solution also for the ESP8266 products the following: <<When the host MCU sends an AT command to the ESP32 device, there is no response. What is the reason?
A terminator (“ATrn”) must be added after an AT command when the host MCU sending AT commands to an ESP32 device. Please see Check Whether AT Works.>>
There's also this link: https://docs.espressif.com/projects/esp-at/en/latest/esp32/Get_Started/Downloading_guide.html#check-whether-at-works.
I hope these suggestions can solve your problem. At least they can indicate to you if the device is working.
There might be other causes of malfunction, but in this case I need more information to help you solve them and I suggest that you write to my company for professional support.
Yours sincerely,
V.D.

Interfacing Bosch BNO055 with nrf52840 using segger IDE

Can anyone help me with the reading the data register values from BNO055 sensor with nrf52840 microcontroller using i2c communication protocol.
i have initiated the MCU master twi and also initiated the Sensor and it is acknowledging but i am not able to read the outputs of the registers , even after write/read to the registers of the sensors, i am not able to read the output.
if anyone have idea on interfacing BME680 with the nrf52 series. kindly help me.
Thanks in advance.
Good day !!

STM32F407 Disc E31 Error message in debugging

I will ask a question about my STM32F407 Discovery board. I want to learn about external interrupts and I was making a small circuit. I connected PH0 to my button and PH1 to the LED. But these pins are connected to the mcu's crystal pins. But I didn't know it at that time. I was press button that is connectet to 5V. And my IDE won't connect to my board for debugging debugging. I can connecting to my board via ST Link Utility and I can do a full chip erase with no errors. Then I turn back to code in Atollic, press the debugging button and I get this error messages:
Error in executing 'cont' command ...
CM4 Failed to read all registers
FAILED to REGISTER Values from the target
Target is not responding, retrying...
*some messages in between*
warning: Remote failure reply: E31
Remote failure reply: E31
Remote connection closed
Quit
And then I turned off the debug screen to try again but I can't because Atollic can't find any ST Link devices. This is the error message:
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target.
Note: My PC recognize my board in Device Manager.
How can I solve this problem. ST Link Utility connects to my board succesfully, My PC connects to my board. I tried St link firmware upgrade but I got more errors. Like this.
Failure at line: 13 in "Target Software Startup Scripts"
You probably have ST Utility still connected to your MCU. This results in Atollic not beeing able to connet to the MCU. Either close ST Utillity or press the disconnet button.
Since you can erase it your MCU should be ok and you chose one of the few 5V tolerant pins but it would be better practice to use 3V.
Another reason might be the option bytes if the read out protection got set to level 1 or 2 the debugger is sometimes not able to reset those and is therefore not able to read out the register.
I was solve a lot of problem. Firstly I found a problem. This is a my DCMI_Config function. In this function I have a lot of pin definition. GPIOA caused my problem.
GPIOA-> MODER = 0x00002200; //GPIOA 4,6 Set Alternate Function for DCMI
This line has my problem. I was search Discovery schematic and I found something. PA4 pin connected to Discovery's voice uc as I2S3_WS. Is this cause any problem?

Problem while uploading code in arduino atmega2560

I have arduino atmega2560 when i upload blink code than it shows error
avrdude: stk500v2_ReceiveMessage(): timeout.
I have checked the COM port is correct also that the driver is correctly installed.
Why would I be receiving a timeout error?
The possible reasons:
Faulty communication cable
Wrong com port selected
Wrong device model selected
Baud rate settings
Driver related issues
I think your arduino got bricked. But first try to reconnect it and upload your program.
Second try to disconnect any rx or tx pin connected. Third if your arduino is bricked, try to check this article for full solution of bricked arduino. Programmer is not responding arduino

Modbus rtu slave is not responding to modbus rtu master

https://code.google.com/p/stm32modbus/source/browse/#svn%2Ftrunk%2F%20stm32modbus%20--username%20ickingdom%40gmail.com%253Fstate%253Dclosed
I am using this program.I debug and compile it successfully no error i got then i burn it into my prototype slave which has stm32f103c6 microcontroller. Then with help of docklight software i send request to my salve but its not responding. What should i do?
I set baud rate of master and slave same so that is not the issue.
I was thinking like may be program has some error but i didn't get it. So please help me to find any missing thing in this program which i have downloaded from google code which link i have shown above.Is there any alternative that you want to suggest then please suggest me.
Try to remove the CRC request on input data and then try communicating via docklight, please be sure that the CRC module of the code is working properly.

Resources