Hey guys.
I'm trying to lean how to work with stm32f2 series of
microcontrollers.I just was very successful in lpc1768 and i
programmed every thing i wanted using the user manual and the
registers.I just built my project then added the start up file and
just programming it by programming the registers.But in stm series i
did this and it did'nt work.
Has any one have experience on programming this series without using
cmsis?
↧
ARM: Has any one tried this method?"programming without cmsis" (6 Replies)
↧
ARM: and again the question of variables (2 Replies)
There is an SRC variable of 16 bits, how to create two 8-bit
variables, so that one is addressed to the upper part and the second
to the lower part of the SRC variable?
type construction
uint16_t src;
uint8_t b1 = * ((uint8_t *) & src);
uint8_t b2 = * (((uint8_t *) & src) +1);
should work but at compilation produces:
MAIN.c (16): error: # 28: expression must have a constant value
uint8_t b1 = * ((uint8_t *) & src);
MAIN.c (17):
↧
↧
ARM: using keil compiler in Eclipse (6 Replies)
I'm a user using Keil (MDK-ARM Standard license)
My partner has used Eclipse and succeeded to compile arm project in
Eclipse.
He added Environment variables in System Setting
Path : C:\Keil_v5\ARM\ARMCC\bin
after that,
there is 'ARM Toolchain' item added in Current toolchain at [Project
properties -> C/C++ Build -> Tool Chain Editor]
But I can't find it on my system.
Is there anyone who uses eclipse and keil compiler?
Thank you!! Please Hel
↧
None: Import uVision Project Into Eclipse (3 Replies)
The following topics on this subject are now locked:
http://www.keil.com/forum/58497/
http://www.keil.com/forum/60502/
All of the http://www.keil.com/support/man/docs/ecluv/
links referenced in those threads now seem to be dead - HTTP 404
Is there an update?
↧
None: C retarget file I/O (5 Replies)
I am using uVision 5.11.1.0 with projects based on LPCOpen
examples.
My application uses C++ and C routines.
I have managed to send printf() output to UART using by
implementing fputc().
I now want to direct file access to different devices.
I have followed:
http://www.keil.com/support/man/docs/armlib/armlib_chr1358938932518.htm
and have added _sys_open() etc but on linking get many Error L6200E
_sys_write multiply defined.
Ticking project options Code Generation 'Use Mic
↧
↧
ARM: Are all functions in MicroLib non-reentrant?
Hi,
Are all functions in MicroLib non-reentrant?
If some of the functions are reentrant, can we refer to the table in
4.59 Thread-safe C library functions?
http://www.keil.com/support/man/docs/armlib/armlib_chr1359122864458.htm
I think it applies to "The C and C++ Library Functions reference",
but I'm not sure if it
also apply to MicroLib.
Thanks.
↧
None: Keil IROM1 address
I am working in MDK Keil for ARM. I would like to know what
changes in generated code, if I change Options for target/Target and
address of IROM1- to start from 0x10000 for example ?
Why simulation in that case works, but program loaded on target ARM
doesn't work ?
Thanks
↧
ARM: ARM LPC 2148 ADC Sampling Rate
How to detect the ADC sampling rate while we using USB 2.0
↧
None: Source code location
My question is if it is possible, using MDK ARM Keil IDE, to
define exact start location for every source code file ? I know I can
define per variable location, as well as per function location, but
it can be big job if I want all the vars and functions in some source
code file to start from some address.
Thanks
↧
↧
ARM: _Bool and pc_lint (13 Replies)
trying to use pc-lint with MISRA 2012 I have tried to change in
stdbool
#define bool _Bool
//typedef _Bool bool;
makes no difference
any suggestions?
I get the below type of 'report' all over the place.
bool bIsFahrenheit = false;
^
..\Src\statemachine.c(34,0): Note 970: Use of modifier or type '_Bool' outside of a typedef [MISRA 2012 Directive 4.6, advisory]
^
..\Src\statemachine.c(34,0): Note 9075: external symbol 'bIsFahrenheit' de
↧
ARM: Error in Configuration Wizard parser (2 Replies)
This is an example from
http://www.keil.com/pack/doc/CMSIS/Pack/html/configWizard.html
// <o TIMESTAMP_SRC>Time Stamp Source
// <dwt=> DWT Cycle Counter
// <systick=> SysTick
// <user=> User Timer
// Selects source for 32-bit time stamp
#define TIMESTAMP_SRC systick
Try inserting a digit into both instances of "TIMESTAMP_SRC", for
e
↧
None: ULINKplus ADC? (1 Replies)
On https://www2.keil.com/mdk5/ulink/ulinkplus I read
Sample rate: 20 MHz (16-bit delta-sigma technology)
I have to understand in ULINKplus is 16bit ADC with sample rate
20MSPS?
If yes data flow from this ADC is 320Mbit/s
Someone can confirm it?
What ADC is used?
↧
ARM: Allocating 32-bit variables input/output and calculating (2 Replies)
Assume a 32-bit input value contains 4 signed integers a, b, c and
d in the packed format below:
a: input[31:23]
b: input[22:16]
c: input[15:9]
d: input[8:0].
or in binary format: aaaaaaaaabbbbbbbcccccccddddddddd
A 32-bit output value contains the result composed of 2 signed
integers x and y in the format below:
x: output[26:16]
y: output[10:0]
or in binary format: 00000xxxxxxxxxxx00000yyyyyyyyyyy
Integers x and y are calculated according to the following
f
↧
↧
ARM: No Algorithm found for: 00000000H - 0000371BH
Hi All, I am facing issue while loading image in
MIMXRT1050-EVK.
This I used for hello_world program with the default settings.
I followed "http://www.keil.com/support/docs/2831.htm"
link as well but no success. Attaching the log for reference,
Load
"C:\\Users\\ARM\\LPUART_eDMA\\SDK\\boards\\iMXRT1052_DevelopersKit\\driver_examples\\elcdif\\rgb\\Objects\\elcdif_rgb.axf"
No Algorithm found for: 00000000H - 0000371BH
Erase skipped!
E
↧
ARM: ARMLPC 2148 ADC SAMPLING RATE
I done this code for ADC its doing the conversion well ., Now I
want to sample the ADC values ,
This is my code .
In this code where I want to sample .
In which place I want do sample.
How to sample the coversion of ADC.
AD1CR&=0X00000000;// clear AD1CR AD1CR|=0X00000003;// select
AD1.0....ad1.1as Ain AD1CR|=0X00010000;// select BURST mode
(11clk/10bit) AD1CR|=0X00200000;// PDN in operational mode
AD1CR|=0X00000400;// CLKDIV=4,to set adclk<4mhz
void a
↧
ARM: What is this L6971E error? and how to solve it? (1 Replies)
I am developing a application and and after trying to build I am
getting this error: L6971E: system_stm32f0xx.o(.data) type RW
incompatible with main.o(.ARM.__AT_0x20000000) type ZI in er
RW_IRAM1. How do i solve it? and what this error indicates?
↧
ARM: Library containing an ISR
Hello,
Let me start by saying that I have solved the problem I will
describe below in what I consider a not so elegant way. I am curious
to know why previous attempt I have made failed so here I am.
I have 2 executables - A and B. I want to add B to A as a library
(hoping to reuse B later for similar processors...). B contains an
ISR that I prefer keeping in B. When I build B as a library and
resolve all the obvious issues after inserting into A (SysTick,
configuration etc.) I see
↧
↧
ARM: c code explanation (3 Replies)
please can some one explain to me how this dt works i don't
understand he didn't assigned any value to dt and he compares it and
used &
please can some one explain to me how this Bitwise and & operator
works
void LCD_WriteData(uint8_t dt)
{
if(((dt >> 3)&0x01)==1) {d7_set();} else
{d7_reset();}
if(((dt >> 2)&0x01)==1) {d6_set();} else
{d6_reset();}
if(((dt &am
↧
ARM: Stack relocation using scatter file (4 Replies)
I want to protect myself from stack overflow. From several
articles I got the idea that I can locate the stack in the bottom of
the RAM, before .bss section.
Since on Cortex M stack grows down, on stack overflow my code will
attempt to write in non-existing memory and I'll get an exception.
And exception is much better than quit corruption of static data.
I used project for stm32f10x, so 0x08000000 is the beginning of
the flash and 0x20000000 is the beginning of RAM.
Using
ht
↧
ARM: unable to get ouput of printf
hello,
i am working on FRDM-K82F freedom board on keil V5.23 with freeRTOS
example. i have downloaded code (DPF pack) from the NXP site.
while simulating the code(without hardware) on keil printf
statement doesnt print anything and it also goes into the infinite
execution.
i want output of printf statement in simulation(without hardware)-
please suggeste a way, if possible?(if i execute same program with
hardware, will i directly get output of printf?, i am yet to purchase
the
↧