Skip to content

Commit 4d52fdb

Browse files
authored
Merge pull request #347 from aws/release-candidate
Release candidate
2 parents a994cb6 + 16f3f4c commit 4d52fdb

File tree

2,739 files changed

+634498
-29777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,739 files changed

+634498
-29777
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report for Amazon FreeRTOS
4+
labels: bug
5+
6+
---
7+
8+
**Describe the bug**
9+
A clear and concise description of what the bug is.
10+
11+
**System information**
12+
- Which hardware board or part numbers?
13+
- IDE used
14+
- Operating System [Windows|Linux|MacOS]
15+
- Version of Amazon FreeRTOS (run ``git describe --tags`` to find it)
16+
- Project [Custom Application|MQTT|Shadow|Greengrass|OTA|Device Defender|TCP Echo|Sub pub Demo|Simple TCP Server]
17+
- If your project is a Custom Application, please add the relevant code snippet in the section `Code to reproduce the bug`.
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots or console output**
23+
If appropriate, please cut-and-paste the console output to explain the issue. If possible, include the call stack.
24+
25+
**To reproduce**
26+
Steps to reproduce the behavior:
27+
28+
1. ...
29+
2. ...
30+
31+
**Code to reproduce the bug**
32+
The code should be wrapped in the cpp tag in order to be displayed clearly. For example:
33+
34+
```cpp
35+
printf("Hello World")
36+
```
37+
38+
If the code is longer than 30 lines, [GIST](https://gist.github.com) is preferred.
39+
40+
**Additional context**
41+
Add any other context about the problem here.
42+
43+
Thank you!
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for Amazon FreeRTOS
4+
labels: feature request
5+
6+
---
7+
8+
**Is your feature request related to a problem? Please describe.**
9+
A clear and concise description of what the problem is. What are the use cases of the feature to be added?
10+
11+
**Describe the solution you would like.**
12+
A clear and concise description of what you want to happen.
13+
14+
**Additional context**
15+
Add any other information (including rationale, requirements, or references) about the feature request here.
16+
17+
Thank you!

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,71 @@
11
# Change Log for Amazon FreeRTOS
22

3+
## V1.4.7 02/18/2019
4+
### New Features
5+
### New Boards: Cypress CYW43907 and CYW54907
6+
- Cypress boards CYW54907 and CYW43907 are now qualified for Amazon FreeRTOS.
7+
8+
#### FreeRTOS Kernel V10.1.1
9+
- Kernel version for Amazon FreeRTOS is updated to 10.1.1.
10+
- Update all object handles (TaskHandle_t, QueueHandle_t, etc.) to be unique types instead of void pointers, improving type safety.
11+
- Add Xtensa port.
12+
- Updated to the latest trace recorder code.
13+
- Update lint checked MISRA compliance to use the latest MISRA standard.
14+
- Add configUSE_POSIX_ERRNO to enable per task POSIX style errno functionality.
15+
16+
### Updates
17+
18+
#### FreeRTOS+POSIX V1.0.3
19+
- Use stack based alloaction for POSIX types. Stack based allocation will reduce heap fragmentation.
20+
- Fixed potential overflow in Posix timespec utils.
21+
- Stopped Posix timer spawnning thread every time it is invoked.
22+
- Unlock and update owner atomically, while unlocking mutex.
23+
24+
#### MQTT Agent V1.1.4
25+
- Bug fix: MQTT agent tries to setup a connection with the MQTT broker when the socket does not exist.
26+
27+
#### Upgrading ESP-IDF to 3.1.1
28+
- ESP-IDF upgraded to 3.1.1.
29+
30+
#### OTA PAL for Curiosity PIC32MZEF V1.0.3
31+
- Rename variables to comply with style guidelines.
32+
33+
#### OTA PAL for Windows Simulator V1.0.2
34+
- Rename variables to comply with style guidelines.
35+
36+
#### OTA PAL for CC3220SF-LAUNCHXL V1.0.1
37+
- Rename variables to comply with style guidelines.
38+
39+
#### OTA Agent V1.0.1
40+
- Rename variables to comply with style guidelines.
41+
42+
#### PKCS #11 PAL for Cypress CYW943907AEVAL1F development kit V1.0.0
43+
- Added as part of Cypress CYW43907 board port.
44+
- Note that the random number generation solution in this port is provided for demonstration purposes only. See the comment in lib/pkcs11/portable/cypress/CYW943907AEVAL1F/hw_poll.c.
45+
46+
#### PKCS #11 PAL for Cypress CYW954907AEVAL1F development kit V1.0.0
47+
- Added as part of Cypress CYW54907 board port.
48+
- Note that the random number generation solution in this port is provided for demonstration purposes only. See the comment in lib/pkcs11/portable/cypress/CYW954907AEVAL1F/hw_poll.c
49+
50+
#### PKCS #11 PAL for ESP32-DevKitC ESP-WROVER-KIT V1.0.2
51+
- Updated as part of Updrade to ESP-IDF to 3.1.1.
52+
53+
#### mbedTLS-based PKCS#11 V1.0.7
54+
- Bug Fix: Multi-threaded use of PKCS #11 Sign/Verify could cause key corruption.
55+
56+
#### Wi-Fi for Cypress CYW943907AEVAL1F development kit V1.0.0
57+
- Added as part of Cypress CYW43907 board port.
58+
59+
#### Wi-Fi for Cypress CYW954907AEVAL1F development kit V1.0.0
60+
- Added as part of Cypress CYW54907 board port.
61+
62+
#### Wi-Fi for ESP32-DevKitC ESP-WROVER-KIT V1.0.1
63+
- Update as part of Updrade to ESP-IDF to 3.1.1.
64+
65+
#### Wi-Fi for LPC54018 IoT Module V1.0.3
66+
- Bug fix: Update WIFI init API to return success if WIFI module was already successfully initialized.
67+
- Bug fix: Update WIFI AP connection API for NXP to check if DHCP was successful.
68+
369
## V1.4.6 12/27/2018
470
### New Features
571

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ The following MCU boards are supported for Amazon FreeRTOS:
3333
* [Getting Started Guide](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_mediatek.html)
3434
* IDE: [Keil uVision](http://www2.keil.com/mdk5/install/)
3535
9. **Renesas** - [Renesas Starter Kit+ for RX65N-2MB](https://www.renesas.com/us/en/products/software-tools/boards-and-kits/renesas-starter-kits/renesas-starter-kitplus-for-rx65n-2mb.html)
36-
* [Getting Started Guide (Coming Soon)](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_renesas.html)
36+
* [Getting Started Guide](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_renesas.html)
3737
* IDE: [e2 studio](https://www.renesas.com/us/en/products/software-tools/tools/ide/e2studio.html)
38-
39-
**Windows Simulator**
38+
10. **Cypress CYW54907** - [Cypress CYW954907AEVAL1F Evaluation Kit](https://www.cypress.com/documentation/development-kitsboards/cyw954907aeval1f-evaluation-kit)
39+
* [Getting Started Guide](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_cypress_54.html)
40+
* IDE: [WICED Studio](https://community.cypress.com/community/wiced-wifi)
41+
11. **Cypress CYW43907** - [Cypress CYW943907AEVAL1F Evaluation Kit](https://www.cypress.com/documentation/development-kitsboards/cyw943907aeval1f-evaluation-kit)
42+
* [Getting Started Guide](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_cypress_43.html)
43+
* IDE: [WICED Studio](https://community.cypress.com/community/wiced-wifi)
44+
12. **Windows Simulator**
4045
To evaluate Amazon FreeRTOS without using MCU-based hardware, you can use the Windows Simulator.
4146
* Requirements: Microsoft Windows 7 or newer, with at least a dual core and a hard-wired Ethernet connection
4247
* [Getting Started Guide](https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_windows.html)

demos/common/defender/aws_defender_demo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS Device Defender Demo V1.4.6
2+
* Amazon FreeRTOS Device Defender Demo V1.4.7
33
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy

demos/common/demo_runner/aws_demo_runner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/devmode_key_provisioning/aws_dev_mode_key_provisioning.c

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -220,11 +220,11 @@ CK_RV xProvisionCertificate( CK_SESSION_HANDLE xSession,
220220
uint8_t * pucCertificate,
221221
size_t xCertificateLength,
222222
uint8_t * pucLabel,
223-
CK_OBJECT_HANDLE_PTR xObjectHandle )
223+
CK_OBJECT_HANDLE_PTR pxObjectHandle )
224224
{
225225
PKCS11_CertificateTemplate_t xCertificateTemplate;
226226
CK_OBJECT_CLASS xCertificateClass = CKO_CERTIFICATE;
227-
CK_FUNCTION_LIST_PTR xFunctionList;
227+
CK_FUNCTION_LIST_PTR pxFunctionList;
228228
CK_RV xResult;
229229
uint8_t * pucDerObject = NULL;
230230
int32_t lConversionReturn = 0;
@@ -242,7 +242,7 @@ CK_RV xProvisionCertificate( CK_SESSION_HANDLE xSession,
242242
xCertificateTemplate.xLabel.pValue = ( CK_VOID_PTR ) pucLabel;
243243
xCertificateTemplate.xLabel.ulValueLen = sizeof( pucLabel );
244244

245-
xResult = C_GetFunctionList( &xFunctionList );
245+
xResult = C_GetFunctionList( &pxFunctionList );
246246

247247
if( xResult == CKR_OK )
248248
{
@@ -270,16 +270,25 @@ CK_RV xProvisionCertificate( CK_SESSION_HANDLE xSession,
270270
xCertificateTemplate.xValue.pValue = pucDerObject;
271271
xCertificateTemplate.xValue.ulValueLen = xDerLen;
272272
}
273+
else
274+
{
275+
configPRINTF( ( "ERROR: Failed to provision certificate %d \r\n", lConversionReturn ) );
276+
}
273277

274278
/* Create an object using the encoded client certificate. */
275279
if( CKR_OK == xResult )
276280
{
277-
configPRINTF( ( "Write code signing certificate...\r\n" ) );
281+
configPRINTF( ( "Write certificate...\r\n" ) );
282+
283+
xResult = pxFunctionList->C_CreateObject( xSession,
284+
( CK_ATTRIBUTE_PTR ) &xCertificateTemplate,
285+
sizeof( xCertificateTemplate ) / sizeof( CK_ATTRIBUTE ),
286+
pxObjectHandle );
287+
}
278288

279-
xResult = xFunctionList->C_CreateObject( xSession,
280-
( CK_ATTRIBUTE_PTR ) &xCertificateTemplate,
281-
sizeof( xCertificateTemplate ) / sizeof( CK_ATTRIBUTE ),
282-
xObjectHandle );
289+
if( xResult != CKR_OK )
290+
{
291+
configPRINTF( ( "ERROR: Failed to provision certificate %d \r\n", xResult ) );
283292
}
284293

285294
if( pucDerObject != NULL )
@@ -299,15 +308,15 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
299308
CK_RV xResult;
300309
CK_OBJECT_CLASS xPrivateKeyClass = CKO_PRIVATE_KEY;
301310
CK_KEY_TYPE xPrivateKeyType = ( CK_KEY_TYPE ) pxParams->ulClientPrivateKeyType;
302-
CK_FUNCTION_LIST_PTR xFunctionList;
311+
CK_FUNCTION_LIST_PTR pxFunctionList;
303312
CK_OBJECT_HANDLE xObject = 0;
304313
uint8_t * pucDerObject = NULL;
305314
int32_t lConversionReturn = 0;
306315
size_t xDerLen = 0;
307316

308317
PKCS11_KeyTemplate_t xPrivateKeyTemplate;
309318

310-
xResult = C_GetFunctionList( &xFunctionList );
319+
xResult = C_GetFunctionList( &pxFunctionList );
311320

312321
/* Initialize the device private key template. */
313322
xPrivateKeyTemplate.xObjectClass.type = CKA_CLASS;
@@ -345,6 +354,11 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
345354
xPrivateKeyTemplate.xValue.ulValueLen,
346355
pucDerObject,
347356
&xDerLen );
357+
358+
if( lConversionReturn != 0 )
359+
{
360+
configPRINTF( ( "ERROR: Failed to parse private key %d \r\n", lConversionReturn ) );
361+
}
348362
}
349363
else
350364
{
@@ -362,10 +376,10 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
362376
{
363377
configPRINTF( ( "Write device private key...\r\n" ) );
364378

365-
xResult = xFunctionList->C_CreateObject( xSession,
366-
( CK_ATTRIBUTE_PTR ) &xPrivateKeyTemplate,
367-
sizeof( xPrivateKeyTemplate ) / sizeof( CK_ATTRIBUTE ),
368-
&xObject );
379+
xResult = pxFunctionList->C_CreateObject( xSession,
380+
( CK_ATTRIBUTE_PTR ) &xPrivateKeyTemplate,
381+
sizeof( xPrivateKeyTemplate ) / sizeof( CK_ATTRIBUTE ),
382+
&xObject );
369383
}
370384

371385
if( pucDerObject != NULL )
@@ -374,8 +388,10 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
374388
}
375389
}
376390

377-
configPRINTF( ( "Key provisioning done...\r\n" ) );
378-
391+
if( xResult != CKR_OK )
392+
{
393+
configPRINTF( ( "ERROR: Failed to provision private key %d \r\n", xResult ) );
394+
}
379395

380396
return xResult;
381397
}
@@ -385,12 +401,12 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
385401
void vAlternateKeyProvisioning( ProvisioningParams_t * xParams )
386402
{
387403
CK_RV xResult = CKR_OK;
388-
CK_FUNCTION_LIST_PTR xFunctionList = NULL;
404+
CK_FUNCTION_LIST_PTR pxFunctionList = NULL;
389405
CK_SLOT_ID xSlotId = 0;
390406
CK_SESSION_HANDLE xSession = 0;
391407

392408
/* Initialize the PKCS Module */
393-
xResult = xInitializePkcsSession( &xFunctionList,
409+
xResult = xInitializePkcsSession( &pxFunctionList,
394410
&xSlotId,
395411
&xSession );
396412

@@ -399,7 +415,7 @@ void vAlternateKeyProvisioning( ProvisioningParams_t * xParams )
399415
xResult = xProvisionDevice( xSession, xParams );
400416
}
401417

402-
xFunctionList->C_CloseSession( xSession );
418+
pxFunctionList->C_CloseSession( xSession );
403419
}
404420
/*-----------------------------------------------------------*/
405421

demos/common/greengrass_connectivity/aws_greengrass_discovery_demo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS Greengrass Demo V1.4.6
2+
* Amazon FreeRTOS Greengrass Demo V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_application_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_clientcredential.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_defender_demo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_demo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_demo_runner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_dev_mode_key_provisioning.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_greengrass_discovery_demo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_hello_world.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_logging_task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_ota_update_demo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

demos/common/include/aws_shadow_lightbulb_on_off.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Amazon FreeRTOS V1.4.6
2+
* Amazon FreeRTOS V1.4.7
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

0 commit comments

Comments
 (0)