For the next Teensyduino beta, I will reduce the DMAMEM region slightly, so we aren't overwriting the HAB logfile in OCRAM. I'll also update the boot vectors with the CSF address. That will at least give us a better starting point.
Two big questions exist in my mind about what is or isn't covered by NXP's NDA (if anyone can download it publicly, then the NDA says it's not confidential)
1: Can anyone publicly download CST version 3.3.1 or 3.3.0 or any other version?
2: Can anyone publicly download the files HAB4_API.pdf and CST_UG.pdf? (which are in the "docs" folder when cst-3.3.0.tgz is extracted)
There are also 2 headers files, hab_defines.h and hab_types.h.
I found a public copy of hab_defines.h here:
https://github.com/RT-Thread/rt-thre.../hab_defines.h
I have a copy of hab_types.h in my code from months ago, and sadly I don't have any record of where I found it. The header file doesn't specifically say it's confidential. It does have this:
Code:
#ifndef HAB_TYPES_H
#define HAB_TYPES_H
/*===========================================================================*/
/**
@file hab_types.h
@brief Constants, macros and types common to both external interfaces and
internal modules.
@verbatim
=============================================================================
Freescale Semiconductor
(c) Freescale Semiconductor, Inc. 2007-2016.
Copyright 2017-2019 NXP
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=============================================================================
@endverbatim */
It anyone could find a copy of this header as a public download, that would go a long way towards being able to put test code on github.