DAVE™ Forum Discussions
DAVE™
HI,
How to use CR2 from CC80 to reset the CC81 timer. This way control the phase between CC80 PWM and CC81 PWM.
Ari
How to use CR2 from CC80 to reset the CC81 timer. This way control the phase between CC80 PWM and CC81 PWM.
Ari
DAVE™
Hi,Whenever I include a call to vsnprintf(..) in my code I end up in the BusFault_Handler handler in Startup_XMC4500.s and never reach main().Stepping...
Show More
Hi,
Whenever I include a call to vsnprintf(..) in my code I end up in the BusFault_Handler handler in Startup_XMC4500.s and never reach main().
Stepping through from reset I get as far as line 303 in Startup_XMC4500.s and then stepping over BLX R0 I end up at BusFault_Handler
/* C++ : Call global constructors */
LDR R0,=__libc_init_array
BLX R0
My code looks like this:
static void appendResponse(const char * fmt, ...)
{
va_list ap;
va_start (ap, fmt);
vsnprintf (szLineResponse,100, fmt, ap);
strcat(statusResponse, szLineResponse);
va_end (ap);
}
I have also tried:
static void appendResponse(const char * fmt, ...)
{
__builtin_va_list ap;
__builtin_va_start (ap, fmt);
vsnprintf (szLineResponse,100, fmt, ap);
strcat(statusResponse, szLineResponse);
__builtin_ va_end (ap);
}
Note there is no call to appendResponse() in my code, it appears to be just the presence of vsnprintf() that causes the problem.
Any thoughts?
Kind regards
Andy Show Less
Whenever I include a call to vsnprintf(..) in my code I end up in the BusFault_Handler handler in Startup_XMC4500.s and never reach main().
Stepping through from reset I get as far as line 303 in Startup_XMC4500.s and then stepping over BLX R0 I end up at BusFault_Handler
/* C++ : Call global constructors */
LDR R0,=__libc_init_array
BLX R0
My code looks like this:
static void appendResponse(const char * fmt, ...)
{
va_list ap;
va_start (ap, fmt);
vsnprintf (szLineResponse,100, fmt, ap);
strcat(statusResponse, szLineResponse);
va_end (ap);
}
I have also tried:
static void appendResponse(const char * fmt, ...)
{
__builtin_va_list ap;
__builtin_va_start (ap, fmt);
vsnprintf (szLineResponse,100, fmt, ap);
strcat(statusResponse, szLineResponse);
__builtin_ va_end (ap);
}
Note there is no call to appendResponse() in my code, it appears to be just the presence of vsnprintf() that causes the problem.
Any thoughts?
Kind regards
Andy Show Less
DAVE™
Hello everyone,first of all I would like to apologize if this is posted to the wrong section, I am not sure whether to put this here or into the micro...
Show More
Hello everyone,
first of all I would like to apologize if this is posted to the wrong section, I am not sure whether to put this here or into the microcontroller forum.
I'm working on a project using the Dave Webserver App running on a Hexagon Application Kit. One part of this project is monitoring information from the inside of my application using a web interface. So far I was able to setup the app successfully and have everything running the way I wanted it to be. I can monitor the variables I need, meaning server sided includes also work flawlessly. As the monitoring part is meant to be some kind of "real-time" solution I am using JavaScript to refresh my .ssi file, where I stored my server sided includes. I tried several intervals to refresh the page, however, if I use a refresh interval of less than 2 seconds the webserver crashes after some time. When this happens I have to reset the Hexagon Kit to regain any webserver functionality (ping is not possible, when it crashes). As I mentioned I want to use it as some kind of real-time solution (no hard real-time), so a refreshing interval of about 0.5 seconds to 1 second would be enough for my purpose. I tried some refreshing intervals, for example using a one second interval the server keeps up around one minute, with two seconds I did not encounter any problems until now and it works perfectly fine. By the way the same thing happens when I refresh the page manually without any JS in it, so i do not think it is a problem with the JavaScript part. Right now I am investigating, what might cause these crashes. My guess is, the problem arises from too many connections created or too many requests made. However I have yet to check this, including an analysis of traffic using Wireshark.
Maybe someone of you has any other idea what might cause the problem, or has any suggestion on the settings part of the webserver app what has to be adjusted to solve this.
Thanks in advance!
Umut Show Less
first of all I would like to apologize if this is posted to the wrong section, I am not sure whether to put this here or into the microcontroller forum.
I'm working on a project using the Dave Webserver App running on a Hexagon Application Kit. One part of this project is monitoring information from the inside of my application using a web interface. So far I was able to setup the app successfully and have everything running the way I wanted it to be. I can monitor the variables I need, meaning server sided includes also work flawlessly. As the monitoring part is meant to be some kind of "real-time" solution I am using JavaScript to refresh my .ssi file, where I stored my server sided includes. I tried several intervals to refresh the page, however, if I use a refresh interval of less than 2 seconds the webserver crashes after some time. When this happens I have to reset the Hexagon Kit to regain any webserver functionality (ping is not possible, when it crashes). As I mentioned I want to use it as some kind of real-time solution (no hard real-time), so a refreshing interval of about 0.5 seconds to 1 second would be enough for my purpose. I tried some refreshing intervals, for example using a one second interval the server keeps up around one minute, with two seconds I did not encounter any problems until now and it works perfectly fine. By the way the same thing happens when I refresh the page manually without any JS in it, so i do not think it is a problem with the JavaScript part. Right now I am investigating, what might cause these crashes. My guess is, the problem arises from too many connections created or too many requests made. However I have yet to check this, including an analysis of traffic using Wireshark.
Maybe someone of you has any other idea what might cause the problem, or has any suggestion on the settings part of the webserver app what has to be adjusted to solve this.
Thanks in advance!
Umut Show Less
DAVE™
Sir,I want to reboot the XMC4500 by programming how can i do that? Also i want to use the timer which are the example project from which i can take he...
Show More
Sir,I want to reboot the XMC4500 by programming how can i do that? Also i want to use the timer which are the example project from which i can take help?
Thanx for reply but in watchdog example when i run it after counter becomes five it does not reset the program but jumps to the following code...of startup_xmc4500.s
file at line no labeled 2 and does not goes away from the instruction...please tell the solution....
/**************startup_xmc4500.s**********************/
/* ================== START OF VECTOR ROUTINES ============================= */
.thumb
/* ======================================================================== */
/* Reset Handler */
.thumb_func
.globl __Xmc4500_reset_cortex_m
.type __Xmc4500_reset_cortex_m, %function
__Xmc4500_reset_cortex_m:
.fnstart
1. /* Disable Branch prediction */
2. LDR R0,=PREF_PCON
3. LDR R1,[R0]
4. ORR R1,R1,#0x00010000
5. STR R1,[R0]
........
.............
..........
.................... Show Less
Thanx for reply but in watchdog example when i run it after counter becomes five it does not reset the program but jumps to the following code...of startup_xmc4500.s
file at line no labeled 2 and does not goes away from the instruction...please tell the solution....
/**************startup_xmc4500.s**********************/
/* ================== START OF VECTOR ROUTINES ============================= */
.thumb
/* ======================================================================== */
/* Reset Handler */
.thumb_func
.globl __Xmc4500_reset_cortex_m
.type __Xmc4500_reset_cortex_m, %function
__Xmc4500_reset_cortex_m:
.fnstart
1. /* Disable Branch prediction */
2. LDR R0,=PREF_PCON
3. LDR R1,[R0]
4. ORR R1,R1,#0x00010000
5. STR R1,[R0]
........
.............
..........
.................... Show Less
DAVE™
Hi.Some Microcontrollers can be configured to generate an interruption when the receive line become idle, generating this way an interrupt after the l...
Show More
Hi.
Some Microcontrollers can be configured to generate an interruption when the receive line become idle, generating this way an interrupt after the last character of a packet.
Can the XMC4500 do the same?
What is the difference between "Receive Frame Finished" and the "Receive Indication Flag" events?
Ari. Show Less
Some Microcontrollers can be configured to generate an interruption when the receive line become idle, generating this way an interrupt after the last character of a packet.
Can the XMC4500 do the same?
What is the difference between "Receive Frame Finished" and the "Receive Indication Flag" events?
Ari. Show Less
DAVE™
Hi.I'm testing the UART001 app using the XMC4500 Relax Lite kit. Configuration: baud: 115200 Stop Bit 1 Data Bits 8 Transmit Fifo size 16 Receive Fifo...
Show More
Hi.
I'm testing the UART001 app using the XMC4500 Relax Lite kit.
Configuration:
baud: 115200
Stop Bit 1
Data Bits 8
Transmit Fifo size 16
Receive Fifo size 2
Trigger limits 1
UART Receive Pin: P1.4
UART Transmite Pin P1.5
Standard Receive Interrupt
I also configured the NVIC002 App:
// Serial Interrupt Handler
void SerialReceive_Handler(void)
{
RxBuf[RxNumBytes++] = UART001_ReadData(&UART001_Handler);
}
Issue:
when I transmit the character "A" to the Relax Kit, the interruption is generated and RxBuf = "A", as expected.
Then I transmit tha character "B" also as expected, the interrupt is generated and RxBuf = "AB".
But, when I transmite the character "C" there's no interrupt.
After that I transmite the character "D" and the interrupt is generated again, but the RxBuf = "ABC".
If I transmit the character "A" again, the interrupt is generated and the RxBuf = "ABCD".
Others characters like E, F, I, J, L, O, Q, etc. also don't generate ISR but are read by the interanal Data Buffer of the USIC.
What should be the problem? Show Less
I'm testing the UART001 app using the XMC4500 Relax Lite kit.
Configuration:
baud: 115200
Stop Bit 1
Data Bits 8
Transmit Fifo size 16
Receive Fifo size 2
Trigger limits 1
UART Receive Pin: P1.4
UART Transmite Pin P1.5
Standard Receive Interrupt
I also configured the NVIC002 App:
// Serial Interrupt Handler
void SerialReceive_Handler(void)
{
RxBuf[RxNumBytes++] = UART001_ReadData(&UART001_Handler);
}
Issue:
when I transmit the character "A" to the Relax Kit, the interruption is generated and RxBuf = "A", as expected.
Then I transmit tha character "B" also as expected, the interrupt is generated and RxBuf = "AB".
But, when I transmite the character "C" there's no interrupt.
After that I transmite the character "D" and the interrupt is generated again, but the RxBuf = "ABC".
If I transmit the character "A" again, the interrupt is generated and the RxBuf = "ABCD".
Others characters like E, F, I, J, L, O, Q, etc. also don't generate ISR but are read by the interanal Data Buffer of the USIC.
What should be the problem? Show Less
DAVE™
hello,The Trigger Limit from Transmit and Receive FIFo is inverted.That means, the Trigger Limit for Transmit is set in RBCTR ...is this a bug?nice gr...
Show More
hello,
The Trigger Limit from Transmit and Receive FIFo is inverted.
That means, the Trigger Limit for Transmit is set in RBCTR ...
is this a bug?
nice greetings Show Less
The Trigger Limit from Transmit and Receive FIFo is inverted.
That means, the Trigger Limit for Transmit is set in RBCTR ...
is this a bug?
nice greetings Show Less
DAVE™
Do any of the example projects make use of cached PMU0 flash or has anyone set up their system to use the cached flash, yet?
DAVE™
Hi,Is it possible to make the debugger thread aware when using RTS001?Currently everything shows up under "Thread [1:1:ARM]" and if I pause the debugg...
Show More
Hi,
Is it possible to make the debugger thread aware when using RTS001?
Currently everything shows up under "Thread [1:1:ARM]" and if I pause the debugger I am usually in "os_idle_demon()".
It would be nice to be able to determine where each thread is currently at.
Best regards,
Andy Show Less
Is it possible to make the debugger thread aware when using RTS001?
Currently everything shows up under "Thread [1:1:ARM]" and if I pause the debugger I am usually in "os_idle_demon()".
It would be nice to be able to determine where each thread is currently at.
Best regards,
Andy Show Less
DAVE™
I`m using the DAVE 3.1.4.The procedure to download the web server project for relax board using DAVE 3->Help->Install Dave Apps/Example library is not...
Show More
I`m using the DAVE 3.1.4.
The procedure to download the web server project for relax board using DAVE 3->Help->Install Dave Apps/Example library is not working for me. Show Less
The procedure to download the web server project for relax board using DAVE 3->Help->Install Dave Apps/Example library is not working for me. Show Less