Commit Graph

10252 Commits (2ac978fd530af1db0adda130a05e3d7bd9f0914a)

Author SHA1 Message Date
Jimmy Brisson 2ac978fd53 Add license to configuration header 2017-04-21 15:42:23 +01:00
Jimmy Brisson 38505300a5 Move config to own dir
I also broke the config header template into it's own file. Further, I
fixed a bug in the config header generation where if no macros, builds
would crash.
2017-04-21 15:42:23 +01:00
Mahadevan Mahesh 7f1ffbdb06 MCUXpresso: Update ARM linker files to reduce RAM reserved for stack & heap
Heap and stack size is determined via the RTOS.

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-04-21 15:42:22 +01:00
Brian Daniels 8521f71386 Removing old filesystem test 2017-04-21 15:42:22 +01:00
jeromecoutant 8e4c9c3238 STM32 increase IAR heap size for big RAM targets 2017-04-21 15:42:22 +01:00
Andrzej Puzdrowski 6b4acbbf7e us_ticker: - extarct for check rtc overflow - make common_rtc_32bit_ticks_get safe against preemption. 2017-04-21 15:42:21 +01:00
Andrzej Puzdrowski 3a2718b5c5 If rtc overflow occurr while setting of timestam then the ccompara-event ocurre (erroneusly) in 512s. - move ovf handler at the begining of rtc handler for mitigate the case (mitigate issue for exexution from rtc handler) - add repeating of operation of set a timestamp in cas that rtc overflow occured during the operation. 2017-04-21 15:42:21 +01:00
0xc0170 1cbcf7d77e tools: add new examples
Bootloader, bootloader blinky and fat filesystem examples added.
2017-04-21 15:42:21 +01:00
Seppe Stas eeba630ca8 EFM32: Fixed `pwmout_all_inactive` being inversed
If one of the CC channel pins is enabled, `pwmout_all_inactive` it
means a channel is active so it should return `true`.

This commit also contains some cleanup in `pwm_init`.
2017-04-21 15:42:21 +01:00
Jimmy Brisson 1d68057a7a Fix Traceback in CMSIS export.
The traceback was caused when a file without a parent directory (which
is implicitly ".") is added to the resources object. The code assumed
that all files within the resources object would have a parent
directory.

This commit changes the check to account for files that are in the root
directory of a project and have no preceding `./`
2017-04-21 15:42:20 +01:00
Jimmy Brisson 18134bf8b3 Fix include paths for Windows builds 2017-04-21 15:42:20 +01:00
Jimmy Brisson d732f31a12 Generate GNU ARM Eclipse's .mbedignore with Jinja2 2017-04-21 15:42:20 +01:00
Tony Wu d922b5d567 Fix mbed_board.c compiler warning
Fix the following compiler warning.

Compile [ 63.7%]: mbed_board.c
[Warning] mbed_board.c@99,36: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Tony Wu <tonyw@realtek.com>
2017-04-21 15:42:20 +01:00
Rob Meades 708d606600 U-BLOX_C030: Default XTAL is now 12MHz onboard. Option to use Debug 8MHz XTAL by using Macro USE_DEBUG_8MHz_XTAL 2017-04-21 15:42:19 +01:00
Steven Cooreman 10e67bb837 Update pinmap of EFM32PG12 as well 2017-04-21 15:42:19 +01:00
Steven Cooreman 946321032c Support SPI CPP objects with different pinouts sharing the same peripheral 2017-04-21 15:42:19 +01:00
Steven Cooreman 15c28056c2 Update TB Sense 2
* Update i2c driver to tackle multiple I2C object instances on different pins
* Update pinmap to enable the extra peripherals of EFx32xG12 over EFx32xG1
2017-04-21 15:42:19 +01:00
jeromecoutant 4c166fc8b7 STM32F4 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array.
2017-04-21 15:42:18 +01:00
Sam Grove f98e0388cb Revert "STM32F4 Internal ADC channels rework" 2017-04-21 15:42:18 +01:00
Neil Thiessen 73a46c0e09 Updated CAN to new Callback API
Updated CAN to use new Callback assignment API in order to fix compiler warnings.
2017-04-21 15:42:18 +01:00
Neil Thiessen 8394968a12 Fixed compiler warning in mbed_retarget.cpp
Fixed compiler warning about openmode_to_posix() being declared but never referenced.
2017-04-21 15:42:17 +01:00
Jimmy Brisson b7b55db77a Allow configuration of artifact name in app config 2017-04-21 15:42:17 +01:00
Jimmy Brisson e6c44d633c Update gnuarmeclipse to preprocess linker scripts 2017-04-21 15:42:17 +01:00
jeromecoutant a8650d8e82 STM32F4 : remove SERIAL_TX and SERIAL_RX from available pins
Pins are used for debug printf
2017-04-21 15:42:17 +01:00
jeromecoutant 04e99642b1 STM32F4 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array.
2017-04-21 15:42:16 +01:00
Jimmy Brisson 5b2a5103fb Fix a scoping typo in toolchains 2017-04-21 15:42:16 +01:00
Willie Walker c25eea9441 Add SCL and SDA defs for I2C[0-2]; redefine I2C_[SCL,SDA] to I2C2 2017-04-21 15:42:16 +01:00
ccli8 ac186bc3b9 Fix flash algorithm
1. Remove setting of not released register ICPCON
2. Enable FMC_APUEN to update APROM
2017-04-21 15:42:16 +01:00
cyliangtw d29223e80d remove stray tabs to avoid formatting slips 2017-04-21 15:42:15 +01:00
cyliangtw e210e8a424 remove redundant comment of flash_api 2017-04-21 15:42:15 +01:00
cyliangtw b54a55fb66 Fixed scatterAssert of ROM limit 2017-04-21 15:42:15 +01:00
cyliangtw a6151cf4c4 Enable HW AES 2017-04-21 15:42:15 +01:00
cyliangtw 31f1d03959 Support bootloader 2017-04-21 15:42:14 +01:00
cyliangtw 3478664d1e Support bootloader 2017-04-21 15:42:14 +01:00
ccli8 c878a91627 Support flash 2017-04-21 15:42:14 +01:00
Martin Kojtal 42be5c01a7 Merge pull request #4134 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.3
2017-04-10 12:14:52 +01:00
Anna Bridge 8d89dc0877 Update MBED_LIBRARY_VERSION to v140 2017-04-07 14:03:12 +01:00
Jimmy Brisson 890472c3ce Raise error when mbed_app.json is bad 2017-04-07 14:03:05 +01:00
Adam Green 7a08fb0d2b Only link in LPC17xx ethernet ISR as needed
Originally the ethernet ISR would be linked in to all mbed-os based
firmware because it was named ENET_IRQHandler() so that it would be
automatically placed in the FLASH image's interrupt vector table. This
meant that programs which made no use of the lwIP stack still pulled in
this ISR.

This commit changes the name of the routine so that the ISR isn't
automatically placed in the interrupt vector table at link time but is
instead dynamically placed in the interrupt vector table at runtime
when the lwIP stack is initialized. Now the ethernet ISR is only linked
in when it is actually needed.

Example arm-none-eabi-size output for a simple LED blinking program
showing the before and after size results:
   text	   data	    bss	    dec	    hex	filename
  13208	    148	   7784	  21140	   5294	LPC1768/HelloWorld.elf

   text	   data	    bss	    dec	    hex	filename
  12700	    148	   7468	  20316	   4f5c	LPC1768/HelloWorld.elf
2017-04-07 14:02:59 +01:00
Rob Meades 703817c1e0 Introducing UBLOX_C030 platform. 2017-04-07 14:02:53 +01:00
mjrgh 047059837f Update us_ticker.c 2017-04-07 14:02:46 +01:00
mjrgh 9229772c92 Force events into the future 2017-04-07 14:02:40 +01:00
mjrgh 9954072a84 Fix crash with events in the past
ticker_insert_event() can crash on KLXX (and probably other platforms) if an event is inserted with a timestamp before the current real time.

The problem is easy to trigger:  you just need to set up a Ticker object, and then disable interrupts for slightly longer than the Ticker object's interval.  It's generally bad practice to disable interrupts for too long, but there are some cases where it's unavoidable, and anyway it would be better for the core library function not to crash.  The case where I had an unavoidably long interrupts-off interval was writing flash with the FTFA.  The FTFA hardware prohibits flash reads while an FTFA command is in progress, so interrupts must be disabled for the whole duration of each command to ensure that there are no instruction fetches from flash-resident ISRs in the course of the execution.  An FTFA "erase sector" command takes a fairly long time (milliseconds), and I have a fairly high frequency Ticker (1ms).

The problem and the fix are pretty straightforward.  ticker_insert_event() searches the linked list to figure out where to insert the new event, looking for a spot earlier than any event currently queued.  If the event is in the past, it'll usually end up at the head of the list.  When the routine sees that the new event belongs at the head of the list, it calls data->interface->set_interrupt() to schedule the interrupt for the event, since it's the new soonest event.  The KLXX version of us_ticker_set_interrupt() then looks to see if the event is in the past, which we've stipulated that it is, so rather than actually setting the interrupt, it simply calls the handler directly.  The first thing the Ticker interrupt handler does is re-schedule itself, so we re-enter ticker_insert_event() at this point.  This is where the problem comes in:  we didn't finish updating the linked list before we called set_interrupt() and thus before we recursed back into ticker_insert_event().  We set the head of the list to the new event but we didn't set the new event's 'next' pointer.

The fix is simply to finish updating the list before we call set_interrupt(), which we can do by moving the obj->next initialization ahead of the head pointer update.
2017-04-07 14:02:33 +01:00
Głąbek, Andrzej 2658bdb113 IAR exporter: extended debugger settings template with modifiable options needed for Nordic targets. 2017-04-07 14:02:27 +01:00
jeromecoutant 85db457b9e NUCLEO_L476RG : minor serial pin update
SERIAL_TX and SERIAL_RX pins used for debug printf cannot be set as available
2017-04-07 14:02:21 +01:00
Adam Green 5b82378c06 Modify semihost_disabledebug() to support more interface FW revs
The current implementation of semihost_disabledebug() hangs when used
with mbed interface firwmare revision 21164, the first version which
added support for this semihost call. I encountered this hang when
running a Release build on my mbed-LPC1768 board as the RTOS attempted
to disable the debugger before the idle thread put the CPU to sleep.

The 21164 interface firmware expects that R1 points to a valid argument
block but the current implementation passes in NULL. The fix was to
pass in a dummy block which is ignored by the newer 141212 revision of
the firmware and allows the 21164 version to proceeed without halting
the CPU until a manual reset.

Before this fix semihost_disabledebug() did work with the latest
mbed interface firmware revision 141212 but I rarely use this revision
of the interface firmware due to the instability issues I have
encountered in the past with its CDC and LocalFileSystem functionality.

With this proposed fix, the code now works with both the 21164 and
141212 revisions of the mbed interface firmware on the mbed-LPC1768.
2017-04-07 14:02:15 +01:00
Willie Walker a1391f563d Fix mbed-cli issue #468. Add LPCTargetCode.lpc_patch to POST_BINARY_WHITELIST. 2017-04-07 14:02:08 +01:00
Seppe Stas 23499843b1 Removed superfluous space
The extra space between "--no_wrap_diagnostics" and "-e" is inconsistent with the development and release targets.

It bugs people (like me) that have little OCD tics 😉.
2017-04-07 14:02:02 +01:00
Jimmy Brisson 1ce69d1b26 Elide adding regions to profile when empty 2017-04-07 14:01:56 +01:00
Christopher Haster 523f543726 lpc1768: Removed invalid use of IP_SOF_BROADCAST_RECV option
From opt.h:
IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast
filter on recv operations.

The IP_SOF_BROADCAST_RECV option does not enable or disable recieving
broadcast packets, it only enables a software filter.
2017-04-07 14:01:49 +01:00