Questions tagged [mcu]

89 questions
0
votes
0 answers

Can't erase some flash sectors of LPC824 using IAP on MCUXpresso IDE

I ported my project that ran on LPCXPresso version 7.9.2 to MCUXpresso 11.6. The project worked normally, however I had a failure in one feature. In this functionality, at some point the software runs only in RAM and completely erase the flash and…
josefrval
  • 11
  • 4
0
votes
1 answer

Define multiple symbols in Eclipse preprocessor settings

Is there a way to define multiple symbols in one go in Eclipse? I have a list of preprocessor symbols that need to be defined and adding one by one in the preprocessor settings seems to be too tedious. Is there a way to add the list of symbols in…
jgrill
  • 1
0
votes
1 answer

Looking for IDE for PD78F0485 MCU (Renesas)

I cannot find an environment to work with PD78F0485 MCU. It is RL78/Lx3. But I only see support for 78L1, 78L2, 78L3,.... but not for Lx3(this MCU). Can you help me? I tried with e2studio, CS++, IAR...
vcld
  • 3
  • 2
0
votes
0 answers

performing DFU OTA using mcumgr in xamarin forms

I am very new to firmware updates and the whole zephyr rtos. I am trying to perform a firmware update using the mcumgr. I ran into some problems. I read the documentation, but it's not very well written and even the autor phrased that it isn't even…
0
votes
0 answers

import android.tw.john.TWUtil;

How to import import android.tw.john.TWUtil; in android to communicate with Allwinner mcu i tried TWUtil jar but not able to find libTWUtil.so file I am able to import import android.tw.john.TWUtil; but getting error E/AndroidRuntime(30513):…
Sumit
  • 11
  • 1
  • 1
0
votes
1 answer

How to create my own unique interrupt signal and interrupt handler in EFR32FG14

I have an EFR32FG14 evaluation board with the example shown in the end. where it get triggered by an odd number of pins getting pressed. I want to change this example (in code) so i get the interrupt be triggered by a single pin ,not odd or even. I…
lub2354
  • 107
  • 2
0
votes
0 answers

MCU 8051 IDE with SDCC stuck at compiling

I am a student and have been instructed by the college to use MCU 8051 IDE with SDCC for learning microcontroller programming. I installed this software successfully on many HP devices in college but when I am trying to use it on my home Dell…
0
votes
0 answers

TCM Memory - Functions and variables

I'm working on Microchip Cortex M7 microcontrollers. I want to use the TCM for some of my functions. I also use global variables. I was wondering: What is the impact if i put only the functions in TCM? Do i need to put the fucntions AND variables…
0
votes
1 answer

C language, methods to perform simple calculations without using floating point numbers

Are there any methods, code snippets or libraries to perform simple calculations (multiplications, divisions, sums, subtractions) without using floating point numbers? I code in C on an 8 bits MCU without Floating Point Unit, so floating…
AdriZ
  • 393
  • 3
  • 9
0
votes
0 answers

$1003 in 68HC11 input values

This is the link to the reference: https://www.nxp.com/docs/en/data-sheet/M68HC11E.pdf I think it is related to the statement "I/O pins configured as high-impedance inputs have port data that is indeterminate." Does it mean it can generate random…
Jtl
  • 101
  • 3
0
votes
2 answers

How should I code rolling RF remote at the receiver side?

I ordered a 444MHZ remote and receiver with some buttons on it. The remote has rolling code but when I tested I saw that every button has 8 fixed different possibility and repeat it self. Button1: (Decimal results) 1- 3899572514 / 32bit…
Morphinz
  • 221
  • 1
  • 2
  • 13
0
votes
0 answers

STM32 flash force write broke MCU

I have MCU STM32F415xx and was trying to write on internal flash. But for reason I don't know PGPERR and PSGERR flags were turning on in random time (as I found, problem can be found anywhere in HAL libraries) and HAL functions were stopping. I…
lazba
  • 129
  • 9
0
votes
1 answer

Multiply a 8bit array with a constant and scale back to 8bit faster by leveraging that we have a 32 bit microcontroller

There is C a array like uint8_t a[8] = {1, 2, 3, 4, 5, 6, 7, 8}; and constant c=100. I'd like to do this: for(i = 0;i < 8; i++) { a[i] = (a[i] * c) >> 8; } However as it's only 8bit data I wonder if there is a trick to somehow multiply and scale…
0
votes
1 answer

does stm32 timer interrupt process parallelly?

for example, I use HAL_TIM_OC_Start_IT(&htim3, TIM_CHANNEL_1) to start Outcomparison Interrupt Mode. considering HAL_TIM_OC_DelayElapsedCallback().Will it process parallelly with commands in the main() or first process interrupt then resume to…
JAMES
  • 5
  • 2
0
votes
0 answers

STM32F767 flash programming issue

We are trying to program the MCU flash memory to write and save some data on it. After a single write to a single sector(that might have failed), when we try to write/overwrite the same sector we fail. We are using HAL_FLASHEx_Erase to delete the…