Posted on August 05, 2016 at 19:06
I am looking over some assembly code and I came across this:
LDR R3, =0xCADEBABA I have looked everywhere and I cannot find what 0xCADEBABA stores or what its relevance is. I have checked STM32F4 ref m...
Posted on July 26, 2016 at 17:28I have been using a busy for loop to create my delays, but now I need precision. I want a function that will wait for n microseconds. How should I go about doing this? The Systick timer is not accurate enough (already...
Posted on July 15, 2016 at 15:44I have been dissecting my STM32L151's code. It starts at address 0800 0000 and consists of around 50 load instructions. After each load instruction, the value is shifted right by 0x20 and stored into R0. After each lo...
Posted on July 14, 2016 at 17:27
I'm using an STM32L151 board and I want to know how to map a memory address to its function. For example:
LDR.W R0, =0x20002A20
MOVS R2, #4
MOVS R1, #4
STR R1, [R0,#0x14]
LDR.W R1, =0x20002224
STR.W R2, ...
Posted on June 28, 2016 at 21:11I have a STM32F4 Discovery board. I have GDB connected to OpenOCD and when I run my program on GDB it executes perfectly. When I disconnect the board and program it via ST-Link nothing happens. I tried and older progr...
Posted on August 05, 2016 at 19:43I apologize, I'm new to RE and I'm practicing with code samples I wrote. I Googled it before I asked this question and saw it was defined as BSS_GUARD_BAD_VALUE but I didn't know what the GUARD_BAD_VALUE part meant....
Posted on July 26, 2016 at 21:49
I could only get microsecond accuracy with
SysTick_Config(HAL_RCC_GetHCLKFreq()/1000000);
HAL_GetTick(); And yes it uses the SYSCLK. I was using the default on board clock speed 168 MHz. I don't know h...
Posted on July 26, 2016 at 20:23
Thank you for pointing me in the right direction!
void
enable_delay(void){
DWT->CYCCNT = 0;
CoreDebug->DEMCR |= 0x01000000;
DWT->CTRL |= 1;
}
void
delay(uint32_t tick){
uint32_t start = DWT->CYCCNT;
ui...