Search found 11 matches
- Tue May 16, 2023 4:42 pm
- Forum: General discussion
- Topic: I2S example
- Replies: 2
- Views: 1201
Re: I2S example
Finally i managed to make it work somehow and it does the job nicely. Currently i have no time to post the full code here but if anyone is interested just let me know.
- Mon May 15, 2023 3:23 pm
- Forum: General discussion
- Topic: I2S example
- Replies: 2
- Views: 1201
I2S example
Is there an example on how to implement I2S with HAL for the official core? I'm using STM32F4 Discovery board and would like to setup full-duplex communication with an external CODEC (Analog Devices adau1701). The stm32 should be the master and generate the master clock as well serial clock and word...
- Thu Apr 06, 2023 7:53 am
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
There are 2 SRAM: SRAM1 and SRAM2. They are contiguous so normally, you should have 112k(SRAM1) + 16k(SRAM2). Setting the estack at 0x2001 C000 is to use only SRAM1. Maybe a config issue on your board. Ok thank you, I've noticed that, so I should set it to 0x2001FFFF (or 0x20020000 ?) to include SR...
- Thu Apr 06, 2023 7:45 am
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
An easy way to do that is to modify only the boards.txt file by adding the following 2 lines: # DISCO_F407VG board Disco.menu.pnum.DISCO_F407VG=STM32F407G-DISC1 Disco.menu.pnum.DISCO_F407VG.node=DIS_F407VG Disco.menu.pnum.DISCO_F407VG.upload.maximum_size=1048576 Disco.menu.pnum.DISCO_F407VG.upload....
- Wed Apr 05, 2023 4:47 pm
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
Don't know, don't have the right knowledge to link (no pun intended) the missing dots :D However if I replace this line : _estack = ORIGIN(RAM) + LENGTH(RAM) ; with this: _estack = 0x2001c000; the application (simple blink) starts from address I set. All the rest is almost the same. The memory decla...
- Wed Apr 05, 2023 1:54 pm
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
ok, somehow after trying sooo many times i made it work by coyping the stm32_flash.ld file (attached) to ldscript.ld
Is there a better way of doing it without replacing core files? I'm sure there is but i can't figure it out.
Is there a better way of doing it without replacing core files? I'm sure there is but i can't figure it out.
- Wed Apr 05, 2023 1:22 pm
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
ok thank you, now it doesn't spit errors at compile anymore. However i still can't make the application start from different address. I have the build_opt.h file with vector offset declared and the linkerscript modified as this: MEMORY { CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K RAM (xrw) : O...
- Wed Apr 05, 2023 10:03 am
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
I've been trying to do the same thing with CubeIDE as explained in ST application note and it works fine. From CubeIDE project i only need to change the following files: system_stm32f4xx.c #define VECT_TAB_OFFSET 0x8000 /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ ...
- Tue Apr 04, 2023 8:13 am
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
Ok, i googled a bit and i guess the linker script is stm32_flash.ld where i can find the following: MEMORY { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 112K MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K } This is from the upgrade application firmwa...
- Tue Apr 04, 2023 8:03 am
- Forum: General discussion
- Topic: application start address
- Replies: 15
- Views: 2447
Re: application start address
Thank you for fast reply.
Unfortunately i don't know what linkerscript is and where i can find it. Can you help?
Unfortunately i don't know what linkerscript is and where i can find it. Can you help?