COMPILE TIME ERROR::mini project.c(49): warning C206: 'lcddata':
missing function-prototype ::mini project.c(49): error C267:
'lcddata': requires ANSI-style prototype
PROGRAM
#include<reg51.h>
sfr LCD=0x80;
sbit RS=P2^6;
sbit EN=P2^7;
unsigned int a=0,i=0,v;
void tm();
void delay(unsigned char time)
{ unsigned int a,b;
for(a=0;a<time;a++)
for(b=0;b<1275;b++);
} void lcdmd(unsigned char value)
{ LCD=value;
RS=1;
EN=1;
del
↧
C51: MISSING FUNCTION PROTOTYPE AND REQUIRE ANSI-TYPE PROTOTYPE (5 Replies)
↧
ARM: How can I use lwIP tcp/ip stack with microcontroller stm32f4 (client)
Core: Cortex-M4
Microcontroller: stm32f407 (stm32f4 discovery board)
IP Stack: lwIP 1.4.1
I am using this microcontroller to control an automate and I want
to send some information to a separate web server via a HTTP request
in the form of:
http://192.168.1.3/api/xdevices.json?SetR=01
lwIP has a http server for the microprocessor, but I'm after the
opposite (microcontroller is the client).
I am not sure what i'm doing wrong but after TCP_Connect it
always goes
↧
↧
ARM: Error: *** Device is not supported by Toolchain ! *** (2 Replies)
Hi: I'm trying to compile the sample Blinky project which uses
STM32L152, got the error, how do I get the PSN to obtain a eval
license for Cortex M3? Right now the IDE only has license for M0
Error: *** Device is not supported by Toolchain ! ***
↧
ARM: Debugging - Save register (or variable) content to a file (2 Replies)
Hi,
I would like to know whether there is any way to save the content
of a register (or a variable) to a txt file in my PC for debugging
porpuses (plot the data). I am using Keil uVision 5 and the STM32F769
MCU and in my case want to save the content of the DAC->DOR1
register.
Thanks in advanced,
Omar
↧
ARM: Splash screen (6 Replies)
I've written my code and it working perfectly but I now have one
problem.
When it starts it doesn't go into main. It goes into my screen
splash code and shows a picture I don't want. How can I get it to
show the picture at the right time.
This is really annoying because I have looked for a bug for more
than 30 minutes but the code is perfect.
I cannot waste ant more time on this problem. I will post you the
code. Can you check it urgently for me.
↧
↧
ARM: FMC problem (1 Replies)
Hello Every one,
I am starting a new project and I am using the FMC peripheral in
order to communicate with a LCD TFT. I have configured the pins in
the STM32cube mx ,and checked on my board the pins to be connected to
the LCD (16 bit MCU).
I am using a STM32f429 VET processor with Keil MDk5 version. The
problem seems unexplained and weird, because I am trying to write
data on the FMC ports and I don't receive anything. I used a software
(using normal GPIO) to interface with the LC
↧
ARM: LogicAnalyzer Configuration (3 Replies)
Hi,
I need to configure the Logic Analyzer to debug a project using
the STM32F769I-DISC1 and the ST-Link. I have been working with the
ST-Link debugger until now and all seemed to work fine but yesterday
I tried to configure the Logic Analyzer and I wasn't able to make it
work.
I have been googleing for info and tried some tips I found, but still
doesn't work (checked the trace Clock to be the same as my CPU,
enable the Debug (SYS) option in the STM32CubeMX).
Anyone can help m
↧
C51: Which header file to use with Silabs EFM8LB12F64 (14 Replies)
Dear all,
Would you help me to identify which header file to use with Silabs
EFM8LB12F64E?
I already tried to compile a very simple program , but,
failed.
#include <SI_EFM8LB1_Register_Enums.h>
sbit LED_Green = P1^4;
sbit LED_Blue = P1^5;
sbit LED_Red = P1^6;
sbit PB0 = P0^2; //Push Button 0
sbit PB1 = P0^3; //Push Button 1
MCU_init(){
// TO disable watchdog timer d
↧
ARM: lpc2103 programming fail by jtag
Dear All, Thank you!!!
I have too many boards that has the lpc2103. but problem is that,
out of 100 boards 52 boards
has the problem of programming failure. I am using ULINK2 20 wire
JTAG programmer for programming LPC2103. I am using voltage supply
from board which is 3.3 Volt. 48 boards programmed and tested. please
give me the suggestions.
My Check points:
1. Measured Vcc = 3.3 V DC.
2. Crystal Frequency: 12 Mhz
3. Pin no 27(DBGSEL) of LPC2103 is bounded to 3.3 volt by usi
↧
↧
ARM: How to access Web server images from SD card in CGI files
Hi,
I am using STM32F4 microcontroller. I want to store all web server
images in SD card and
access them directly from SD card in cgi files.
How should I do this.
Reply on this would be of great help.
Snehal.
↧
None: Multiple instance of thread function (1 Replies)
Hi,
In keil.
void taskThread(void const * arg)
{
}
osThreadDef(taskThread, osPriorityNormal, 1, 2500);
I want to use same function for multiple instance of osThreadId (
for 2 or more threads).
Can I attach function to thread at run-time.
So I can wrap in my C++ thread class and use thread class multiple
instance. which can create multiple threads.
Thanks,
Naeem
↧
ARM: Keil v4 project in Keil v5 (2 Replies)
Hello
I am trying to build a project built in Keil uVision4 in Keil
uVision5.
But this error is preventing me to do so.
.\obj\..\hex\DG_ETH_1_7.axf: error: L6050U: The code size of this image (111208 bytes) exceeds the maximum allowed for this version of the linker.
Anything , that I am missing?
↧
None: keil uvision5 can't open projects with *.uvguix.username file existing
When I creat a project,it works normally,but if I close the keil
later,I can't open the project again.And in the project directory,a
*.uvguix.username file can be found.If I delete that file,I can open
the project again.So everytime I open it,I have to delete that file
first.How can I fix this?
↧
↧
ARM: Keil crashes during flash or debugger settings button clicked with stlink (1 Replies)
Dear Board
Keil crashes when i press settings in debugging window with STlink
plugged in.
im using STM32 board, and when i use "stlink utility" the
standalone software works fine without issue. i can read and see the
memory of my stm32f103 board.
but why it is not working with keil debugging or flashing ??
3 weeks back Keil and stlink were working fine and i tried blinkey
and serial communicatoon all worked good.
Today morning i upgraded stlink
↧
ARM: How can I link and enable an interrupt with the M0 LPC1114
I am currently trying to create and link an interrupt for my UART
communication, but I was also not able to figure out how to use an
external interrupt earlier. With the data sheet and header file I
have, i'm having a hard time finding the method to link a function
with an interrupt. With the previous ARM processor I have used (M7) I
easily found the address in the data sheet that pointed to the
interrupt handler. Some resources are below.
If anyone can give me some pointers I would
↧
ARM: STM32L433CCT6 Flash Algorithm
I have an STM32L433CCT6 and appears that there no Algorithm for
this device, it would appear from data sheets that this memory is
different form other devices.
Are there any Algorithm downloads for this device.
Help would be appreciated.
Kind Regards John W
↧
ARM: Logic Analyzer in Emulation (3 Replies)
Hello,
I have used Logic analyzer many times in simulation but while
trying to use that in emulation, there is some problem to setup the
signal.
How to use Logic analyzer in Emulation? Is it possible?
I am debugging with J-Link debugger with SWD mode and SWO is also
used. Is it enough or should I use ETM also? (I don't have ETM).
↧
↧
ARM: Hex code given by the shop works but our compiled correct code is not working (1 Replies)
I am using Lpc2148 arm 7 controller. Since from past few days the
hex file of the sample program given by the Shop is working while if
we copy the .c file of the same sample program and build it is not
working. I have checked the code it is correct. It was about the
blinking led. The code is showing no errors and warming but still not
working. When I start the debug session. It sets the ioset register
after some delay it gets unchecked but according to the program the
ioclr register mus
↧
C51: RFID BASED ATTENDANCE SYSTEM USING SMS (2 Replies)
can any one can give me the program for the rfid based attendance
using gsm module for notifying parents system for
↧
ARM: error #29 (2 Replies)
Hi all, While I compiled the code, I got a message as shown
below:
CAN_LPC1857.c(167): error: #29: expected an expression
The compiled code is :
uint8_t i;
uint8_t tx_data[8];
tx_data[] = {01, 02, 03, 04, 05, 06, 07, 08};
for(i=0; i<7;i++)
{
ptrCAN->MessageSend(tx_obj_idx, &tx_msg_info, tx_data[i], 8U);
}
Can anybody help me in this flow.
↧