Skip to content

Fix iar tests #1537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libraries/tests/mbed/vtor_reloc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ DigitalOut out(PIN_OUT);
DigitalOut myled(LED1);

volatile int checks = 0;

#if defined (__ICCARM__)
#pragma data_alignment=256
uint32_t int_table[NUM_VECTORS];
#else
uint32_t int_table[NUM_VECTORS] __attribute__ ((aligned(256)));
#endif

#define FALLING_EDGE_COUNT 5

Expand Down
2 changes: 1 addition & 1 deletion libraries/tests/rtos/mbed/semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* the C standard library. For GCC, ARM_STD and IAR it is defined with a size of 2048 bytes
* and for ARM_MICRO 512. Because of reduce RAM size some targets need a reduced stacksize.
*/
#if (defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8)) && defined(TOOLCHAIN_GCC)
#if (defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8))
#define STACK_SIZE DEFAULT_STACK_SIZE/16
#elif (defined(TARGET_STM32F030R8) || defined(TARGET_STM32F070RB)) && defined(TOOLCHAIN_GCC)
#define STACK_SIZE DEFAULT_STACK_SIZE/8
Expand Down