HI!
my code is here: https://github.com/goog/rttest/blob/master/init.c
I have enabled uart2 and uart3 in configure.ac under stm32f4 , but
https://github.com/goog/rttest/blob/255eede89d71dcf2654b2cf370e3a0bfe83cb9dd/init.c#L341
does not return, log also does not be printed so i dont know how to
HI, ALL!
the init file is here
https://gist.github.com/goog/4040cb50f2681137cf3c5721eff59f4c
but the fstat return so big in size, tthe read return a -1, you could see
it at the second gist content
waitting for your help!
___
users mailing list
users@rt
HI, ALL
my file tree log is here
https://gist.github.com/goog/36cab05f82aba548a432d616fc3c2cbe
build log
//
../../../../../../../rtems-4.11.3/c/src/../../testsuites/samples/hello/init.c:301:5:
warning: nested extern declaration of 'rtems_stack_checker_report_usage'
[-Wnested-externs]
../../../.
HI, ALL!
I want to implement a key function, have coded some like
https://gist.github.com/goog/5e5b484430328d3c1153b474ce147079
using the 'stm32f4_gpio_set_config' and register settings , but does not
work either, so hope some guy could give me some guide!
thanks!
HI, ALL, specially Huber!
when i press interrupt key, i got error about scheduler, how to solve the
problem?
[09:42:04.496]ÊÕ¡û¡ôthe console count 3
create timer ok
interrupt ok
[09:42:05.001]ÊÕ¡û¡ô1s ticks 100
[09:42:09.996]ÊÕ¡û¡ôstack check 0
Stack usage by thread
ID NAMELOW
Hello, i did not get notify from the inbox but
https://lists.rtems.org/pipermail/users/2019-April/033140.html
_ISR_Get_level() returns 0 in Init task, then ? i need to set a level value?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mail
No, later i know returrned 0 is OK, so how to debug the scheduler problem?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
HI, ALL!
the stm32 usart2 code is here
https://gist.github.com/goog/3da34a64eff11902579df333cfd1d863
why it always enter the idle interrupt and printk log outputs
i almost could not find the error point, someone of you would help me?
___
users mailing l
the idle flag is not cleared , so does it relate to code optimizations?
how to make it O0
On Tue, Apr 16, 2019 at 3:08 PM Jython wrote:
> HI, ALL!
> the stm32 usart2 code is here
> https://gist.github.com/goog/3da34a64eff11902579df333cfd1d863
> why it always enter the idle i
00D0idle fla
00D0idle fla 00D0idle fla 00D0idle fla 00D0idle fla
00D0idle fla 00D0idle fla 00D0idle fla 00D0idle fla
00D0idle fla 00D0idle fla 00D0idle fla 00D0idle fla
00D0idle fla 00D0idle fla
On Tue, Apr 16, 2019 at 3:56 PM Jython wrote
HI, ALL AND JOEL!
i am debugging the stm32 uart, found that the idle interrupt will effect
the RX
have cleared the idle flag by pragma
but now i can not receive uart data, i don't know what's the error
uint32_t *USART2_SR = (uint32_t *)0x40004400;
uint32_t *USART2_DR = (uint32_t *)0x40004404;
#pr
what's the correct and complete command to build the system after changes
under the bsp directory like
\rtems-4.11.3\rtems-4.11.3\c\src\lib\libbsp\arm\stm32f4
what i do is : bootstrap -c , bootstrap -p , ./bootstrap then configure and
make
but sometime i think not build completely
HI, ALL! is there a stm32f4 RTC driver?
how to use the RTC?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
no build error, Just want to make sure command is OK i am new to RTEMS
On Thu, Apr 18, 2019 at 1:28 PM Chris Johns wrote:
> On 18/4/19 1:36 pm, Jython wrote:
> > what's the correct and complete command to build the system after
> changes under
> > the bsp directory
HI, ALL!
according to https://www.mail-archive.com/devel@rtems.org/msg03132.html
i add a rtc.c file for stm32f4
have added below two lines at makefile.am
//RTC
libbsp_a_SOURCES += rtc.c
libbsp_a_SOURCES += ../../shared/tod.c
x - libi2cio_a-i2c-sc620.o
x - libi2cio_a-spi-memdrv.o
x - libi2cio_
HI, ALL!
wfi http://www.keil.com/support/man/docs/armcc/armcc_chr1359125004400.htm
how can i call the arm __wfi?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
yes, I need to do low power for stm32f4
will this line work __asm__ volatile ("wfi");?
On Tue, Apr 23, 2019 at 10:28 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:
> Am 22.04.19 um 09:47 schrieb Jython:
> > HI, ALL!
> > wfi
> http://w
HI, ALL!
why the code stuck in wakeup handler while the RTC gets time work fine
i have checked some days, but no register error found, i suspect that the
handler function is the issue
// code
rtems_isr rtc_wakeup_handler(rtems_vector_number vector)
{
uint32_t STM32F4_RTC_ISR = (*(volatile ui
r_CPU_Control *cpu
54096-)
54097-{
54098: ( *scheduler->Operations.start_idle )( scheduler, the_thread, cpu );
54099-c7de:4809 ldrr0, [pc, #36]; (c804
<_Thread_Start+0x50>)
54100- _Thread_Ready( the_thread );
54101-} else {
54102- const Schedule
e ("wfi");
>11d78: bf30wfi
> 11d7a: e7fdb.n 11d78 <_CPU_Thread_Idle_body+0x8>
>
> Am 24.04.19 um 10:25 schrieb Jython:
> > arm-rtems4.11-objdump -dS hello.exe | grep idle --color=auto -n -B 5 -A
> 12
> >
> > there is no
ivers to save
> power. Also note that the system will wake up every tick. So depending
> on your configuration the power consumption will vary.
>
> Am 24.04.19 um 10:44 schrieb Jython:
> > i searched it by add -i
> >
> > 56794:d040 <_CPU_Thread_Idle_body>:
> &
HI, ALL!
now i use this mode for interrupt in rtems
status = rtems_interrupt_handler_install(
STM32F4_IRQ_USART2,
"SP2",
RTEMS_INTERRUPT_UNIQUE,
(rtems_interrupt_handler) USART2_handler,
NULL
);
for usart i must to make function O0 to make it work well
Thank you a lot ! maybe i was thinking make code more clear and then forget
the right
On Sun, Apr 28, 2019 at 3:27 PM Christian Mauderer
wrote:
> Am 27.04.19 um 16:40 schrieb Christian Mauderer:
> > Am 24.04.19 um 10:00 schrieb Jython:
> >> HI, ALL!
> >> why the c
assertion "first != _Chain_Tail( &ready_queues[ index ] )" failed: file
"../../cpukit/../../../stm32f4/lib/include/rtems/score/schedulerpriorityimpl.h",
line 166, function: _Scheduler_priority_Ready_queue_first
___
users mailing list
users@rtems.org
http:
HI ALL
what i want is to delay 10ms meanwhile enable usart interrupt handler
rtems_task_wake_after i think it should work, what if usleep?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
HI, ALL!
i don't know which one BSP is friendly for USB RMNet driver?
if you know or have used it, please let me know!
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
HI, ALL!
i have written it within two months https://github.com/goog/rttest
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
HI, ALL!
I coded the rtc driver for stm32 (which have no backup battery),when
power off MCU then power on , got
assertion "first != _Chain_Tail( &ready_queues[ index ] )" failed: file
"../../cpukit/../../../stm32f4/lib/include/rtems/score/schedulerpriorityimpl.h",
line 166, function: _Schedu
when comment #define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
then no problem
On Fri, May 17, 2019 at 5:52 PM Jython wrote:
> HI, ALL!
> I coded the rtc driver for stm32 (which have no backup battery),when
> power off MCU then power on , got
> assertion "first != _Chain_Ta
hi, Huber! how to debug general stack corruption?
On Fri, May 17, 2019 at 5:54 PM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:
> Hello,
>
> the most likely reasons are misconfigured interrupt priorities or some
> general memory/stack corruption.
>
> --
> Sebastian Huber, embedde
thanks a lot!
when i add #define CONFIGURE_STACK_CHECKER_ENABLED
problem disappeared, but i still dont understand how it happend
On Fri, May 17, 2019 at 6:00 PM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:
> On 17/05/2019 11:58, Jython wrote:
> > hi, Huber! how t
ht modify the timing enough to obscure a race
> condition. Since the stack checker didn't report anything, you probably
> don't have a blown task stack. (But you could still have a function stack
> overflow.)
>
>
> On Fri, May 17, 2019, 4:21 AM Jython wrote:
>
>>
how to use a database like sqlite on RTEMS? stm32f4 has 192kb ram
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
MEMORY {
RAM_INT : ORIGIN = 0x2000, LENGTH = 192k
ROM_INT : ORIGIN = 0x, LENGTH = 1M
}
im using the f407 has 192k ram,
the original is *LENGTH = 128k*,
but if i changed it to 192k, the board cant boot, why?
___
users mailing list
users@rtems.
Hello!
>1. In the normal (non-debugging) case, the linker script still places
>the
>
> .text section near zero, but places the start of the .data and .bss
> sections at the start location of the MPC555's internal RAM. The system
> startup code then configures the external RAM just after t
HI, im using stm32f407
On Thu, Jun 13, 2019 at 8:23 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:
> On 05/06/2019 02:55, Jython wrote:
> > Hello!
> >
> > 2. In the normal (non-debugging) case, the linker script still
> > pla
> A
>
> > On 2019-June-13, at 06:23, Christian Mauderer <
> christian.maude...@embedded-brains.de> wrote:
> >
> > On 05/06/2019 02:55, Jython wrote:
> >> Hello!
> >>
> >> 2. In the normal (non-debugging) case, the linker script stil
g startup,
> you most likely have to add a section for it in your linker command
> file. Depending on where your internal RAM is located and where the
> external one is: If they are continuous that can be enough.
>
> Best regards
>
> Christian
>
> On 14/06/2019 04:42, Jytho
Thank you and the example! that is to say put extern sram init in
bsp_start( void ) function?
On Mon, Jun 17, 2019 at 1:04 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:
> On 17/06/2019 03:05, Jython wrote:
> > STM32:
> > 112KB at 2000
>
t you put there.
>
> If you only want malloc to allocate memory from there, there might is a
> later point where you can do that.
>
> On 17/06/2019 08:32, Jython wrote:
> > Thank you and the example! that is to say put extern sram init in
> > bsp_start( void ) function?
t;<8; // Data-phase duration DATAST
> //STM32_FSMC_BTR3 |= ~(uint32_t)(1<<4);
> //STM32_FSMC_BTR3 &= ~(uint32_t)1;
> STM32_FSMC_BTR3 &= 0xff00;
>
>
> STM32_FSMC_BWTR3 = 0x0FFF;
> STM32_FSMC_BCR3 |= 1; //memory bank enable
>
> #if
t*)0xE000E428) = 0x50; // 40
>
>
>
> // 23 40 Interrupt set-enable register x (NVIC_ISERx)
> // nvic enable interrupter number
> // 0xE000E100
> (*(volatile uint32_t*)0xE000E100) |= (1<<23);
> (*(volatile uint32_t *)0xE000E104) |= (1<< (40%32))
do have service routine, handler can printk log, SLEEPONEXIT is 0
On Thu, Jun 20, 2019 at 5:19 PM Christian Mauderer
wrote:
> On 20/06/2019 10:57, Jython wrote:
> > a GPIO EXTI line,
> > rtems idle phrase called __wfi, does it make stm32 enter standby mode?
> > so key ca
sleep function at the ending of loop, the loop did not begin intermediate
On Thursday, June 20, 2019, Christian Mauderer wrote:
> On 20/06/2019 13:25, Jython wrote:
> > do have service routine, handler can printk log, SLEEPONEXIT is 0
>
> So your handler is called? But it
t 10:47 PM Christian Mauderer
wrote:
> On 20/06/2019 16:43, Jython wrote:
> > sleep function at the ending of loop, the loop did not begin intermediate
>
> So just that I understand it correctly: Your have a loop in a task that
> sends your processor to sleep at the end of the
wrote:
> On 21/06/2019 02:58, Jython wrote:
> >
> > handler https://gist.github.com/goog/7bf5ec55139a3ed43e36be5b2eee318b
>
> There are some things that I would strongly discourage in that interrupt
> handler (printk as long as it is not only a temporary debug output,
>
think sleep function can't be wake up by EXTI
On Mon, Jun 24, 2019 at 3:44 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:
> On 24/06/2019 02:47, Jython wrote:
> > that's to say EXTI wakes up from sleep function because interrupt
> > handler l
On 24/06/2019 11:36, Jython wrote:
> > now i have changed to RTC wakeup, my key press can wake up the board,
> >
> > //rtems_stack_checker_report_usage();
> >
> > PWR_EnterSTOPMode(1, 1);
> >
> > init_main_osc();
> >
hen not work
Can i do init_main_osc in bsp_start_hook_1?
On Tue, Jun 18, 2019 at 1:25 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:
> On 18/06/2019 07:17, Jython wrote:
> > void SRAM_fsmc_setup(void)
> > {
> > unsigned char FSM
I have a function named *oled_write_temp* in a.c, if i dont declare it in
a.h , then i will get the wrong supply value in the function within main
call, why?
if i declare it in a.h, then all is right
void oled_write_temp(float set_temp, const float supply, float return_temp)
> {
>
> int bas
I have used rtems_interrupt_handler_install for usart like
https://imgur.com/dqbiXcg
but im not sure exactly how to use it, before usart_initialize(2) or inside
usart_initialize(2)?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/li
into a header file and whenever
> you want to call the function, put in an include statement, the compiler
> get’s the information about the parameters and return values, and overrides
> the *int func( int)* default nature.
>
> A
>
> On 2019-June-26, at 12:41 AM, Jython wrote:
&g
a 21ms counter in fact more than 10s, see log , my rtc 10s wake up
static void Delay_ms(x)
{
#if 0
int int_num = 0;
if(x % 10 == 0)
{
int_num = x / 10;
}
else
{
int_num = x / 10 + 1;
}
//printf("delay x %d int_num %d\n", x, int_num);
rtems_t
does stm32 rtems4.11 support Interrupt Profiling?
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
is there someone could help me
On Sun, Jun 30, 2019 at 2:36 PM Jython wrote:
> a 21ms counter in fact more than 10s, see log , my rtc 10s wake up
>
> static void Delay_ms(x)
> {
> #if 0
> int int_num = 0;
>
> if(x % 10 == 0)
> {
> int_nu
hi, the size of tick is CONFIGURE_MICROSECONDS_PER_TICK ?
On Sat, Jul 6, 2019 at 12:22 AM Gedare Bloom wrote:
> On Thu, Jul 4, 2019 at 2:45 AM Jython wrote:
> >
> > is there someone could help me
> >
> I can give you some guesses.
>
> > On Sun, Jun
ok, thanks! i have read it, then im not sure CPU_Counter_ticks is system
tick ?
On Mon, Jul 8, 2019 at 8:53 AM Chris Johns wrote:
> On 8/7/19 10:49 am, Jython wrote:
> > hi, the size of tick is |CONFIGURE_MICROSECONDS_PER_TICK| ?
>
> I suggest you take a moment and read th
000
delay 1000ns ticks_cnt 1000
is rtems_counter_nanoseconds_to_ticks wrong?
On Mon, Jul 8, 2019 at 9:33 AM Jython wrote:
> ok, thanks! i have read it, then im not sure CPU_Counter_ticks is system
> tick ?
>
> On Mon, Jul 8, 2019 at 8:53 AM Chris Johns wrote:
>
>> On 8/7
58 matches
Mail list logo