firmware

Understanding linker script NOLOAD sections in embedded software

耗尽温柔 提交于 2021-01-28 20:01:01
问题 According to the GNU documentation for ld , a NOLOAD section works as following: The `(NOLOAD)' directive will mark a section to not be loaded at run time. The linker will process the section normally, but will mark it so that a program loader will not load it into memory. Now, regarding to the program loader , accordign to wikipedia: Embedded systems typically do not have loaders, and instead, the code executes directly from ROM. In order to load the operating system itself, as part of

Embedded C UART conventions

血红的双手。 提交于 2021-01-27 18:30:51
问题 I need advice on proper way of handling UART communication. I feel like I've done handling sending serial commands over UART well but I don't know if the way I'm parsing the response or receiving serial data is the best way to do it. Any tips are appreciated but I just want to know if there's a better more and elegant way to parse UART RX. This is for an MSP430 uC by the way... First I have these declared in the header file: const unsigned char *UART_TX_Buffer; unsigned char UART_TX_Index;

EFI Application Erorr Write Protected

随声附和 提交于 2020-08-10 19:34:07
问题 I tried to do some write/read operations on filesystems that I have enumerated for. The problem is when I want to write to other volumes rather than my self (fs0), it will return WRITE PROTECTED Error. ... Enumerated and opened all available volumes successfuly efiStatus = root->Open(root, &token, L"xxx", EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE, 0); if (efiStatus == EFI_SUCCESS) { char* myStr = "Sample Content"; UINTN myStrSize = strlenEx(myStr); efiStatus = token-

Issues reading data from ADXL355 using SPI (STM32 board)

老子叫甜甜 提交于 2020-04-16 03:33:51
问题 I'm trying to read data from an EVAL-ADXL355-PMDZ connected to a STM2L072 Lora discovery kit through the SPI protocol for a project. At first I was using an ADXL345 sensor and I was able to read the accelerometric data and convert it to g without any issues. After switching the sensor to ADXL355, I keep receive all zeroes when reading data registers instead. I changed my initial code for ADXL345 accordingly to the datasheet of the ADXL355 sensor (https://www.analog.com/media/en/technical

Issues reading data from ADXL355 using SPI (STM32 board)

半城伤御伤魂 提交于 2020-04-16 03:33:46
问题 I'm trying to read data from an EVAL-ADXL355-PMDZ connected to a STM2L072 Lora discovery kit through the SPI protocol for a project. At first I was using an ADXL345 sensor and I was able to read the accelerometric data and convert it to g without any issues. After switching the sensor to ADXL355, I keep receive all zeroes when reading data registers instead. I changed my initial code for ADXL345 accordingly to the datasheet of the ADXL355 sensor (https://www.analog.com/media/en/technical

Experiences with (free) embedded TCP / IP stacks? [closed]

我的梦境 提交于 2020-01-30 13:56:50
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does anyone have especially good (or bad) experiences with any of the following embedded TCP / IP stacks? uIP lwIP Bentham's TCP/IP

Experiences with (free) embedded TCP / IP stacks? [closed]

流过昼夜 提交于 2020-01-30 13:56:08
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does anyone have especially good (or bad) experiences with any of the following embedded TCP / IP stacks? uIP lwIP Bentham's TCP/IP

Are there any FreeRTOS interpreted language libraries available?

怎甘沉沦 提交于 2020-01-03 07:19:10
问题 I work for a company that created firmware for several device using FreeRTOS. Lately our request for new features has surpassed how much work our firmware engineers are capable of, but we can't afford to hire anyone new right now either. Making even tiny changes requires firmware people to go in and modify things at a very low level. I've been looking for some sort of interpreted language project for FreeRTOS that would let us implement new features at a higher level. Ideally I would like to