Application raised Data Abort in first instruction

2022-09-17 Thread Y. HB
Hello all I'm running rtems on tms570lc4357 , flash loaded with HalCoGen generated loader, rtems application is loaded by gdb into SDRAM. the RTEMS bsp / boot_card is started and broke in first line of hello.c:Init but when booted in simple hello world task, it raised exception to 0x18, seems dat

Re: Is most drivers interfaces should be driver or application specific?

2022-09-17 Thread Y. HB
Ok, thanks. But I saw it seems I/O manager is merely a wrapper to open / close / read / write function pointer? On Fri, Sep 16, 2022 at 8:13 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 14.09.22 11:55, Y. HB wrote: > > Hello all. > > > > I&#

Re: How can I use --with-rtems-bspopts properly?

2022-09-16 Thread Y. HB
Well Just only use `TMS570_USE_HWINIT_STARTUP=1 ARM_TMS570LC4357=1 BSP_MINIMUM_TASK_STACK_SIZE=2048` after configure will make the configuration. I thought --with-rtems-bspopts should do it. On Fri, Sep 16, 2022 at 5:45 PM Y. HB wrote: > Hello, > > I am working on tms570 bsp >

How can I use --with-rtems-bspopts properly?

2022-09-16 Thread Y. HB
Hello, I am working on tms570 bsp I want to change some bspopts , but I cannot get the default value overridden via --with-rtems-bspopts, what correct way should I do? I used following command to configure RTEMS bsp ../../rtems-master/configure OTHER-OPTIONS --with-rtems-bspopts="TMS570_USE_HW

Is most drivers interfaces should be driver or application specific?

2022-09-14 Thread Y. HB
Hello all. I'm writing drivers ( like ADC ) for tms570 on RTEMS. To my understanding for now, there are two ways to implement non common interface drivers. 1. write a specific driver.h/.c pair to be called like PWM driver inside bsps/arm/beagle/ 2. use I/O Manager interfaces. The latter IO Manage

Re: What is the preferable way to add new BSP (for stm32 family)

2022-09-12 Thread Y. HB
vice). The original > stm32f4 bsp was written and tested with stm32f407 but I use stm32f429. > > > On Mon, Sep 12, 2022, 12:45 PM Y. HB wrote: > >> Thanks for your great information ! >> >> On Sun, Sep 11, 2022 at 9:57 PM Karel Gardas >> wrote: >>

Re: What is the preferable way to add new BSP (for stm32 family)

2022-09-11 Thread Y. HB
ae/6e/1c/44/14/DM00122016.pdf/files/DM00122016.pdf/jcr:content/translations/en.DM00122016.pdf > > > On 9/10/22 18:20, Y. HB wrote: > > I have seen in rtems 6.0, there are two stm32 families: stm32f4 and > stm32h7 > > > > The former one uses custom code to set up BSP,

What is the preferable way to add new BSP (for stm32 family)

2022-09-10 Thread Y. HB
I have seen in rtems 6.0, there are two stm32 families: stm32f4 and stm32h7 The former one uses custom code to set up BSP, while the latter one uses the ST provided HAL lib to set up BSP. Now I need to add a BSP for stm32f3, which is very different (reg layout) from stm32f4. To add stm32f3 BSP a

Re: What is meaning / usage of STM32F4_GPIO_CONFIG_TERMINAL

2022-09-09 Thread Y. HB
Hello. Sorry for the last message, it was sent by accident. I have known that the STM32F4_GPIO_CONFIG_TERMINAL is used inside start-config-io.c, and used as a termination of set_config_array. On Fri, Sep 9, 2022 at 3:40 PM Y. HB wrote: > STM32F4_GPIO_CONFIG_TERMINAL is defined in rtems(

What is meaning / usage of STM32F4_GPIO_CONFIG_TERMINAL

2022-09-09 Thread Y. HB
STM32F4_GPIO_CONFIG_TERMINAL is defined in rtems(5.1) bsps/arm/stm32f4/include/bsp/io.h What is it ? And How the value is filled from the Datasheet or Reference Manual of STM32? ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listin

Re: Is rtems interrupt latency good enough for BLDC ESC? (on arm cortex-M or cortex-R)

2022-09-07 Thread Y. HB
ore communicating with application core > running RTEMS? > > On Wed, Sep 7, 2022, 6:28 AM Y. HB wrote: > >> Right, I did think RTEMS may be an overkill for it. But it is only open >> source RTOS qualified in the aerospace area. >> >> On Wed, Sep 7, 2022 at 3:22 AM Pe

Is rtems interrupt latency good enough for BLDC ESC? (on arm cortex-M or cortex-R)

2022-09-05 Thread Y. HB
Just Curious, As for the title. I found an old article: https://docs.rtems.org/releases/rtemsdocs-4.6.0pre5/share/rtems/html/supplements/m68k/m68k00062.html, it said rtems's interrupt latency on MC68020 is The maximum period with interrupts disabled + 9 microseconds on 20Mhz. I see zephyr provid

Failed to start RTEMS on tms570lc4357 loaded from SDRAM

2022-08-22 Thread Y. HB
Hello, I'm still working on bringing RTEMS on tms570lc43x. Although I can start RTEMS from tms570 flash, but to minimize flash erase cycles, I want to load RTEMS from SDRAM like said in RTEMS wiki. I started a flashed program generated by HalCoGen, and loaded the program to SDRAM by gdb. However

Re: How can I run RTEMS kernel from SDRAM on TMDX570LC43 HDK?

2022-08-17 Thread Y. HB
Is it as easy as "set $pc=0xYY; continue" in GDB console ? On Wed, Aug 17, 2022 at 4:39 PM Y. HB wrote: > Hello, > > About two weeks ago, I worked in running RTEMS (5.1) on TMS570LC43 > Launchxl, and it booted and print via uart. > > But when I tried to build CF

How can I run RTEMS kernel from SDRAM on TMDX570LC43 HDK?

2022-08-17 Thread Y. HB
Hello, About two weeks ago, I worked in running RTEMS (5.1) on TMS570LC43 Launchxl, and it booted and print via uart. But when I tried to build CFS on RTEMS, it failed due to not enough memory, so I bought a TMDX570LC43 HDK with 8MB sdram on it. As indicated in https://devel.rtems.org/wiki/TBR/B

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
Hi Sebastian, Which way is a preferable way to add -lm for a BSP ? change bsp_specs ? On Mon, Jul 25, 2022 at 10:52 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 25/07/2022 16:47, Y. HB wrote: > > > > ['/home/hongbo/Developer/Embedded/

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
Hi Sebastian, Thanks, it indeed passed the build. On Mon, Jul 25, 2022 at 10:52 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 25/07/2022 16:47, Y. HB wrote: > > > > ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', > >

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
Thanks! I'll check it out ! On Mon, Jul 25, 2022 at 10:52 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 25/07/2022 16:47, Y. HB wrote: > > > > ['/home/hongbo/Developer/Embedded/rtems/5/bin/arm-rtems5-gcc', > > '-qrtems&#

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
(HL_sci.o): in function `sciSetBaudrate': /home/hongbo/Developer/Embedded/rtems/build/tms570lc4357/arm-rtems5/c/tms570lc4357_launchxl/lib/libbsp/arm/tms570/../../../../../../../../../rtems-master/c/src/lib/libbsp/arm/tms570/../../../../../../bsps/arm/tms570/start/tms570lc4357/source/HL_sci.c:284:

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
every one you will find a faulty libm.* that doesn't have floor() / > ceiling() in it. That is / are the ones ld linker is finding first. > > You NEED to, not optional, use the linker flag > > > -L/path/to/correct/libm.a > > in exactly the right configuration folder to allow ld to find the RIGHT > libm.

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
oaded from this pkgconfig ( during waf configure, it haved loaded it ) On Mon, Jul 25, 2022 at 10:12 PM Y. HB wrote: > Hi Dave, > > I believe the build system will find the libm.a in rtems toolchain, which > I used arm-rtems-5, > There are a number of libm.a inside the toolchain

Re: How can I add LDFLAGS for bsp build?

2022-07-25 Thread Y. HB
so on. Then try compiling again. > > > Dave > >> >> >> Cheers! >> >> Daemondave on github >> >> Check out my new book Untrapped Value on LeanPub: >> https://leanpub.com/untrappedvalue >> > > -- > *From:

Re: How can I add LDFLAGS for bsp build?

2022-07-24 Thread Y. HB
p_specs', '-march=armv7-r', '-mthumb', '-mbig-endian', '-mfpu=vfpv3-d16', '-mfloat-abi=hard', '-ffunction-sections', '-fdata-sections', '-MMD', 'test.c.1.o', '-o/home/hongbo/Developer/Embedded/rtems/ap

Re: How can I add LDFLAGS for bsp build?

2022-07-21 Thread Y. HB
I added -lm in LDFLAGS in my custom bsps/arm/tms570/config/xxx.cfg the flag is added to compiling arguments, but it still reported undefined reference to 'floor', but I see there is floor symbols in the arm-rtems5/lib/libm.a Why is it? Thanks On Fri, Jul 22, 2022 at 1:43 PM Y.

How can I add LDFLAGS for bsp build?

2022-07-21 Thread Y. HB
Hello I'm working on a custom tms570 bsp upon RTEMS 5.1, but it depends on math lib (-lm), how can I add this flag to the bsp build? Shall I add LDFLAGS="-lm" during configure or shall I change some variables in c/src/lib/libbsp/arm//Makefile.am? Thanks __