On 25/06/2019 04:35, Jython wrote:
> printf("data test return %04x\n", memTestDataBus(0x6802));
>
>
> printf("addr bus test return %04x\n",
> memTestAddressBus(0x6800, 1024*1024));
>
>
> memtest all passed at application mode,
>
> when SRAM init function moves
>
> printf("data test return %04x\n", memTestDataBus(0x6802));
>
>
> printf("addr bus test return %04x\n", memTestAddressBus(0x6800,
> 1024*1024));
memtest all passed at application mode,
when SRAM init function moves to bsp_start_hook_1 then not work
Can i do init_main_osc in bsp_s
On 18/06/2019 07:17, Jython wrote:
> void SRAM_fsmc_setup(void)
> {
> unsigned char FSMC_Bank;
> int i = 0;
>
> // enable port clk
> RCC_AHB1ENR |= 0x0f << 3;
> RCC_AHB3ENR |= 1; // enable fsmc clock
>
> // af A0-A18
> stm32f4_gpio_conf
>
> void SRAM_fsmc_setup(void)
> {
> unsigned char FSMC_Bank;
> int i = 0;
>
> // enable port clk
> RCC_AHB1ENR |= 0x0f << 3;
> RCC_AHB3ENR |= 1; // enable fsmc clock
>
> // af A0-A18
> stm32f4_gpio_config temp = STM32F4_PIN_FSMC(5, 0,
> STM32F4_GPIO_AF_FSMC);
>
>
> for
On 18/06/2019 03:25, Jython wrote:
> my linkscmd is https://gist.github.com/goog/aad6dae4c418255dd6fb2b23bf2e6f08
>
> void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
> {
> SRAM_fsmc_setup();
> bsp_start_copy_sections();
> bsp_start_clear_bss();
>
> /* At this po
my linkscmd is https://gist.github.com/goog/aad6dae4c418255dd6fb2b23bf2e6f08
void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
> {
> SRAM_fsmc_setup();
> bsp_start_copy_sections();
> bsp_start_clear_bss();
>
> /* At this point we can use objects outside the .start section */
> }
>
but no
If you put any sections into the external RAM that need initialization,
you have to init the RAM before the BSP copies it's sections. The STM32
BSP copies it's sections in bsp_start_hook_1(). So either put it in
bsp_start_hook_0 or in bsp_start_hook_1 before the copy_section calls.
Attention: You c
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
> > 16KB at 2001 C000
> >
On 17/06/2019 03:05, Jython wrote:
> STM32:
> 112KB at 2000
> 16KB at 2001 C000
>
> external sram : 1MB at 0x6800
>
> does MEMORY layout support RAM2?
Hello Jython,
you can distribute the regions to the two RAMs. For example this BSP
does that:
https://git.rtems.org/rtems/tre
STM32:
112KB at 2000
16KB at 2001 C000
external sram : 1MB at 0x6800
does MEMORY layout support RAM2?
On Fri, Jun 14, 2019 at 10:13 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:
> If you have already added the chip and it is initialized during startup,
If you have already added the chip and it is initialized during 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 1
we have added 1M ram by FSMC, and want to manage it by system malloc
controler
On Fri, Jun 14, 2019 at 10:26 AM Mr. Andrei Chichak
wrote:
> A 407 doesn’t normally have external RAM.
>
> ARMs have flash at 0 and the 407 has RAM at 0x2000 as you discussed
> earlier.
>
> If you want to work w
A 407 doesn’t normally have external RAM.
ARMs have flash at 0 and the 407 has RAM at 0x2000 as you discussed
earlier.
If you want to work with external flash or RAM, you have to set up the FSMC or
FMC to support it, but that isn’t a part of the dev board that Sebastian used
for the BSP p
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
> > places the
> >
> > .text section n
On 05/06/2019 02:55, Jython wrote:
> Hello!
>
> 2. 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
15 matches
Mail list logo