Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Segmentation fault, can be caused by multiple reasons. 1. you are allocating memory but you are not releasing it, so you ran out of memory, and get null pointer. 2. there is a problem with communication between your program and device driver, you are not checking for this condition, or driver...
You need to provide more information. The given program must close socket after sending info to client. I guess that you need to define protocol first (what is client going to send to server, and what server should send as a response). Look at this example on how to implement multi threaded...
I think that you under estimated effort for this project. So, first thing first, having kernel is not enough. You will need a bootloader, and BSP (Board support package) for your board, which implies a lot of changes needed. My suggestion would be this: select cpu which you want to use, get...
Assuming that you are using ARM and FreeRtos, here are two article about FreeRTOS awareness:
https://mcuoneclipse.com/2016/10/15/freertos-kernel-awareness-with-ozone/
https://mcuoneclipse.com/2016/07/06/freertos-kernel-awareness-for-eclipse-from-nxp/
Both are using Segger J-Link (which is...
I don't think that you can do that. JlinkGdbServer needs to be started before debugger. From ddd you need to call gdb which is cross compiled for given architecture (ARM< MIPS, X86, ...). JLinkExe is not a debugger.
Embedded linux is almost same as "normal" linux. If I may suggest, start with x86 version running under vmware player. That way you can learn how to debug kernel modules (drivers). Download copy of Linux Device Drivers, Third Edition, and examples from it.
Botha have support only for STM32. Atolic is gased on Eclipse & GNU GCC, Keil is using their own compiler. Both have free license with limit of 32K. But if you are using STM32F0, you can get free unlimited license for Keil. For STM8 you can use SDCC which is free.
That is easy. Here is th example which you can get from Analog devices web site:
float ADXL362_ReadTemperature(void)
{
unsigned char rawTempData[2] = {0, 0};
short signedTemp = 0;
float tempCelsius = 0;
ADXL362_GetRegisterValue(rawTempData, ADXL362_REG_TEMP_L...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.